TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the below code :





I would like to be able to define the margins of new paragraphs. I am a web guy so I will give an example with CSS for what I am trying to do :

p{margin-top: 10px;margin-bottom: 5px;} 

how can I apply that?

share|improve this question
Typography is quite different from producing a web page. What's good for web pages is not necessarily good for printed pages. – egreg Oct 20 '11 at 21:01
@egreg what I am experiencing is that two paragraphs looks really inside each other right now. So, is there any way to do that? – tugberk Oct 20 '11 at 21:06
\setlength{\parskip}{10pt} – cmhughes Oct 20 '11 at 21:09
That's the usual way to set text; the initial indent tells the reader that a new paragraph starts. Spacing paragraphs is bad for two reasons: it interrupts the flow of reading and destroys the uniformity of grey on the page. It may be good for short texts, not for longer ones. – egreg Oct 20 '11 at 21:09
@tugbrek setting-up a margin-top and a margin-bottom does not make sense neither for webpages not for typography. If you have a paragraph sandwiched between two others are you going to allow a top+bottom from the previous one? – Yiannis Lazarides Oct 20 '11 at 21:23
up vote 8 down vote accepted

TeX has no notion of space before and after paragraphs, but only of space between paragraphs. This space is, by default, zero, but with a small degree of flexibility, in order to help filling up a page when flush bottoms are requested (as in the book class, not in article).

The relevant parameter is \parskip: a declaration such as

\setlength{\parskip}{15pt plus 1pt minus 2pt}

tells TeX to space paragraph by 15pt, reducible to 13 or enlarged to 16. Such a spacing will disappear at page breaks.

However, many respected typographers frown upon paragraph spacing, that interrupts the flow of reading and spoils the uniformity of the page. While paragraph spacing may be considered for documents such as letters, it's really not recommended for longer texts.

Make a selection of books printed by good publishers and count how many of them use paragraph spacing: you'll find only a few, if any.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.