latex-wochenende/slides/chapter-07.en.md

1.5 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}

Caution: Proper ragged alignment is even more difficult than good justification, so better avoid it.

@todo Caution-Label hinzufügen

@preview

@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 parametres are customisable:
\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

@slide(layout=task)

@task-number 6

@title Formatting paragraphs

@content

  • ++ Examine how indentation and spacing are used on the titlepage.
  • ++ Tinker around with the available settings and see what they change.
  • ++ Make use of the undo-button if you get lost. ;)