Add section about graphics and figures
This commit is contained in:
parent
a8c62a35f3
commit
92e02dc43e
3 changed files with 54 additions and 7 deletions
6
codebeispiele/graphics-figure.tex
Normal file
6
codebeispiele/graphics-figure.tex
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
\begin{figure}
|
||||||
|
\includegraphics[height=
|
||||||
|
.4\textheight]{katze}
|
||||||
|
\label{img:katze}
|
||||||
|
\caption{Eine Katze}
|
||||||
|
\end{figure}
|
BIN
graphics/katze.jpg
Normal file
BIN
graphics/katze.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 KiB |
43
workshop.tex
43
workshop.tex
|
@ -2,6 +2,7 @@
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
|
\graphicspath{{./graphics/}}
|
||||||
\usepackage[ngerman]{babel}
|
\usepackage[ngerman]{babel}
|
||||||
\usepackage{longtable,capt-of,fvextra,csquotes}
|
\usepackage{longtable,capt-of,fvextra,csquotes}
|
||||||
\usepackage{wrapfig,rotating}
|
\usepackage{wrapfig,rotating}
|
||||||
|
@ -178,7 +179,15 @@ pdflang={German}}
|
||||||
\end{tabular}
|
\end{tabular}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
%TODO label and ref, pageref
|
\begin{frame}[fragile]{Verweise}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Label setzen: \verb|\label{<name>}|
|
||||||
|
\item Abschnitt referenzieren: \verb|\ref{<name>}|
|
||||||
|
\item Seite referenzieren: \verb|\pageref{<name>}|
|
||||||
|
\item Referenz nutzt immer aktuellste Abschnittnummer und Seitenzahl
|
||||||
|
\item zur Aktualisierung doppelte Durchläufe notwendig
|
||||||
|
\end{itemize}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}{Mathematik}
|
\begin{frame}{Mathematik}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
@ -239,4 +248,36 @@ pdflang={German}}
|
||||||
\inputminted{latex}{codebeispiele/math-equation.tex}
|
\inputminted{latex}{codebeispiele/math-equation.tex}
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[fragile]{Abbildungen und Graphiken}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Paket \verb|graphicx|
|
||||||
|
\item Unterstützung von jpg, png und pdf, Dateiendung kann weggelassen werden
|
||||||
|
\item Höhe und Breite als optionale Parameter
|
||||||
|
\begin{itemize}
|
||||||
|
\item \verb|\textwidth| oder \verb|textheight|
|
||||||
|
\end{itemize}
|
||||||
|
\item
|
||||||
|
\begin{minted}{latex}
|
||||||
|
\includegraphics[width=.5\textwidth]{<filename>}
|
||||||
|
\end{minted}
|
||||||
|
\end{itemize}
|
||||||
|
\begin{center}
|
||||||
|
\includegraphics[height=.5\textheight]{katze}
|
||||||
|
\end{center}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}{Graphiken als Gleitobjekt}
|
||||||
|
\begin{itemize}
|
||||||
|
\item Automatische Positionierung im Text
|
||||||
|
\item Referenzierung über Nummerierung
|
||||||
|
\end{itemize}
|
||||||
|
\begin{minipage}[c]{.4\textwidth}
|
||||||
|
\include{codebeispiele/graphics-figure}
|
||||||
|
\end{minipage}
|
||||||
|
\hfill
|
||||||
|
\begin{minipage}[c]{.5\textwidth}
|
||||||
|
\inputminted{latex}{codebeispiele/graphics-figure.tex}
|
||||||
|
\end{minipage}
|
||||||
|
\end{frame}
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
Loading…
Reference in a new issue