I would like to combine both section numbering and bullets in the table of contents of a document of article class just to avoid so much long section number (for example

So, I would like to have something like this:

1. First section
   1.1 First subsection
   1.2 Second subsection
           1.2.1 First subsubsection
             · First paragraph
             · Second paragraph
               - First subparagraph
   1.3 Third subsection
2. Second section

How can I modify the table of contents to put those bullets instead of numbers?

  • Are your paragraphs and subparagraphs numbered in the main body of the text, or are they marked with bullets and dashes, resp.? Separately, do ask yourself if you need to list the paragraph and subparagraph headers in the ToC.
    – Mico
    Apr 9 '14 at 8:32
  • Yes, I completely need the paragraph and subparagraph headers in the ToC for this article. In the main body of the text I use numbered paragraphs and unnumbered subparagraphs.
    – Urko
    Apr 9 '14 at 8:35

The entries for \paragraph and \subparagraph in the table of contents are set by the macros: \l@paragraph and \l@subparagraph. Usually the class contains their definition. Example for class article:


The arguments for \@dottedtocline are:

  • Section level (e.g., 4 for \paragraph).
  • Indent to the left margin.
  • Space for the numbering for macro \numberline.
  • Section title (inherited from \contentsline). If a number is given, it starts with \numberline{...} right before the section title in the same argument.
  • ...

The following example redefines the macros \l@paragraph and \l@subparagraph:

  • Length parameters of \@dottedtocline are updated to respect the smaller numbering using symbols only.
  • The symbol is added as "number" with \numberline for formatting reasons.
  • The original number is gobbled if present.

    % \numberline{$\cdot$}%

  Lorem ipsum dolor sit amet, consectetuer adipiscing elit.%


  \section{First section}
  \subsection{First subsection}
  \subsection{Second subsection}
  \subsubsection{First subsubsection}
  \paragraph{First paragraph}
  \paragraph{Second paragraph. \lipsum}
  \subparagraph{First subparagraph}
  \subparagraph{Second subparagraph. \lipsum}
  \subsection{Third subsection}
  \section{Second section}



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.