This question already has an answer here:

I have a problem with the spacing in the header of a subsection. Only this particular heading has large spaces. It looks like this:

enter image description here

Here is MWE:




\subsection{Reciprocal Velocity Obstacle (RVO)}


How do i fix this?

marked as duplicate by user36296, Mensch, user13907, Stefan Pinnow, Zarko May 20 '16 at 16:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    Possibly related: Oddly wide spaces in subsection title. Can you provide a MWE? – Richard May 20 '16 at 15:48
  • 3
    Most likely, the issue is that the sub-section header is being fully aligned. As a one-time fix, you could include \raggedright in the title. Ideally, you would like to make ragged the default condition for the presentation of subsection headers. – Steven B. Segletes May 20 '16 at 15:49
  • 1
    @Sam The example you linked worked. Thanks! I used the \protect \raggedright command. – martin36 May 20 '16 at 15:57
  • For one time solution you can break line manually: \subsection{Reciprocal Velocity Obstacle\\ (RVO)} – Zarko May 20 '16 at 15:58

Browse other questions tagged or ask your own question.