[Tex/LaTex] How to display section number in the section’s title

sectioning

Is there an easy way to display a section's number in its title? I am currently using the article document class.

Here is my minimal working example:

\documentclass[a4paper]{article}
\begin{document}

\section*{Introduction}

    Introduction text here...

\section{Item 1: What is Quantitative Finance?}
Indeed, before actually studying a topic, we should start by having a good definition of what we are studying. So what is quantitative finance?

\section{Item 2: Geometric Brownian Motion}
blalblabla

\end{document}

By default the section numbers appear in front of the section's title. Instead I would like to have the section number appear inside the document's title after the word "Item" and be incremented automatically (so that I don't need to keep a manual count of the Item numbers).

Best Answer

You mean something like this? Using titlesec will make automatically every section use the "Item xx" value.

\documentclass[a4paper]{article}
\usepackage{titlesec}
\titleformat{\section}[hang]{\bfseries}{Item \thesection:\ }{0pt}{}

\begin{document}

\section*{Introduction}

    Introduction text here...

\section{What is Quantitative Finance?}
Indeed, before actually studying a topic, we should start by having a good definition of what we are studying. So what is quantitative finance?

\section{Geometric Brownian Motion}
blalblabla

\end{document}

enter image description here

Related Question