1

What is the LaTeX document class for a document that has sections numbered numerically like 2.3.2.4, 2.3.2.5, etc.? Thanks.

9
  • Welcome to TeX.SE. Do you mean sections? Or subsections? Or subsubsections? Most classes can do that, given that \setcounter{secnumdepth}{3} is used and it has a chapter.section.subsection.subsubsection hierarchy
    – user31729
    Commented Mar 16, 2018 at 21:28
  • Second book, third part, second chapter, fourth and fifth section? Commented Mar 16, 2018 at 21:30
  • almost every latex class numbers sections/subsections in that way, certainly the standard article, report and book classes. Commented Mar 16, 2018 at 21:36
  • Sorry, I was confused. I was using a specialized document class, and I forgot that the standard classes can do that.
    – Russ
    Commented Mar 16, 2018 at 21:46
  • @Russ apart from letter classes I would have thought pretty much all latex classes have hierarchical numbering like this. It is built in to latex so a class would have to actively disable it. Commented Mar 16, 2018 at 21:48

1 Answer 1

2

almost all latex classes will do this but you may have to increase secnumdepth so that lower level section headings are numbered.

enter image description here

\documentclass{report}
\setcounter{secnumdepth}{4}
\begin{document}

\chapter{zzz}
zz
\section{Zzzzz}
zz
\chapter{Zzzzzz}
zz
\section{zZZz}
zz
\subsection{ZzzZz z}
zz
\subsection{ZzzZz z z}
zz
\section{zZZzzzz}
zz
\subsection{Zz zZz z z}
zz
\section{zZZzzzz}
zz
\subsection{ZzzZ}
zz
\subsection{ZzzZZZz}
zz
\subsubsection{ZzzZ}
zz
\subsubsection{ZzzZZZzz}
zz
\subsubsection{ZzzZZZzzz}
zz
\subsubsection{ZzzZZZzzzz}
zz
\subsubsection{ZzzZZZzzzz}
zz


\end{document}
1
  • Looking at the screen shot I get sleepy... somehow ;-)
    – user31729
    Commented Mar 16, 2018 at 22:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .