One of the headings of my paragraph is so long that it is pushing the page number in toc to the right side. it looks misaligned from rest of numbering.

Yes, I am using paragraph as heading for giving numbering to it.

So the heading is like

\paragraph{some thing in the header (11235)} detailed text here .....

how do I give a break point between header and (11235) so that in ToC (11235) spills over to next line.

My ToC currently looks like as in attached picture.enter image description here

I have attached a picture for better view.

  • 3
    A minimal working example (MWE) is necessary.
    – egreg
    Commented Mar 9, 2014 at 17:20
  • A MWE is really the only way to speak very specifically about your situation.
    – cslstr
    Commented Mar 9, 2014 at 17:45
  • I tried pasting my tex code but it all got misaligned when I paste here :(
    – MSB
    Commented Mar 9, 2014 at 17:49

1 Answer 1


Generally, there is a very small window in terms of line length that will push the page number out of alignment. The text should wrap if a longer section title is provided.

That said, if you must, you can add a line break to the text that appears in the TOC by using the optional parameter to the section command:

\paragraph[some thing in the header\\(11235)]{some thing in the header (11235)}

More detail on how this works is given at How to put a line-break in section heading?. Here, however, the line break was desired in the body of the report without affecting either the TOC or the text in the PDF bookmark.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .