From 4cd0b439e4e0f75b983276a9da00a743b8cb4e40 Mon Sep 17 00:00:00 2001
From: Stefan Heimersheim <stefan.heimersheim@rwth-aachen.de>
Date: Thu, 23 May 2019 23:42:07 +0200
Subject: [PATCH] fixed sections

---
 workshops/latex/latex.tex | 46 +++++++++++++++++----------------------
 1 file changed, 20 insertions(+), 26 deletions(-)

diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex
index 6d83c5d..3552040 100644
--- a/workshops/latex/latex.tex
+++ b/workshops/latex/latex.tex
@@ -305,34 +305,28 @@
 \end{frame}
 
 \begin{frame}[fragile]{Sections}
-\structure{Sections:}
-\begin{tikzpicture}
-\node[matrix, column sep=4pt, row sep=6pt] {
-\node{
-  \begin{minipage}[t][20mm][c]{.28\textwidth}
-  \begin{itemize}
-    \item Überschriften (automatisch numeriert)
-  \end{itemize}
-  \end{minipage}
-}; &
-\node[draw=blue!20!lightgray, line width=2pt]{
-  \begin{minipage}[t][20mm][c]{.3\textwidth}
-    \lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2h.tex}
-  \end{minipage}
-}; &
-\node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; &
-\node[draw=blue!20!lightgray, line width=2pt]{
-  \begin{minipage}[t][50mm][c]{.25\textwidth}
-    \includegraphics[width=\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/2h_fake.pdf}
-  \end{minipage}
-};
-\\
-};
-\end{tikzpicture}
+\begin{columns}
+	\begin{column}{0.4\textwidth}
+		\structure{Sections}
+		\begin{itemize}
+			\item Überschriften (automatisch numeriert):
+			\begin{tikzpicture}
+			\node[draw=blue!20!lightgray, line width=2pt]{
+				\begin{minipage}[t][22mm][c]{0.7\textwidth}
+				\lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2h.tex}
+				\end{minipage}
+			};
+			\end{tikzpicture}
+			\item Inhaltsverzeichnis (automatisch):
+			\texttt{\textbackslash tableofcontents}
+		\end{itemize}
+	\end{column}
+	\begin{column}{0.5\textwidth}
+      \includegraphics[width=\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/2h_fake.pdf}
+	\end{column}
+\end{columns}
 \end{frame}
 
-
-
 \begin{frame}[fragile]{Abschnitte und Umgebungen}
 \structure{Umgebungen:}
 \begin{tikzpicture}
-- 
GitLab