72

I could do \subsection{} and \subsubsection{} but not \subsubsubsection{}. This command does not seem to be available in LaTeX. Is there an alternative command?

jub0bs
  • 58,916
Naema
  • 2,305
  • 5
    The sectioning command one level down the hierarchy from \subsubsection is called \paragraph. – jub0bs Jun 27 '14 at 19:25

1 Answers1

111

\subsubsubsection doesn't exist but, instead, you can use \paragraph and \subparagraph, which will generate something like 1.1.1.1 and 1.1.1.1.1. .

To include this in your table of contents, you have to declare \setcounter{tocdepth}{4} and \setcounter{secnumdepth}{4}. For subparagraph, use {5}.

There are 7 levels of sections (depending on the document)

  • -1 \part{part}
  • 0 \chapter{chapter}
  • 1 \section{section}
  • 2 \subsection{subsection}
  • 3 \subsubsection{subsubsection}
  • 4 \paragraph{paragraph}
  • 5 \subparagraph{subparagraph}

\part and \chapter are only available in report and book.

Mensch
  • 65,388
Obi-Wan
  • 1,238
  • 1
  • 10
  • 8
  • I used \paragraph but the title came out without any numbers!. I do not like it not numbered. – Naema Jul 03 '14 at 17:30
  • when I included \setcounter{tocdpth}{4} and \setcounter{secnumdepth}{4} my file failed to compile!!. – Naema Jul 03 '14 at 18:34
  • This answer does not work for me. No numbers are displayed and the text in the brackets is not displayed as a headline. Which document type did you use? – user1511417 Aug 05 '17 at 11:02
  • 1
    I have to disagree with the other comments. This works perfect. I get the title, the numbering and the additional level in the toc. – robsn Oct 18 '17 at 13:09
  • 5
    Using \paragraph{} does not add any numbering, and as @user1511417 said, it is not displayed as a header. Contrary to what the answer says, you have to include \setcounter{secnumdepth}{4} if you want the numbering and \setcounter{tocdepth}{4} to have it appear in the table of contents. However, the paragraph title is still inlined and does not appear as a proper header. On top of that, \paragraph{} adds a dot to the end of the paragraph title, which might be unwanted. – Zimano Jun 06 '19 at 14:05