first translation of formatting paragraphs.tex

This commit is contained in:
Fradtschuk 2021-06-26 00:29:45 +02:00
parent 10e543c239
commit 6e0942fb21
2 changed files with 34 additions and 18 deletions

View File

@ -1,22 +1,30 @@
\chapter{Absatzformatierung} % (fold)
\chapter{Formatting Paragraphs} % (fold)
\label{sec:formatting-paragraphs}
\section*{Flattersatz}
\section*{Ragged Alignment}
\label{sec:ragged-alignment}
Standardmäßig setzt \LaTeX{} Fließtext im Blocksatz.
Flattersatz\footnote{Bekannt als links, rechts oder zentriert ausgerichteter Text in Programmen wie Word.} ist aber auch möglich.
Die Befehle \mintinline{tex}|\raggedright|, \mintinline{tex}|\raggedleft| und \mintinline{tex}|\centering| können dazu verwendet werden.
Diese Befehle beeinflussen die Umgebung, in der sie verwendet werden.
Dies kann zum Beispiel die \texttt{document}-Umgebung sein, dementsprechend würde sämtlicher Text des Dokuments beeinflusst werden.
Alternativ existieren Umgebungen, welche die Absatzformatierung beeinflussen (\cref{lst:ragged-alignment}).
By default, \LaTeX{} sets continuous text in full justification.
However, we can also switch to ragged alignment by using the commands
\mintinline{tex}|\raggedright|, \mintinline{tex}|\raggedleft|, and
\mintinline{tex}|\centering|.
These commands influence the environment that they are used in, e.\,g., the
\texttt{document} environment. Correspondingly, the text within the whole
document is affected.
Alternatively, we can use dedicated environments in order to influence the
format
of our paragraph (\cref{lst:ragged-alignment}).
\example{lst:ragged-alignment}{formatting-paragraphs/ragged-alignment}{Flattersatz}
\example{lst:ragged-alignment}{formatting-paragraphs/ragged-alignment}{Ragged
Alignment}
\section*{Einzüge und Abstände}
\section*{Indentation and Spacing}
\label{sec:indents-and-parskips}
Absätze werden standardmäßig durch Einzüge in der ersten Zeile des Absatzes verdeutlicht (\mintinline{tex}{\parindent}).
Stattdessen können auch vertikale Abstände zwischen den Absätzen verwendet werden (\mintinline{tex}{\parskip}).
Für beide Varianten gibt es einstellbare Parameter:
Usually, we illustrate a new paragraph by indenting the first line of it
(\mintinline{tex}{\parindent}).
Alternatively, paragraph spacing, i.\,e., vertical space between paragraphs,
can be used (\mintinline{tex}{\parskip}).
For both variants, there are adjustable parameters:
\begin{minted}{tex}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em
@ -24,6 +32,8 @@ Für beide Varianten gibt es einstellbare Parameter:
minus .5em % erlaubte Stauchung
}
\end{minted}
Mit dem Befehl \mintinline{tex}{\noindent} kann für nur einen Absatz der Einzug abgeschaltet werden.
Für den ersten Absatz nach einer Überschrift wird standardmäßig automatisch kein Einzug eingefügt.
We can use \mintinline{tex}{\noindent} to turn off the indentation for only one
paragraph.
For the first paragraph after a heading, there is usually no indentation.

View File

@ -1,5 +1,11 @@
\begin{flushleft} Dieser Text steht in einer \texttt{flushleft}-Umgebung. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{flushleft}
\begin{flushleft} This text is situated inside a \texttt{flushleft}
environment. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{flushleft}
\begin{flushright} Dieser Text steht in einer \texttt{flushright}-Umgebung. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{flushright}
\begin{flushright} This text is situated inside a \texttt{flushright}
environment. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{flushright}
\begin{center} Dieser Text steht in einer \texttt{center}-Umgebung. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end{center}
\begin{center} This text is situated inside a \texttt{center} environment.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. \end{center}