When I write a tutorial for my students, it is always plane and simple by using the predefined section style of the article class. I looked at some other posts and saw that the code below changes the font style of the section to small caps.
\documentclass[letterpaper]{article}
\usepackage{lipsum}
\makeatletter
\renewcommand{\section}{\@startsection {section}{1}{0pt}%
{-3.5ex plus -1ex minus -.2ex}%
{2.3ex plus .2ex}%
{\normalfont\Large\scshape}}
\makeatother
\begin{document}
\section{test}
\lipsum[1-3]
\end{document}
But then I see in some of the textbooks my students use the following image:

I was wondering if you can assist me in understanding the process of editing the section style.

