187

I would like to have my whole document showing a blank line (or space) between paragraphs and no indentation. I know how to do it line by line, but is there a way to change that with just one or a few lines at the beginning of the document? Like a package you can install, or a new command?

0

6 Answers 6

153

Adding

\usepackage{parskip}

to the preamble of your document (the part between \documentclass{...} and \begin{document} will set the paragraphs to have no indentation and a bit of space between them.

Note that this isn't a complete solution, because there may be elements in your document that you don't want this format to apply to (footnotes, for example). A proper solution would involve (effectively) writing a new document class.

You can read a bit about how the parskip package works by looking at the comments in parskip.sty itself.

3
  • 23
    It is much better to use the parskip package and then to tweak anything that it doesn't settle for you than it is to start by tweaking values yourself. The parskip author went through some of the pains of figuring out the ramifications of altering various lengths; there's little point duplicating that work and most LaTeX user's won't ever otherwise need to be sufficiently familiar with the internals to do it anyway.
    – vanden
    Jul 26, 2010 at 20:14
  • 13
    Also see the memoir and KOMA-Script classes, where this is built into the classes as an option.
    – Joseph Wright
    Jul 26, 2010 at 20:14
  • 1
    @vanden: yes and no. It's true that it's generally better to use packages rather than hack at things oneself. But in this case (and as the parskip package author acknowledges), the package can't do a complete job, and so if the difference between the two techniques bites you, you're probably half-way to worrying about a new class, so that perhaps that bullet needs to be bitten sooner rather than later. Jul 26, 2010 at 21:39
28

Some classes support switching to vertical space between paragraphs instead of indent paragraphs. For example all KOMA-Script classes support option parskip with several values:

\documentclass[parskip=false]{scrartcl}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\section{parskip=false}
\lipsum[1-2]

\section{parskip=full}\KOMAoptions{parskip=full}\selectfont
\lipsum[1-2]

\section{parskip=full-}\KOMAoptions{parskip=full-}\selectfont
\lipsum[1-2]

\section{parskip=full+}\KOMAoptions{parskip=full+}\selectfont
\lipsum[1-2]

\section{parskip=full*}\KOMAoptions{parskip=full*}\selectfont
\lipsum[1-2]

\section{parskip=half}\KOMAoptions{parskip=half}\selectfont
\lipsum[1-2]

\section{parskip=half-}\KOMAoptions{parskip=half-}\selectfont
\lipsum[1-2]

\section{parskip=half+}\KOMAoptions{parskip=half+}\selectfont
\lipsum[1-2]

\section{parskip=half*}\KOMAoptions{parskip=half*}\selectfont
\lipsum[1-2]
\end{document}

Values full and half distinguish in the amount of space between the paragraphs. The postfixes influence the minimum amount of free horizontal space at the last line of a paragraph.

26

To change the amount of space between paragraphs, you want to change \parskip.

This adds an extra line between paragraphs:

\setlength{\parskip}{\baselineskip}

This removes the indent at the start of paragraphs:

\setlength{\parindent}{0pt}
8

If you are using the memoir class then no there's no need to \usepackage{parskip} as it's already bundled in. All you need to do is put this after \begin{document}

%% set paragaph breaks to be blank lines and don't indent first line
\nonzeroparskip
\setlength{\parindent}{0pt}

See page 47-8 of the memoir user guide for details: http://bay.uchicago.edu/CTAN/macros/latex/contrib/memoir/memman.pdf

7

You can use

\setlength{\parindent}{0pt}

\setlength{\parskip}{\baselineskip}

in your preamble if you're not using any other fancy (or not so fancy) formatting such as tables, etc. Apparently the package parskip fixes most of the issues that this setup can cause if you do have more complicated formats within your document. I've never used that package myself, though, so I can't speak from personal experience.

1
  • 11
    This already fails when using a simple \begin{itemize}. The package Parskip is the way to go. Aug 13, 2010 at 16:44
2

The standard setting for this task with standard TeX syntax is:

\parskip=\baselineskip
\parindent=0pt

You need not any package.

You must log in to answer this question.

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