diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 5253c376266297e743b239467f164db6947d25af..02aeaa92adb2c543e3422e4e6d5439a39a74e72d 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -1,4 +1,10 @@ \documentclass[xcolor=dvipsnames]{beamer} +\newif\ifshownotes +\ifdefined\shownotes + \shownotestrue +\else + \shownotesfalse +\fi %\usepackage[utf8]{inputenc} %\usepackage[T1]{fontenc} @@ -14,6 +20,8 @@ \usefonttheme{professionalfonts} \newcommand{\bsl}{\textbackslash} +\renewcommand\note[2][]{\ifshownotes#1{\color[rgb]{0,.5,0}#2}\fi} + \hypersetup{unicode=true} \setmonofont{FiraCode} @@ -70,9 +78,8 @@ \titlepage \end{frame} -\section{Motivation} +%\section{Motivation} \section{Dokumente mit \LaTeX} -\subsection{\TeX{}studio als Editor} \subsection{Aufbau eines \LaTeX-Dokuments} \OSAKthemenologo \begin{frame}[fragile]{Aufbau eines \LaTeX-Dokuments} @@ -80,6 +87,7 @@ \begin{column}{.45\textwidth} \structure{{\LaTeX} übersetzt Text in ein PDF} \\[12pt] \begin{itemize} + \note[\item]{Wer hat schon mal ein Dokument erstellt?\\[10pt]} \item Automatische Formatierung \\[12pt] \item Befehle, z.\,B. \texttt{\textbackslash textbf\{\}}, haben Effekte (z.\,B. \textbf{fett}) \\[12pt] @@ -115,12 +123,13 @@ \end{frame} % Logo einblenden -\OSAKthemelogo -\subsection{Beispieldokument} -\section{Präsentationen mit \LaTeX-Beamer} -% Logo ausblenden -\OSAKthemenologo +%\OSAKthemelogo +%\subsection{Beispieldokument} +%\section{Präsentationen mit \LaTeX-Beamer} +%% Logo ausblenden +%\OSAKthemenologo +\subsection{\TeX{}studio als Editor} \begin{frame}{TeXStudio (Editor)} \vspace{-8pt} \includegraphics[width=\textwidth]{figures/texstudio.png} diff --git a/workshops/latex/makefile b/workshops/latex/makefile new file mode 100644 index 0000000000000000000000000000000000000000..71eb01b944be67c88d844c249797f9b411ad16c1 --- /dev/null +++ b/workshops/latex/makefile @@ -0,0 +1,9 @@ +#!/bin/make -f + +EXAMPLES = examples/2h_fake.pdf examples/tabular.pdf examples/figure.pdf examples/preamble.pdf + +latex.pdf: latex.tex $(EXAMPLES) + latexmk -lualatex latex.tex + +notes.pdf: latex.tex $(EXAMPLES) + latexmk -lualatex notes.tex diff --git a/workshops/latex/notes.tex b/workshops/latex/notes.tex new file mode 100644 index 0000000000000000000000000000000000000000..3a8ca022ac1534ea8bee58729bee416109cefb4a --- /dev/null +++ b/workshops/latex/notes.tex @@ -0,0 +1 @@ +\def\shownotes{1}\input{latex.tex}