TransWikia.com

How can I number sections below subsection in LaTeX?

TeX - LaTeX Asked by Farhat Mann on February 27, 2021

I want to make sections in LaTeX.

For a document with chapter divisions, one has

  • 1.1 = section
  • 1.1.1 = subsection
  • 1.1.1.1 = subsubsection

What about 1.1.1.1.1?

What do I have to use to make lower-level sections be numbered as 1.1.1.1.1?

One Answer

You have to insert setcounter{secnumdepth}{5} to your document preamble and then the command paragraph{title} is the equivalent of what you mean by subsubsubsection{title}.

But in my opinion is not a good idea to have numbered paragraphs nor numbered subsubsections. It makes the text much less readable.

documentclass{report}
setcounter{secnumdepth}{5} % seting level of numbering (default for "report" is 3). With ''-1'' you have non number also for chapters
 %setcounter{tocdepth}{5} % if you want all the levels in your table of contents
begin{document}
chapter{chapter title (depth 0)}
section{section title (depth 1)}
subsection{subsection title (depth 2)}
subsubsection{subsubsection title (depth 3)}
paragraph{paragraph title (depth 4)}
subparagraph{Subparagraph title (depth 5)} % last existing level
end{document}

enter image description here

Answered by Red on February 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP