Texmaker and TeXstudioparagraph and spacing

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
omkardpd
Posts: 86
Joined: Sun Feb 24, 2008 7:23 am

paragraph and spacing

Post by omkardpd »

Hi,

I use \\ at the end of the statement when I want to end paragraph 1 and start paragraph 2. I assume \\ leaves one extra line between any two paragraphs. Now, if paragraph 2 is starting on new page, then also it is leaving this extra space between paragraph 1 and paragraph 2. So I have to remove \\ from the paragraph 1. But why do I have to check for each paragraph if it is staring on each of the new page? Do we have some automated technique by which Latex itself will understand if a paragraph is starting on a new page, then there is no need to leave the extra line space between paragraphs? Is there any specific command to adjust such things?

Thank you,

Omkar

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: 10340
Joined: Mon Mar 10, 2008 9:44 pm

paragraph and spacing

Post by Stefan Kottwitz »

Hi Omkar,

don't use \\ for extra lines between paragraphs. Use \parskip instead, like

Code: Select all

\setlength{\parskip}{\baselineskip}
or

Code: Select all

\addtolength{\parskip}{\baselineskip}
or a different length instead of \baselinskip, maybe with glue that has stretch and shrink value.

Stefan
LaTeX.org admin
Post Reply