diff --git a/workshops/latex/.gitignore b/workshops/latex/.gitignore index 4d592bee699cb8f9c8499a9ade634e1f6a042cac..4da7335bea7989391601d0e75ac61594865faf00 100644 --- a/workshops/latex/.gitignore +++ b/workshops/latex/.gitignore @@ -1,2 +1,3 @@ bin/ *.pdf +!figures/*.pdf diff --git a/workshops/latex/figures/texstudio-compile.pdf b/workshops/latex/figures/texstudio-compile.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3208bd3f53bbaea04aad682d41c0f05683aa4398 Binary files /dev/null and b/workshops/latex/figures/texstudio-compile.pdf differ diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index c7269962dbf55753904e51aa60db09705b44020d..9dfa0cdc4c3d1503cc98241c57c2b0f90bdb624f 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -7,6 +7,9 @@ \usepackage{verbatim} \usepackage{dtk-logos} \usepackage{hyperref} +\usepackage{tikz} +\usepackage{listings} +\usepackage{calc} \usetheme{OSAK} @@ -39,7 +42,48 @@ \section{Motivation} \section{Dokumente mit \LaTeX} \subsection{\TeX{}studio als Editor} -\subsection{Aufbau eines \LaTeX-Dokumentes} +\subsection{Aufbau eines \LaTeX-Dokuments} +\OSAKthemenologo +\begin{frame}{Aufbau eines \LaTeX-Dokuments} + \begin{columns}[T] + \begin{column}{.35\textwidth} + \LaTeX übersetzt\\ + Text in ein PDF + \begin{itemize} + \item Formatierung durch\\Befehle im Text + \item Automatische Formatierung + \end{itemize} + \end{column} + \begin{column}{.63\textwidth} + \vspace*{-4pt}% + \centering% + \begin{tikzpicture}[even odd rule, scale=1] + \coordinate (text) at (0,0); + \filldraw[fill=blue!25!lightgray, draw=blue!25!lightgray] + (0,0) rectangle (\textwidth, -.5\textwidth) + (2pt,-15pt) rectangle (\textwidth-2pt, -.5\textwidth+2pt); + \node[anchor=north west] at (0pt, 0pt) {Editor: HelloWorld.tex}; + \node[anchor=north west] at (4pt, -12pt) {\parbox[t][.5\textwidth-27pt][t]{\textwidth-12pt}{% + \lstinputlisting[language=tex, basicstyle=\small\ttfamily]{minimal.tex} + }}; + \end{tikzpicture}\\[-11pt] + \includegraphics[angle=-90, width=.1\textwidth]{figures/texstudio-compile.pdf}\\[2pt] + \begin{tikzpicture}[even odd rule, scale=1] + \coordinate (text) at (0,0); + \filldraw[fill=blue!25!lightgray, draw=blue!25!lightgray] + (0,0) rectangle (\textwidth, -.4\textwidth) + (2pt,-15pt) rectangle (\textwidth-2pt, -.4\textwidth+2pt); + \node[anchor=north west] at (0pt, 0pt) {PDF viewer: HelloWorld.pdf}; + \node[anchor=north west] at (2pt, -15pt) {\parbox[t][.4\textwidth-27pt][c]{\textwidth-12pt}{% + \centering + \includegraphics{minimal.pdf} + }}; + \end{tikzpicture} + \end{column} + \end{columns} +\end{frame} +\OSAKthemelogo + \subsection{Beispieldokument} \section{Präsentationen mit \LaTeX-Beamer} \subsection{?} diff --git a/workshops/latex/minimal.tex b/workshops/latex/minimal.tex new file mode 100644 index 0000000000000000000000000000000000000000..93aed07be12428b002930e5ad9b12bb8589539d3 --- /dev/null +++ b/workshops/latex/minimal.tex @@ -0,0 +1,5 @@ +\documentclass[ngerman]{article} +\usepackage{babel} +\begin{document} + Hallo Welt! +\end{document}