Page LayoutWeird space between paragraphs

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Al.x
Posts: 10
Joined: Tue Oct 27, 2009 3:53 pm

Weird space between paragraphs

Post by Al.x »

Hi guys,

Something really weird is happening with the space between paragraphs in my document.

Generally, I do not want any vertical space when beginning a new paragraph, just an indent. Now, this happens everywhere in my document, except a couple of places where large spaces have been inserted. Now, I'm working in this document with a friend, and she isn't exactly tex-literate. So, what she did was that she wrote some stuff in Word (yeah, I know), copy-pasted it in to the tex-file and committed to subversion.

My first thought was that something weird from Word had been copied, so I started cleaning out her tabs and line-shifts (basically all "\t" and "\n"), but to no avail.

So my question is - have any of you experienced anything like this before, and if so, what did you do?

Regards,
Alexander
Last edited by Al.x on Tue Nov 23, 2010 2:26 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Weird space between paragraphs

Post by frabjous »

It doubt it has anything to do with what's coming from Word. More likely it's just that LaTeX uses rubber spacing between paragraphs which stretch in order to make each page not just horizontally justified but vertically justified: i.e., each page takes up the same space from top to bottom, much the way that each line takes up the same horizontal space, and the spacing between words grows or shrinks to make this happen.

If you don't want this, try adding:

Code: Select all

\raggedbottom
right after \begin{document}, or perhaps:

Code: Select all

\setlength{\parskip}{0pt}
There should be a lot of other threads about this problem if you search the forum, however.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Weird space between paragraphs

Post by AleCes »

Sorry, Al.x if I meddle with your topic, but it seems to me you have exactly the same problem I exposed in this topic of mine which I posted some days ago! :?
So, what do you think about merging the two? :roll:
Al.x
Posts: 10
Joined: Tue Oct 27, 2009 3:53 pm

Weird space between paragraphs

Post by Al.x »

frabjous wrote:It doubt it has anything to do with what's coming from Word. More likely it's just that LaTeX uses rubber spacing between paragraphs which stretch in order to make each page not just horizontally justified but vertically justified: i.e., each page takes up the same space from top to bottom, much the way that each line takes up the same horizontal space, and the spacing between words grows or shrinks to make this happen.

If you don't want this, try adding:

Code: Select all

\raggedbottom
right after \begin{document}, or perhaps:

Code: Select all

\setlength{\parskip}{0pt}
There should be a lot of other threads about this problem if you search the forum, however.
Hey, that works! That's really strange, I've written many papers in LaTeX, but I've never seen this before. Anyway, both solutions work great!

Much appreciated :-)

Alexander
Al.x
Posts: 10
Joined: Tue Oct 27, 2009 3:53 pm

Weird space between paragraphs

Post by Al.x »

AleCes wrote:Sorry, Al.x if I meddle with your topic, but it seems to me you have exactly the same problem I exposed in this topic of mine which I posted some days ago! :?
So, what do you think about merging the two? :roll:
Hey AleCes,

I have no problem with that :-)

Alexander
Post Reply