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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want the label and title of subsection typsetting as a paragraph but NEVER break down in a subsection title. Say, the code below




\section{A section}
\subsection{A subsection}
\subsection{Another subsection}
\subsection{A very long subsection}
\subsection{Again a subsection}
\subsection{A longest subsection in the article!}


I want the label of subsection 1.3 and 1.5 start in a new line respectively, like

1.1: A subsection (1)   1.2: Another subsection (1)
1.3: A very long subsection (1)   1.4: Again a subsection (1)
1.5: A longest subsection in the article! (1).
share|improve this question
up vote 3 down vote accepted

You can put the whole label into a box by adding \mbox to the label argument of \titlecontents. Also, I guess that you want to set the relevant parts of the TOC ragged-right to avoid labels running into the margin.

share|improve this answer
Follow-up question suppress pagebreaks in titletoc's titlecontents* blocks about increasing pagebreak penalty – Markus Schmassmann May 16 '12 at 16:11

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.