Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am writing a LaTeX document with short sections which results in subsections being listed in the table of contents in the same or subsequent pages.

How can I suppress the appearance of page number for each subsection and make a list of subsections in a single sentence under their section? Some books use this style...

Edit: I am using the report document class and no special toc package

share|improve this question
Please also indicate which document class you're using (article, report, book, memoir, something else?) as well as if you're already loading any packages (such as tocloft) that affect the way the table of contents is organized. –  Mico Jul 9 '12 at 17:45
add comment

migrated from stackoverflow.com Jul 9 '12 at 15:28

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 7 down vote accepted

The titletoc package provides a means to have "in-line" or paragraph-style ToC entries. You format a specific entry using

  {<above code>}
  {<numbered entry format>}
  {<unnumbered entry format>}
  {<filler page format>}

The *-version of \titlecontents groups the entries in a single paragraph. Here's a minimal example highlighting its use, with the format settings taken from the titletoc documentation:

enter image description here

\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{titletoc}% http://ctan.org/pkg/titletoc
  {\thecontentslabel. }
  {, \thecontentspage}


\section{First section}

\section{Second section}

\section{Last section}


This prints the page number \thecontentspage with every \subsection entry, which is the default. It could be possible to extend this to include a page number for all \subsections on a page only once. However, this may require additional compilations and some forethought as to what the presentation should look like. For example, do you start with the "collective" page number, or do you end with it? If not handled properly, it my be confusing.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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