[Tex/LaTex] How to use the parskip package? (space in between paragraphs)

paragraphsparskipspacing

Sorry, because I think it's a many times asked topic. But I don't find an example which help me to understand how to create a white space between paragraphs.

I think parskip is the package I need to use but I don't know how to use it.

I have this sample of LaTeX trying to understand how to use parskip package. What am I doing wrong?

\documentclass{report}

\usepackage{parskip}

\begin{document}
\setlength{\parskip}{0pt} % 1ex plus 0.5ex minus 0.2ex}
\setlength{\parindent}{0pt}

\section{Section Headings}

We explain in this section how to obtain headings
for the various sections and subsections of our
document.

\subsection{Headings in the `article' Document Style}

In the ``article'' style, the document may be divided up
into sections, subsections and subsubsections, and each
can be given a title, printed in a boldface font,
simply by issuing the appropriate command.
\parskip
Lorem ipsum `comillas simples' sit amet, consectetur adipiscing elit.
Fusce at augue nisi. Mauris vel metus velit. Nunc vitae augue justo, non euismod risus.
Nullam et bibendum nisl. Vestibulum nec leo lectus. Phasellus non dui et ipsum malesuada
venenatis vitae ut risus. Phasellus tincidunt erat sollicitudin leo auctor sed porta leo
commodo. Nullam et adipiscing libero. Ut et mi ac dui facilisis faucibus. Fusce eget magna
a quam volutpat accumsan. Duis dictum luctus ligula, at facilisis leo blandit sit amet.
Phasellus congue ornare lectus scelerisque malesuada. Praesent et cursus nulla. Quisque
aliquam felis ac nunc scelerisque a consectetur elit mattis.
\\

\end{document}

Will this spacing work in the entire document?

Best Answer

Just load the parskip package and don't change the \parskip and \parindent lengths manually. In the document body, don't use \parskip but a blank line to separate paragraphs.

BTW, there's normally no need to add manual line breaks (\\) in the text.

\documentclass{article}

\usepackage{parskip}

\begin{document}

We explain in this section how to obtain headings
for the various sections and subsections of our
document.

In the ``article'' style, the document may be divided up
into sections, subsections and subsubsections, and each
can be given a title, printed in a boldface font,
simply by issuing the appropriate command.

\end{document}

enter image description here