diff --git a/content/graphics.tex b/content/graphics.tex index 304fb92..e833a27 100644 --- a/content/graphics.tex +++ b/content/graphics.tex @@ -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{} - \caption[]{} + \includegraphics{} + \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]{} +\includegraphics[width=0.5\textwidth,height=5cm]{} \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}[] +\begin{figure}[] \centering - \includegraphics{} + \includegraphics{} \end{figure} \end{minted} diff --git a/exercises/graphics/graphics.raw.tex b/exercises/graphics/graphics.raw.tex index 5117431..9ac5ebd 100644 --- a/exercises/graphics/graphics.raw.tex +++ b/exercises/graphics/graphics.raw.tex @@ -1 +1 @@ -Bitte hier das Bild einfügen. \ No newline at end of file +Please insert the image here. \ No newline at end of file diff --git a/exercises/graphics/task.tex b/exercises/graphics/task.tex index cb0747c..460bd8f 100644 --- a/exercises/graphics/task.tex +++ b/exercises/graphics/task.tex @@ -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}