From 6e0942fb21bdf44f56352a09e50d72764d7e8b05 Mon Sep 17 00:00:00 2001 From: efradtschuk Date: Sat, 26 Jun 2021 00:29:45 +0200 Subject: [PATCH] first translation of formatting paragraphs.tex --- content/formatting-paragraphs.tex | 40 ++++++++++++------- .../ragged-alignment.tex | 12 ++++-- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/content/formatting-paragraphs.tex b/content/formatting-paragraphs.tex index b8cb04d..44d28f6 100644 --- a/content/formatting-paragraphs.tex +++ b/content/formatting-paragraphs.tex @@ -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. diff --git a/listings/formatting-paragraphs/ragged-alignment.tex b/listings/formatting-paragraphs/ragged-alignment.tex index eb80223..8f3f676 100644 --- a/listings/formatting-paragraphs/ragged-alignment.tex +++ b/listings/formatting-paragraphs/ragged-alignment.tex @@ -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}