Translate chapter 6.
This commit is contained in:
parent
ce626899fd
commit
0d7239443c
@ -1,67 +1,70 @@
|
|||||||
\chapter{Textauszeichnung}
|
\chapter{Text markup}
|
||||||
|
|
||||||
Bei der Textauszeichnung wird zwischen semantischer und optischer Hervorhebung unterschieden.
|
Text markup can be done in two ways: semantically or visually.
|
||||||
Wir empfehlen, so oft wie möglich semantische Auszeichnung zu verwenden, die nur angibt, \emph{warum} etwas ausgezeichnet wird, und \LaTeX{} überlässt, \emph{wie} es aussehen soll.
|
We recommend that you use semantic markup whenever possible.
|
||||||
Die einfachste semantische Auszeichnung, die auch im vorherigen Satz verwendet wurde, ist eine Betonung mit \mintinline{latex}{\emph{…}}.
|
In contrast to visual markup, it only states \emph{why} something is \todo{better word here}marked and entrusts to \LaTeX{} \emph{how} it is going to look.
|
||||||
Der Befehl lässt sich auch schachteln und setzt Text normalerweise kursiv bzw. in zweiter Ebene wieder gerade.
|
The simplest semantic markup, that was also used in the previous sentence, is an emphasis: \mintinline{latex}{\emph{…}}.
|
||||||
Diese Art der Hervorhebung wird erst beim Lesen wahrgenommen und zieht nicht schon vorher Aufmerksamkeit an, wie es der farbige Befehl in diesem Absatz tut, oder Fettsatz, der eher zur Gliederung geeignet ist.
|
By default, this command sets text in italics.
|
||||||
|
When it is nested, the second level of emphasis is set straight again.
|
||||||
|
This kind of formatting is only perceived when reading the text and does not attract attention beforehand, as colored or bold text does (which is more appropriate for higher-level structuring purposes).
|
||||||
|
|
||||||
Einige optische Auszeichnungen werden in \cref{tbl:visual-markup} aufgelistet, sollten aber sehr vorsichtig verwendet werden.
|
Some types of visual markup are listed in \cref{tbl:visual-markup}, but you should use them very carefully.
|
||||||
Grundsätzlich lassen sie sich auch untereinander schachteln, bei einigen Kombinationen werden aber die passenden Schriftschnitte fehlen.
|
In principle, they can also be nested, however, for some combinations, the corresponding fonts will be missing.
|
||||||
Viele andere Programme fangen in solchen Fällen an, vorhandene Schnitte zu verzerren, um den fehlenden Schnitt zu imitieren.
|
Many other programs try to distort existing fonts to imitate the missing one.
|
||||||
Gut sieht so etwas aber nicht aus, deshalb verzichtet \LaTeX{} darauf.
|
As this \todo{Are we doing synaereses?}doesn’t look particularly good, \LaTeX{} will not do it.
|
||||||
|
So don’t be surprised when your carefully nested selection of four different markups is just ignored and doesn’t do anything at all.
|
||||||
|
|
||||||
\begin{table}[H]
|
\begin{table}[H]
|
||||||
\center
|
\center
|
||||||
\begin{tabular}{lll}
|
\begin{tabular}{lll}
|
||||||
\toprule
|
\toprule
|
||||||
Auszeichnung & Befehl & Darstellung \\
|
Markup & Command & Rendering \\
|
||||||
\midrule
|
\midrule
|
||||||
fett & \mintinline{latex}{\textbf{bold face}} & \textbf{bold face} \\
|
bold & \mintinline{latex}{\textbf{bold face}} & \textbf{bold face} \\
|
||||||
kursiv & \mintinline{latex}{\textit{italics}} & \textit{italics} \\
|
italics & \mintinline{latex}{\textit{italics}} & \textit{italics} \\
|
||||||
Kapitälchen & \mintinline{latex}{\textsc{small caps}} & \textsc{small caps} \\
|
small caps & \mintinline{latex}{\textsc{small caps}} & \textsc{small caps} \\
|
||||||
dicktengleich & \mintinline{latex}{\texttt{typewriter text}} & \texttt{typewriter text} \\
|
monospaced & \mintinline{latex}{\texttt{typewriter text}} & \texttt{typewriter text} \\
|
||||||
schräg & \mintinline{latex}{\texttt{slanted}} & \textsl{slanted} (bitte nicht!) \\
|
slanted & \mintinline{latex}{\texttt{slanted}} & \textsl{slanted} (please, don’t!) \\
|
||||||
unterstrichen & \mintinline{latex}{\underline{underlined}} & \underline{underlined} \\
|
underlined & \mintinline{latex}{\underline{underlined}} & \underline{underlined} \\
|
||||||
tiefgestellt & \mintinline{latex}{\textsubscript{subscript}} & x\textsubscript{subscript} \\
|
subscript & \mintinline{latex}{\textsubscript{subscript}} & x\textsubscript{subscript} \\
|
||||||
hochgestellt & \mintinline{latex}{\textsubscript{superscript}} & x\textsuperscript{superscript} \\
|
superscript & \mintinline{latex}{\textsubscript{superscript}} & x\textsuperscript{superscript} \\
|
||||||
\bottomrule
|
\bottomrule
|
||||||
\end{tabular}
|
\end{tabular}
|
||||||
\caption{Befehle zur optischen Textauszeichnung}
|
\caption{Visual markup commands}
|
||||||
\label{tbl:visual-markup}
|
\label{tbl:visual-markup}
|
||||||
\end{table}
|
\end{table}
|
||||||
|
|
||||||
Normalerweise solltet ihr diese Befehle kaum brauchen, denn da, wo diese Auszeichnungen angebracht sind, tauchen sie meistens von selbst auf, wenn ihr semantische Befehle verwendet.
|
Usually, you should not need these commands too often, as they appear by themselves when you are using semantic markup.
|
||||||
Beispielsweise stellt das Paket \texttt{hyperref} den Befehl \mintinline{latex}{\url{…}} bereit.
|
For instance, the \texttt{hyperref} package provides the \mintinline{latex}{\url{…}} command.
|
||||||
Damit werden \textsc{url}s nicht nur mit einer dickten\-gleichen Schrift gesetzt, sondern sie sind auch anklickbar und werden bei Bedarf umgebrochen, ohne dass Bindestriche eingefügt werden.
|
This command does not only use a monospaced font for \textsc{URL}s, it also makes them clickable and, if necessary, wraps them without adding hyphens.
|
||||||
|
|
||||||
Das gleiche gilt für unterschiedliche Schriftgrößen:
|
The same applies for different font sizes.
|
||||||
Die Größe der Schrift im Fließtext könnt ihr mit einer Option der Dokumentenklasse festlegen:
|
You can specify the body text font size with an option at the document class:
|
||||||
\begin{minted}{latex}
|
\begin{minted}{latex}
|
||||||
\documentclass[9pt]{article}
|
\documentclass[9pt]{article}
|
||||||
\end{minted}
|
\end{minted}
|
||||||
Darauf aufbauend erzeugt \LaTeX{} verschiedene Schriftgrade, die durch die Befehle in \cref{tbl:type-sizes} gesetzt werden können.
|
Building upon this, \LaTeX{} generates different font sizes that can be called via the commands in \cref{tbl:type-sizes}.
|
||||||
Beschränkt so etwas aber besser auf Titelseiten und ähnliches.
|
It is, however, best to restrict those to title pages and similar things.
|
||||||
Für den Rest könnt ihr auf die Standardeinstellungen vertrauen und euch das visuelle Durcheinander sparen.
|
For the rest, you can trust the default settings and avoid the visual clutter.
|
||||||
|
|
||||||
\begin{table}[H]
|
\begin{table}[H]
|
||||||
\center
|
\center
|
||||||
\begin{tabular}{ll}
|
\begin{tabular}{ll}
|
||||||
\toprule
|
\toprule
|
||||||
Befehl & Darstellung \\
|
Command & Rendering \\
|
||||||
\midrule
|
\midrule
|
||||||
\mintinline{latex}{{\tiny winzig}} & {\tiny winzig} \\
|
\mintinline{latex}{{\tiny tiny}} & {\tiny tiny} \\
|
||||||
\mintinline{latex}{{\footnotesize Fußnotengröße}} & {\footnotesize Fußnotengröße} \\
|
\mintinline{latex}{{\footnotesize footnote size}} & {\footnotesize footnote size} \\
|
||||||
\mintinline{latex}{{\small klein}} & {\small klein} \\
|
\mintinline{latex}{{\small small}} & {\small small} \\
|
||||||
\mintinline{latex}{{\normalsize normal}} & {\normalsize normal} \\
|
\mintinline{latex}{{\normalsize normal}} & {\normalsize normal} \\
|
||||||
\mintinline{latex}{{\large groß}} & {\large groß} \\
|
\mintinline{latex}{{\large large}} & {\large large} \\
|
||||||
\mintinline{latex}{{\Large größer}} & {\Large größer} \\
|
\mintinline{latex}{{\Large larger}} & {\Large larger} \\
|
||||||
\mintinline{latex}{{\LARGE am größten}} & {\LARGE am größten} \\
|
\mintinline{latex}{{\LARGE largest}} & {\LARGE largest} \\
|
||||||
\mintinline{latex}{{\huge am allergrößten}} & {\huge am allergrößten} \\
|
\mintinline{latex}{{\huge largest of all}} & {\huge largest of all} \\
|
||||||
\mintinline{latex}{{\Huge Größenwahn}} & {\Huge Größenwahn} \\
|
\mintinline{latex}{{\Huge megalomania}} & {\Huge megalomania} \\
|
||||||
\bottomrule
|
\bottomrule
|
||||||
\end{tabular}
|
\end{tabular}
|
||||||
\caption{Befehle zur optischen Textauszeichnung}
|
\caption{Font size commands}
|
||||||
\label{tbl:type-sizes}
|
\label{tbl:type-sizes}
|
||||||
\end{table}
|
\end{table}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user