The parskip package
Separates paragraphs by vertical space instead of a first-line indent; the options skip and indent set both values.
Loading the package
\usepackage{parskip}Setting \parskip and \parindent by hand also changes places that use these lengths internally: lists get extra space between their items and the table of contents is spread out. parskip sets both lengths and corrects lists and the table of contents.
Without options the space between paragraphs is half a line (0.5\baselineskip, with 2pt of stretch) and the indent is zero.
Main commands
\usepackage{parskip} | Half a line between paragraphs, no indent. |
skip=10pt | Sets the space between paragraphs. |
indent=1em | Keeps a first-line indent in addition to the space. |
parfill=30pt | Minimum white space at the end of the last line of a paragraph, so the paragraph end stays visible. |
tocskip=4pt | Paragraph space inside the table of contents and the other lists; the default is zero. |
Complete example
\documentclass{article}
\usepackage[skip=8pt plus 2pt]{parskip}
\begin{document}
The first paragraph starts at the left margin. It is long enough to fill
more than one line, so the block shape of the paragraph is visible.
The second paragraph follows after a gap of 8\,pt and has no indent either.
\begin{itemize}
\item Lists keep their compact spacing.
\item The package adjusts them to the new paragraph skip.
\end{itemize}
\end{document}Compiled with pdfLaTeX from TeX Live 2023.
Pitfalls
- KOMA-Script classes have their own class option, for example
parskip=half, and print a warning when the package is loaded. - Version 2.0 from 2018 introduced the options
skip,indentandtocskip. An older installation reports them as unknown options.
Related pages
- How-to Space between paragraphs in LaTeX
- How-to Paragraph indentation in LaTeX
- Package
setspace