Commit 6b88ec6f authored by Lennart Klebl's avatar Lennart Klebl
Browse files

floats should be done in latex.tex

parent 820d496f
../figures/doge.png
\ No newline at end of file
\begin{figure}
\centering
\includegraphics[width=4cm]{doge.png}
\caption[Doge mit Helm]{
\label{fig:doge} Dieses Bild zeigt
einen \emph{Doge} mit Bauhelm.
}
\end{figure}
\documentclass[12pt,a6paper,german]{article}
\usepackage[ngerman]{babel}
\usepackage{geometry}
\usepackage{graphicx}
\begin{document}
\input{figure.tex}
\end{document}
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
commentstyle=\itshape\color{RoyalBlue}, commentstyle=\itshape\color{RoyalBlue},
keywordstyle=\color{RoyalBlue}\bfseries, keywordstyle=\color{RoyalBlue}\bfseries,
moretexcs={lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics,hello,bye,setmainlanguage,setlength}, moretexcs={lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics,hello,bye,setmainlanguage,setlength},
morekeywords={center,document,flushleft,flushright,itemize,enumerate,tabular,article,polyglossia,geometry,amsmath,graphicx,xcolor,hyperref} morekeywords={center,document,flushleft,flushright,itemize,enumerate,tabular,article,polyglossia,geometry,amsmath,graphicx,xcolor,hyperref,figure}
} }
\makeatletter \makeatletter
...@@ -553,21 +553,48 @@ ...@@ -553,21 +553,48 @@
\end{frame} \end{frame}
\begin{frame}[fragile]{Floats} \begin{frame}[fragile]{Floats}
\structure{Floats} für Bilder, Tabellen, ... \emph{im Text} \begin{columns}
\begin{itemize} \begin{column}{0.45\textwidth}
\item Umgebungen \highlightBlu{table} \& \highlightBlu{figure} \structure{Floats} für Bilder, Tabellen, ... \emph{im Text}
\item \highlightRed{\textbackslash{}centering} \begin{itemize}
\item \highlightRed{\textbackslash{}caption}\verb+{Bildunterschrift}+ \small
\item \highlightRed{\textbackslash{}includegraphics}\verb+{}+ \& \item Umgebungen \highlightBlu{table} \& \highlightBlu{figure}
\highlightBlu{tabular} zusätzlich \\ \item \highlightRed{\textbackslash{}centering}
\emph{{\ttfamily\color{RoyalBlue}table} \& \item \highlightRed{\textbackslash{}caption}\verb+{Text}+
{\ttfamily\color{RoyalBlue}figure} Umgebungen sind initial leer!} \item \highlightRed{\textbackslash{}includegraphics}\verb+{}+ \&
% TODO Bild von float machen! \highlightBlu{tabular} zusätzlich \\[5pt]
\end{itemize} \scriptsize
\emph{{\ttfamily\color{RoyalBlue}table} \&
{\ttfamily\color{RoyalBlue}figure} Umgebungen sind initial leer!}
% TODO Bild von float machen!
\end{itemize}
\end{column}
\begin{column}{0.45\textwidth}
\begin{tikzpicture}
\node[matrix,column sep=4pt, row sep=6pt] {
\node[draw=blue!20!lightgray,line width=2pt]{
\begin{minipage}[t][2.1cm][c]{\textwidth}
\lstinputlisting[basicstyle=\tiny]{examples/figure.tex}
\end{minipage}
}; \\
\node[rotate=270]{
\includegraphics[width=16pt]{figures/texstudio-compile.pdf}
}; \\
\node[draw=blue!20!lightgray,line width=2pt]{
\begin{minipage}[t][2.75cm][c]{\textwidth}
\centering
\includegraphics[width=0.7\textwidth]{examples/figure.pdf}
\end{minipage}
}; \\
};
\end{tikzpicture}
\end{column}
\end{columns}
\end{frame} \end{frame}
\begin{frame}[fragile]{Labels, Referenzen und Links} \begin{frame}[fragile]{Labels, Referenzen und Links}
\structure{Referenzen} markieren mit \texttt{\textbackslash label}, verweisen mit \texttt{\textbackslash ref}: \structure{Referenzen} markieren mit \texttt{\textbackslash label},
verweisen mit \texttt{\textbackslash ref}:
\begin{tikzpicture} \begin{tikzpicture}
\node[matrix, column sep=4pt, row sep=6pt] { \node[matrix, column sep=4pt, row sep=6pt] {
\node{ \node{
...@@ -617,6 +644,8 @@ ...@@ -617,6 +644,8 @@
\begin{itemize} \begin{itemize}
\item Einfügen mit \verb|\footnote{Fußnotentext}| irgendwo: \item Einfügen mit \verb|\footnote{Fußnotentext}| irgendwo:
\end{itemize} \end{itemize}
\begin{center}
\vspace{-6pt}
\begin{tikzpicture} \begin{tikzpicture}
\node[matrix, column sep=4pt, row sep=6pt] { \node[matrix, column sep=4pt, row sep=6pt] {
\node[draw=blue!20!lightgray, line width=2pt]{ \node[draw=blue!20!lightgray, line width=2pt]{
...@@ -633,14 +662,17 @@ ...@@ -633,14 +662,17 @@
\\ \\
}; };
\end{tikzpicture} \end{tikzpicture}
\vspace{-6pt}
\end{center}
\structure{Besondere Zeichen} \structure{Besondere Zeichen}
\begin{itemize} \begin{itemize}
\item \%, "{}: \texttt{\textbackslash\%}, \verb+"{}+ \item {\bfseries\color{MidnightBlue}\%, "{}}: \texttt{\textbackslash\%}, \verb+"{}+
\item \&, \#, \$: \texttt{\textbackslash\&, \textbackslash\#, \item {\bfseries\color{MidnightBlue}\&, \#, \$}: \texttt{\textbackslash\&,
\textbackslash\$} \textbackslash\#, \textbackslash\$}
\item \textbackslash, \{, \}: \texttt{\textbackslash textbackslash, \item {\bfseries\color{MidnightBlue}\textbackslash, \{, \}}: \texttt{\textbackslash
\textbackslash\{, \textbackslash\}} textbackslash, \textbackslash\{, \textbackslash\}}
\item \^, \_, \textasciitilde: \verb|\^, \_, \textasciitilde| \item {\bfseries\color{MidnightBlue}\^~, \_, \textasciitilde}: %
\verb|\^, \_, \textasciitilde|
%todo besser sortieren, noch was vergessen? %todo besser sortieren, noch was vergessen?
\end{itemize} \end{itemize}
\end{frame} \end{frame}
...@@ -662,7 +694,6 @@ ...@@ -662,7 +694,6 @@
{\only<1>{\color{RoyalBlue}}\only<2>{\color{Green}}\rule{0.5pt}{0.8\textheight}} {\only<1>{\color{RoyalBlue}}\only<2>{\color{Green}}\rule{0.5pt}{0.8\textheight}}
\end{column} \end{column}
\begin{column}{0.55\textwidth} \begin{column}{0.55\textwidth}
% TODO vertical alignment
\only<1>{\lstinputlisting[basicstyle=\tiny\ttfamily]{examples/preamble.tex}} \only<1>{\lstinputlisting[basicstyle=\tiny\ttfamily]{examples/preamble.tex}}
\only<2>{\vspace{-.5em}\includegraphics[width=0.8\textwidth]{examples/preamble.pdf}} \only<2>{\vspace{-.5em}\includegraphics[width=0.8\textwidth]{examples/preamble.pdf}}
\end{column} \end{column}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment