1.2 KiB
1.2 KiB
@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.
\raggedright … \raggedleft …
\centering …
Alternatively, we can use dedicated environments:
\begin{flushleft} Text \end{flushleft}
\begin{flushright} Text \end{flushright}
\begin{center} Text \end{center}
Proper ragged alignment is even more difficult than good justification, so better avoid it.
@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:
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em
plus .5em % permitted stretch
minus .5em % permitted compression
}
\noindentallows us to disable first-line indentation for a given paragraph