Vertical space between paragraphs in LaTeX

The space between sentences and paragraphs seem to be the same in the default settings.

\documentclass{article}

\begin{document}

TeXShop is a well known free TeX/LaTeX editor for Mac.
You can edit a tex file and output as PDF.

To download and install MacTex is the simplest way to begin it.

If you push "Typeset" button in the nav bar,
pdfTeX will automatically run, compile your tex file, and output a PDF in the same folder as the tex file.

\end{document}
output

Setting the length of \parskip resolves this issue like this.

\documentclass{article}
\setlength{\parskip}{12pt}

\begin{document}

TeXShop is a well known free TeX/LaTeX editor for Mac.
You can edit a tex file and output as PDF.

To download and install MacTex is the simplest way to begin it.

If you push "Typeset" button in the nav bar,
pdfTeX will automatically run, compile your tex file, and output a PDF in the same folder as the tex file.

\end{document}
output

In LaTeX, parskip means the vertical space or margin of two paragraphs. In this case, the vertical distance of paragraphs is 12pt.

Use of baselineskip

\documentclass{article}
\setlength{\parskip}{2\baselineskip}

\begin{document}

TeXShop is a well known free TeX/LaTeX editor for Mac.
You can edit a tex file and output as PDF.

To download and install MacTex is the simplest way to begin it.

If you push "Typeset" button in the nav bar,
pdfTeX will automatically run, compile your tex file, and output a PDF in the same folder as the tex file.

\end{document}
output

2\baselineskip means twice the value of baselineskip.

Comments

Powered by Markdown