Get more section levels in Latex

Sometimes you need more section levels in your Latex document. With little effort you can get up to 5 section levels (the equivalent of a \subsubsubsubsection command), just include the following command in the preamble:

1
\setcounter{secnumdepth}{5}

To get the fourth and fifth levels use \paragraph and \subparagraph respectively. The sectioning hierarchy remains as follows:

1
2
3
4
5
\section{First level}
\subsection{Second level}
\subsubsection{Third level}
\paragraph{Fourth level}
\subparagraph{Fifth level}

Share this post:

  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Related posts:
  1. Indent first paragraph of the section in Latex
  2. Latex brush for Syntax Highlighter Plus Wordpress plugin
  3. Fix overfull problems when too many consecutive empty sections in Latex
  4. Source code snippets in Latex
  5. Define macros in Latex

Leave a Reply