translate graphics chapter and exercise material

This commit is contained in:
Fradtschuk 2021-07-08 11:54:32 +02:00
parent f5a754fb0d
commit 4ec34c575b
3 changed files with 16 additions and 15 deletions

View File

@ -10,15 +10,15 @@ In order to be able to reference graphics, the package \texttt{graphicx} has to
\begin{minted}[tabsize=4]{latex}
\begin{figure}
\includegraphics{<dateipfad>}
\caption[<kurztitel>]{<bildunterschrift>}
\includegraphics{<file path>}
\caption[<short title>]{<caption>}
\end{figure}
\end{minted}
\noindent The command \texttt{includegraphics} can be used to change the image size. The desired height and width of the figure can be indicated separately, like illustrated by the following example:
\noindent The command \mintinline{latex}{includegraphics} can be used to change the image size. The desired height and width of the figure can be indicated separately, like illustrated by the following example:
\begin{minted}{latex}
\includegraphics[width=0.5\textwidth,height=5cm]{<dateipfad>}
\includegraphics[width=0.5\textwidth,height=5cm]{<file path>}
\end{minted}
\section{Positioning}
@ -31,16 +31,16 @@ In order to reference a picture, that possibly is placed on another page, we can
On top of that, we can limit the positioning of our image more or less rigorously by adding optional parameters to the \texttt{figure} environment. The available positioning shortcuts can be found in \cref{tbl:placement-abbreviations}.
\begin{table}[h!]
\center
\centering
\begin{tabular}{cl}
\toprule
Kürzel & Position \\
Shortcut & Position \\
\midrule
h & möglichst hier, wenn es gefällt \\
t & oberer Seitenrand \emph{(top)} \\
b & unterer Seitenrand \emph{(bottom)} \\
p & auf einer eigenen Seite \emph{(page)} \\
H & Definitiv an dieser Stelle! (benötigt Paket \texttt{float}) \\
h & here, if possible \\
t & on top of the page \emph{(top)} \\
b & at the bottom of the bage \emph{(bottom)} \\
p & on its own apge\emph{(page)} \\
H & Definitely here! (requires package \texttt{float}) \\
\bottomrule
\end{tabular}
\caption{Shortcuts for Positioning Graphics}
@ -48,9 +48,9 @@ On top of that, we can limit the positioning of our image more or less rigorousl
\end{table}
\begin{minted}[tabsize=4]{latex}
\begin{figure}[<positionskürzel>]
\begin{figure}[<position shortcut>]
\centering
\includegraphics{<dateipfad>}
\includegraphics{<file path>}
\end{figure}
\end{minted}

View File

@ -1 +1 @@
Bitte hier das Bild einfügen.
Please insert the image here.

View File

@ -1,3 +1,4 @@
Bei den Übungsaufgaben findet ihr im Ordner \mintinline{latex}{graphics} eine Bilddatei namens \mintinline{latex}{latex-logo.png}. Fügt das Bild in die Datei \mintinline{bash}{exercises/graphics/graphics.tex} ein. Sorgt dafür, dass das Bild genau unter diesem Text erscheint. Das Bild soll außerdem zentriert eingebunden werden und über eine Bildunterschrift verfügen. Passt die Größe außerdem an die Breite der Seite (\mintinline{latex}{\textwidth}) an.
In the \texttt{exercises/graphics} directory you can find an image file named \texttt{latex-logo.png}. Insert the image into the \texttt{exercises/graphics/graphics.tex} file. Make sure that the image is placed exactly where you have specified it. On top of that, the picture shall be centered, and a caption shall be added. Adapt the image width to the text width (\mintinline{latex}{\textwidth}).
\exercisematerial{exercises/graphics/graphics}