\documentclass[xcolor=dvipsnames]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{lmodern} \usepackage{verbatim} \usepackage{dtk-logos} \usepackage{hyperref} \usepackage{tikz} \usetikzlibrary{backgrounds, fit, matrix, calc} \usepackage{listings} \usepackage{calc} \graphicspath{{figures/}{examples/}} \usetheme{OSAK} \lstset{ basicstyle=\scriptsize\ttfamily, language={[LaTeX]TeX}, texcsstyle=*\color{Mahogany}\bfseries, commentstyle=\itshape\color{RoyalBlue}, keywordstyle=\color{RoyalBlue}\bfseries, moretexcs={lstset,testfont,color,sl,lstinputlisting,newfontfamily,fontsize,HUGE, Gargantous,ShowCharInBox}, morekeywords={center,document} } % TODO Titel & Autoren anpassen! \date{\today} \title[\LaTeX-Workshop]{\LaTeX ist toll!} \subtitle{wirklich!} \author{OSAK-Mitglied \#42} \institute[OSAK]{ Open Source Arbeitskreis der \\ Fachschaft Mathematik/Physik/Informatik an der RWTH Aachen \\ und der Aachener Linux User Group } \newlength\marginwidth \newcommand\marginbox[3][2pt]{ % USAGE: \marginbox[margin width]{width}{content} % TODO: width is set manually such that it fits real width! \setlength\marginwidth{#1} \begin{tikzpicture}[even odd rule, scale=1] \node[anchor=north west] (text) {% \begin{minipage}{#2-2\marginwidth-10pt}% #3% \end{minipage}% }; \begin{pgfonlayer}{background} \node[draw opacity=.5, draw=blue, line width=#1, inner sep=2pt, fit = (text)] {}; \end{pgfonlayer} \end{tikzpicture} } \begin{document} \begin{frame}{OSAK \LaTeX-Workshop}{Installation einer \TeX-Distribution} % TODO \Huge QR-CODE UND/ODER URL \end{frame} \begin{frame} \titlepage \end{frame} \begin{frame}{Inhaltsverzeichnis} \tableofcontents \end{frame} \section{Motivation} \section{Dokumente mit \LaTeX} \subsection{\TeX{}studio als Editor} \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]{examples/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}{% \hspace{.1\textwidth}Hallo Welt! }}; \end{tikzpicture} \end{column} \end{columns} \end{frame} % Logo einblenden \OSAKthemelogo \subsection{Beispieldokument} \section{Präsentationen mit \LaTeX-Beamer} \subsection{?} % Logo ausblenden \OSAKthemenologo \begin{frame}[fragile]{Beispielfolie}{Auf dieser Folie sollte eine super Motivation stehen!} \structure{Ein bisschen sinnloser Inhalt:} \begin{itemize} \item Hier kein Satz! \item Generell: niemals Sätze! \end{itemize} \begin{enumerate} \item Bilder sind auch toll \item Das Logo da unten kann man mit \verb~\OSAKthemenologo~ ausblenden\dots \end{enumerate} \end{frame} \begin{frame}[fragile]{Zeilenumbrüche} \structure{Neue Zeile:} \begin{columns} \begin{column}{0.3\textwidth} \begin{itemize} \item Zeilen im \texttt{.tex} ignoriert \end{itemize} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\lstinputlisting{examples/2a_umbruch.tex}} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\input{examples/2a_umbruch.tex}} \end{column} \end{columns} \begin{columns} \begin{column}{0.3\textwidth} \begin{itemize} \item Absatz: Leere Zeile \end{itemize} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\lstinputlisting{examples/2b_umbruch.tex}} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\input{examples/2b_umbruch.tex}} \end{column} \end{columns} \begin{columns} \begin{column}{0.3\textwidth} \begin{itemize} \item Manueller Zeilenumbruch \end{itemize} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\lstinputlisting{examples/2c_umbruch.tex}} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\input{examples/2c_umbruch.tex}} \end{column} \end{columns} \structure{Neue Seite:} \begin{columns} \begin{column}{0.3\textwidth} \begin{itemize} \item Manueller Seitenumbruch \end{itemize} \end{column} \begin{column}{0.35\textwidth} \marginbox{\textwidth}{\lstinputlisting{examples/2d_umbruch.tex}} \end{column} \begin{column}{0.35\textwidth} Foto \end{column} \end{columns} \end{frame} \end{document}