diff --git a/workshops/latex/examples/includegraphics.tex b/workshops/latex/examples/includegraphics.tex new file mode 100644 index 0000000000000000000000000000000000000000..a83ce4906ec6abd51fc72c16c2bbf158dc993966 --- /dev/null +++ b/workshops/latex/examples/includegraphics.tex @@ -0,0 +1 @@ +\includegraphics[width=5cm]{doge.jpg} diff --git a/workshops/latex/examples/tabular.pdf b/workshops/latex/examples/tabular.pdf new file mode 100644 index 0000000000000000000000000000000000000000..03881b3ed3b72696389effbea3a23b2a0f59083a Binary files /dev/null and b/workshops/latex/examples/tabular.pdf differ diff --git a/workshops/latex/examples/tabular.tex b/workshops/latex/examples/tabular.tex new file mode 100644 index 0000000000000000000000000000000000000000..c7d162e559fffb5f59346b7033353792972f689e --- /dev/null +++ b/workshops/latex/examples/tabular.tex @@ -0,0 +1,6 @@ +\begin{tabular}{r|lcc} + no & Name & Zahl & Summe \\ + \hline + 1 & cat & 42 & 42 \\ + 2 & doge & 1 & 42?! +\end{tabular} diff --git a/workshops/latex/detexify.png b/workshops/latex/figures/detexify.png similarity index 100% rename from workshops/latex/detexify.png rename to workshops/latex/figures/detexify.png diff --git a/workshops/latex/figures/doge.png b/workshops/latex/figures/doge.png new file mode 100644 index 0000000000000000000000000000000000000000..730fe60ebf1f709c65ed9d7f21cd42b706a0107e Binary files /dev/null and b/workshops/latex/figures/doge.png differ diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 3552040fea14f4c8309667ddd42494e0ae4b8a72..d3aa8793a34378c032b3b1713de34a21fa4fbd52 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -24,8 +24,8 @@ texcsstyle=*\color{Mahogany}\bfseries, commentstyle=\itshape\color{RoyalBlue}, keywordstyle=\color{RoyalBlue}\bfseries, - moretexcs={lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin}, - morekeywords={center,document,flushleft,flushright,itemize,enumerate} + moretexcs={lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics}, + morekeywords={center,document,flushleft,flushright,itemize,enumerate,tabular} } \makeatletter @@ -488,16 +488,46 @@ \begin{frame}{Detexify}{\url{http://detexify.kirelabs.org}} \vspace{-18pt} - \includegraphics[width=\textwidth]{detexify.png} + \includegraphics[width=\textwidth]{figures/detexify.png} \end{frame} -\begin{frame}{Bilder \& Tabellen} +\begin{frame}[fragile]{Bilder \& Tabellen} \begin{itemize} \item \highlightRed{\textbackslash% includegraphics}\texttt{[optional]}\highlightRed{\{\}}, um Bilder einzubinden (bspw. \texttt{width=0.9\textbackslash textwidth} als Option) + \begin{tikzpicture} + \node[matrix,column sep=4pt, row sep=6pt] { + \node[draw=blue!20!lightgray,line width=2pt]{ + \begin{minipage}[t][1.0cm][c]{.4\textwidth} + \lstinputlisting[basicstyle=\tiny]{examples/includegraphics.tex} + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray,line width=2pt]{ + \begin{minipage}[t][1.0cm][c]{.3\textwidth} + \centering + \includegraphics[width=1.0cm]{figures/doge.png} + \end{minipage} + }; \\ + }; + \end{tikzpicture} \item \highlightBlu{tabular}-Umgebung für Tabellen: - \lstinputlisting{examples/tabular.tex} ARROW IMAGE. + \begin{tikzpicture} + \node[matrix, column sep=4pt, row sep=6pt] { + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][1.8cm][c]{.4\textwidth} + \lstinputlisting[basicstyle=\tiny]{examples/tabular.tex} + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][1.8cm][c]{.3\textwidth} + \includegraphics[width=\textwidth]{examples/tabular.pdf} + \end{minipage} + }; \\ + }; + \end{tikzpicture} \end{itemize} \end{frame}