[Tex/LaTex] Justify without indent

indentationparagraphs

I was wondering how I can justify the text without making it indenting with \justifying.
I'm using

\usepackage[parfill]{parskip}

Secondary question:

Any way how to increase the parskip distance, by the way?

Thanks!

Best Answer

It is better to use the parskip package (as shown in the question) than to just adjust the parskip and parindent yourself unless you are also prepared to make the kinds of adjustments required to avoid the side-effects of these changes.

In addition to adjusting these lengths, parskip does some basic work to avoid excessive spacing in list environments. Even if you do not think you use lists, you probably do since many LaTeX environments are based on lists. For example, quotation is a trivial list environment and there are many others.

Here is a document which just adjusts the lengths by hand based on Fran's answer:

\documentclass{article}
\usepackage{lipsum} % for example dummy text
\setlength\parskip{.5\baselineskip plus .1\baselineskip minus .1\baselineskip}
\setlength\parindent{0pt}
\begin{document}
  \lipsum[1]

  \begin{quotation}
    \lipsum[2]
  \end{quotation}

  \lipsum[3]

  \begin{itemize}
    \item This is the first item in a list of several items, which is preceded by none but followed by some.
    \item This is the second item in a list of several items, which is preceded by some and followed by some.
    \item This is the third item in a list of several items, which is preceded by some and followed by some.
    \item This is the fourth item in a list of several items, which is preceded by some but followed by none.
  \end{itemize}

  \lipsum[4]
\end{document}

excessive spacing of lists

As can be seen, excessive spacing is left around the quotation and list, in comparison with that which is left between regular paragraphs.

Here is the same document using parskip with default adjustments:

\documentclass{article}
\usepackage{lipsum} % for example dummy text
\usepackage[parfill]{parskip}
\begin{document}
  \lipsum[1]

  \begin{quotation}
    \lipsum[2]
  \end{quotation}

  \lipsum[3]

  \begin{itemize}
    \item This is the first item in a list of several items, which is preceded by none but followed by some.
    \item This is the second item in a list of several items, which is preceded by some and followed by some.
    \item This is the third item in a list of several items, which is preceded by some and followed by some.
    \item This is the fourth item in a list of several items, which is preceded by some but followed by none.
  \end{itemize}

  \lipsum[4]
\end{document}

default adjustments with <code>parskip</code>

It is still very possible to adjust the parskip while benefiting from the package's improved layout of list environments. This example uses the same parskip as that in the first document and as specified in Fran's 'reasonable' settings:

\documentclass{article}
\usepackage{lipsum} % for example dummy text
\usepackage[parfill]{parskip}
\setlength\parskip{.5\baselineskip plus .1\baselineskip minus .1\baselineskip}
\begin{document}
  \lipsum[1]

  \begin{quotation}
    \lipsum[2]
  \end{quotation}

  \lipsum[3]

  \begin{itemize}
    \item This is the first item in a list of several items, which is preceded by none but followed by some.
    \item This is the second item in a list of several items, which is preceded by some and followed by some.
    \item This is the third item in a list of several items, which is preceded by some and followed by some.
    \item This is the fourth item in a list of several items, which is preceded by some but followed by none.
  \end{itemize}

  \lipsum[4]
\end{document}

<code>parskip</code> package with manual set of <code>parskip</code> length

As can be seen, the manual adjustment of the parskip length does not undermine the enhancements to layout achieved by loading the parskip package. So this option offers the best results with standard classes.

That is, some classes are designed to accommodate non-zero parskip and zero parindent in their design, and these will likely have more fine-grained tuning. But for classes which are not so designed, loading the package parskip instead of, or in addition to, setting the parskip length explicitly will give the best results.

To avoid the oddity of the indented paragraph in the quotation, either use quote rather than quotation or let the latter environment be equal to the former one:

\documentclass{article}
\usepackage{lipsum} % for example dummy text
\usepackage[parfill]{parskip}
\setlength\parskip{.5\baselineskip plus .1\baselineskip minus .1\baselineskip}
\let\quotation\quote
\begin{document}
  \lipsum[1]

  \begin{quotation}
    \lipsum[2]
  \end{quotation}

  \lipsum[3]

  \begin{itemize}
    \item This is the first item in a list of several items, which is preceded by none but followed by some.
    \item This is the second item in a list of several items, which is preceded by some and followed by some.
    \item This is the third item in a list of several items, which is preceded by some and followed by some.
    \item This is the fourth item in a list of several items, which is preceded by some but followed by none.
  \end{itemize}

  \lipsum[4]
\end{document}

<code>parskip</code>, adjusted <code>parskip</code> and fixed <code>quotation</code>