Tuesday, June 22, 2010

How to Activate \subsubsubsection in LaTeX

The equivalent to \subsubsubsection is \paragraph. To have that numbered simply use:
\setcounter{secnumdepth}{5}
then:
\section{} % level 1
\subsection{} % level 2
\subsubsection{} % level 3
\paragraph{} % level 4 - equivalent to subsubsubsection
\subparagraph{} % level 5
Voila!

Cite as:
Saad, T. "How to Activate \subsubsubsection in LaTeX". Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2010/06/how-to-activate-subsubsubsection-in.html

19 comments:

  1. it's great but how can let the paragraph to appear in table of contents index?

    ReplyDelete
  2. \setcounter{tocdepth}{5}

    ReplyDelete
  3. Oh thanks just found this, tocdepth was what i needed :)

    ReplyDelete
  4. Thank you - just what I needed :)

    ReplyDelete
  5. Very cool. I have used LaTeX for 10 years and today was the first time I actually had a need for 4 levels.

    Great!

    Worik

    ReplyDelete
  6. Hello,

    In Lyx 2.0, you can list the subsubsubsection in the TOC by going to Settings --> Numbering and TOC --> change Paragraph as appeared in TOC and Numbered to YES. Then every time you start a new paragraph, it will be numbered and listed in TOC

    Best,

    Thanh.

    ReplyDelete
  7. Et ça ne demande aucun package supplémentaire, en fait ça génère une erreur pour moi ?

    ReplyDelete
  8. Thanks!
    In my document I get something liek this:

    3.2.3.2 Heading The instrument...

    The test starts directly behind the heading. I tried \newline, etc. but it doesn't work. Any suggestions?

    Thanks

    ReplyDelete
    Replies
    1. I got the same problem, have you solved it?

      Delete
  9. \paragraph{title_text}
    \mbox{ }\\
    type paragraph text here ....

    This will provide what you require.

    ReplyDelete
    Replies
    1. Only redefine paragraph:

      \titleformat{\paragraph} [runin] {\normalfont\normalsize\bfseries} {\theparagraph} {1em} {}

      change [runin] with [hang]

      \titleformat{\paragraph} [hang] {\normalfont\normalsize\bfseries} {\theparagraph} {1em} {}

      Delete
  10. Thank you very much. It's really helpful

    ReplyDelete