LyXLyX adding gaps between paragraphs and text

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
peljam
Posts: 6
Joined: Wed Jul 18, 2012 4:06 pm

LyX adding gaps between paragraphs and text

Post by peljam »

Me again...

I'm using the book class for my thesis, and I'm exporting as a double sided/paged pdflatex. For some reason though Lyx has added the occasional gap between paragraphs or in one case between the end of a quote and a following paragraph.

In all cases instead of the line break between paragraphs a big gap is being placed. I've gone back and checked and all the text is set as standard (or quote and then standard in the quote case). I've deleted the gap and then placed the paragraph again, but I still get the gaps. Like so:
image1.jpg
image1.jpg (7.24 KiB) Viewed 5770 times
or
image2.jpg
image2.jpg (14.65 KiB) Viewed 5770 times
Sorry might not be the clearest examples.

I didn't have this in previous attempts to export. All that's changed really is I've added to my preamble so I can have page numbers on every page, and then added ERT on the title page to supress the very first page number.

My preamble:

Code: Select all

\usepackage[nottoc,notbib]{tocbibind}
\usepackage[section]{placeins}
\pagestyle{plain}
Interestingly if I export as a single sided pdf I don't get the gaps, but instead I get an odd line next to the .png format pictures and figures I've inserted. Can't seem to win at the moment. I got some great help on these forums earlier on :D but now something else has popped up instead in the form of the gaps. As always any help would appreciated.

Pel
Last edited by Stefan Kottwitz on Thu Jul 19, 2012 7:58 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

LyX adding gaps between paragraphs and text

Post by Stefan Kottwitz »

Hi Pel,

perhaps the document is in the flush-bottom mode, so it tries to vertically fill the pages equally. You can globally switch if off by writing

Code: Select all

\raggedbottom
into your document preamble. You could also place it in your document and later switch the pageheight-balancing on again by

Code: Select all

\flushbottom
Stefan
LaTeX.org admin
peljam
Posts: 6
Joined: Wed Jul 18, 2012 4:06 pm

Re: LyX adding gaps between paragraphs and text

Post by peljam »

Once again you've solved it :D Thank you very much. Not only has it gotten rid of the gaps but the whole document actually looks a bit tidier. Thanks!

All I've got to work out now is why two of my figures have a line running down next to them. I'm just going to remove and replace them to see if that works.
Post Reply