3

Edit If you prefer some additional space between paragraphs, you can't simply do

\setlength{\parskip}{<length>}

as this will also modify settings for list environments, the table of contents,... headings.

The parskip package takes care of list environments and the table of contents but not headings as can be seen in this code

\documentclass{book}
\usepackage{lipsum}%parskip}
\usepackage{eso-pic,tikz}

\AddToShipoutPicture{%
\begin{tikzpicture}[overlay,remember picture]
  \draw[blue!20!white,thin]
       (current page.south west) grid [xstep=10mm,ystep=4mm] (current page.north east);
\end{tikzpicture}}


\begin{document}
\chapter{test}
\section{test}
\lipsum[1-4]
\end{document}

enter image description here

enter image description here

How can we change the amount of space between paragraphs without changing any thing else?

Original question When I modify the usual \parskip it adds space to everything: formulas, titles,.. I want to change spacing only between paragraphs, not any other things. The parskip package does not help.

How can I avoid that?

20
  • Sorry, but this is very unclear.
    – egreg
    Commented Apr 26, 2015 at 22:15
  • \usepackage{parskip}.
    – cfr
    Commented Apr 26, 2015 at 22:16
  • @egreg is it clear now?
    – user14416
    Commented Apr 26, 2015 at 22:36
  • @cfr This does not work.
    – user14416
    Commented Apr 26, 2015 at 22:36
  • Sorry but 'does not work' is not at all clear. How doesn't it work? Does your document not compile? Does your computer have a tantrum and refuse to get ready for bed? The parskip package is designed to do exactly what you say you want to do. Without an example or any sort of information at all, I obviously can have no idea in what way it fails to meet your requirements or why it does so. For all I know, you aren't even using LaTeX. That was just a guess. If not, obviously it won't work.
    – cfr
    Commented Apr 26, 2015 at 22:38

1 Answer 1

2

See the titlesec package documentation:

after-sep is the separation between title and text—vertical with hang, block, and display, and horizontal with runin, drop, wrap and ...margin. By making the value negative, you may define an effective space of less than \parskip

\titlespacing*{\section}{0pt}{before-sep}{after-sep}

You should be able to get the result you want by using this command to "undo" the additional spacing created after section headings when using \setlength{\parskip}{<length>} to adjust the inter-paragraph spacing.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .