diff --git a/workshops/latex/compile.sh b/workshops/latex/compile.sh index 405f6b39069ea1cd4b900f9c2c963691203d0760..c11ea786c9a478061dd979abb4b5a9443acab469 100755 --- a/workshops/latex/compile.sh +++ b/workshops/latex/compile.sh @@ -1,11 +1,6 @@ #!/bin/bash cd examples -for i in $(ls *.tex) -do - pdflatex $i - rm $i.aux - rm $i.log -done +lualatex 2h_fake.tex cd .. -pdflatex latex.tex -pdflatex latex.tex +lualatex latex.tex +lualatex latex.tex diff --git a/workshops/latex/examples/2h.tex b/workshops/latex/examples/2h.tex index 4446569cee07b25911df4cba7860701472b1d8e6..c002e1c55979b8422c58b9becea7571aef06a8b5 100644 --- a/workshops/latex/examples/2h.tex +++ b/workshops/latex/examples/2h.tex @@ -1,4 +1,7 @@ -\section{Haupttitel} -\subsection{Subtitel} -\subsubsection{...} -\paragraph {Paragraph} +\section{Erster Teil} +\subsection{Teil 1a} +\subsection{Teil 1b} +\section{Zweriter Teil} +\subsection{Teil 2a} +\section*{Versteckt} +\section{Weiterer Teil} \ No newline at end of file diff --git a/workshops/latex/examples/2h_fake.pdf b/workshops/latex/examples/2h_fake.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2bbe9113e1312ce92cc880a7e99e4655f60b7bba Binary files /dev/null and b/workshops/latex/examples/2h_fake.pdf differ diff --git a/workshops/latex/examples/2h_fake.tex b/workshops/latex/examples/2h_fake.tex new file mode 100644 index 0000000000000000000000000000000000000000..50f0a71c57393f78be04273eead1fd2e219b9e68 --- /dev/null +++ b/workshops/latex/examples/2h_fake.tex @@ -0,0 +1,15 @@ +\documentclass[12pt,a5paper]{article} +\usepackage{geometry} +\begin{document} +\tableofcontents +\vspace{24pt} +\noindent\hrulefill +\vspace{12pt} +\section{Erster Teil} +\subsection{Teil 1a} +\subsection{Teil 1b} +\section{Zweriter Teil} +\subsection{Teil 2a} +\section*{Versteckt} +\section{Weiterer Teil} +\end{document} diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 2d3fbbf4e5f038792fa817668908469e250b3ceb..26c3a7f487f5f147af671f2f53349b3a307010fe 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -298,35 +298,41 @@ \end{minipage} }; \\ - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} +}; +\end{tikzpicture} +\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) + \item Überschriften (automatisch numeriert) \end{itemize} \end{minipage} }; & \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][10mm][c]{.3\textwidth} - \lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2h.tex} + \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][10mm][c]{.25\textwidth} - Foto + \begin{minipage}[t][50mm][c]{.25\textwidth} + \includegraphics[width=\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/2h_fake.pdf} \end{minipage} }; \\ }; \end{tikzpicture} - \end{frame} \begin{frame}[fragile]{Abschnitte und Umgebungen} \structure{Umgebungen:} -%TODO Überschriften verbessen \begin{tikzpicture} \node[matrix, column sep=4pt, row sep=6pt] { \node{