I use Lyx 2.1, document class : report. At the table of Contents, no spacing between "a few" under sections. enter image description here

enter image description here

  • 1
    Perhaps someone can guess the correct cause from the screenshot alone, but I for one cannot, so it would really help if you added a minimal example: First create the smallest LyX-document you can that demonstrates the problem. Then either 1) open that .lyx file in a text editor, copy the entire file, and paste it into your question, or 2) export to a LaTeX file (File -> Export -> LaTeX (pdflatex)), open this file and copy-paste all the text into your post. See also wiki.lyx.org/FAQ/MinimalExample – Torbjørn T. Jun 15 '14 at 15:40
  • 3
    Thanks for the example, but I'd like to note one thing: Minimal is a keyword when creating example, we really don't need to see your entire document. That's why I wrote 'create the smallest document that demonstrates the problem.' – Torbjørn T. Jun 15 '14 at 16:51

For some reason you have added some vertical space in the subsection headings, which messes things up. Here is a minimal LaTeX example demonstrating what you've done:

\subsection{First \vspace{0.25cm}}
\subsection{Second \vspace{-0.25cm}}
\subsection{Third }

enter image description here

So all you need to do is to find the subsections where you have added the vertical space, and remove it.

This is how it could appear in LyX. It may not look like the \vspace is part of the subsection heading, but when you place the cursor next to the vspace you'll see that it actually is. As an alternative to removing the space entirely, you could place the cursor just before the vspace, hit enter, and then set the style to Standard.

enter image description here

  • I used "vspace -0.25" since I noticed enough spacing between the sub section and the chip. img15.hostingpics.net/pics/3038863266.png – GoldRay Jun 15 '14 at 18:35
  • 1
    @user1936895 If you really must do that, just make sure the vspace is not part of the subsection heading. – Torbjørn T. Jun 15 '14 at 22:19

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.