@slide(layout=chapter-slide)

@title
Formatting paragraphs

@slide(layout=content-and-preview)

@title
Ragged alignment

@content
By default, LaTeX sets text in full justification, but it is possible to activate ragged alignment.

``` {.lang-tex .hljs}
\raggedright … \raggedleft …
\centering …
```

Alternatively, we can use dedicated environments:

``` {.lang-tex .hljs}
\begin{flushleft}  Text \end{flushleft}
\begin{flushright} Text \end{flushright}
\begin{center}     Text \end{center}
```

<p data-category="Caution!">Proper ragged alignment is even more difficult than good justification, so better avoid it.</p>

@preview
![](svg/chapter-07/ausrichtung-crop.svg)


@slide(layout=content-and-preview)

@title
Indentation and spacing

@content
* paragraphs are usually indicated by first-line indentation (`\parindent`)
* we can decide to use paragraph spacing (`\parskip`) instead (!)
* both parameters are customisable:

``` {.lang-tex .hljs}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em
    plus  .5em % permitted stretch
    minus .5em % permitted compression
}
```

* `\noindent` allows us to disable first-line indentation for a given paragraph

@preview
![](./svg/chapter-07/indentation-spacing-orig.svg)

