From 86f8b5602f3c73087ae148f9be0ff13c89bb985f Mon Sep 17 00:00:00 2001 From: Lennart <lennart@fsmpi.rwth-aachen.de> Date: Mon, 20 May 2019 21:38:29 +0200 Subject: [PATCH] merged math --- workshops/latex/latex.tex | 270 ++++++++++++++++++++++++++------------ 1 file changed, 183 insertions(+), 87 deletions(-) diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index 8d974d3..9a66015 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -12,18 +12,19 @@ \usepackage{listings} \usepackage{calc} \graphicspath{{figures/}{examples/}} +\usefonttheme{professionalfonts} \usetheme{OSAK} \lstset{ - basicstyle=\scriptsize\ttfamily, - language={[LaTeX]TeX}, - texcsstyle=*\color{Mahogany}\bfseries, - commentstyle=\itshape\color{RoyalBlue}, - keywordstyle=\color{RoyalBlue}\bfseries, - moretexcs={lstset,testfont,testfont,subsubsection,paragraph,subsection ,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,HUGE, - Gargantous,ShowCharInBox}, - morekeywords={center,document} + basicstyle=\scriptsize\ttfamily, + language={[LaTeX]TeX}, + texcsstyle=*\color{Mahogany}\bfseries, + commentstyle=\itshape\color{RoyalBlue}, + keywordstyle=\color{RoyalBlue}\bfseries, + moretexcs={lstset,testfont,testfont,subsubsection,paragraph,subsection ,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,HUGE, + Gargantous,ShowCharInBox}, + morekeywords={center,document} } \makeatletter @@ -234,89 +235,184 @@ %TODO Mehrere von diesen structures? \begin{tikzpicture} \node[matrix, column sep=4pt, row sep=6pt] { - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} - \begin{itemize} - \item Fontstyle - \end{itemize} - \end{minipage} - }; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][10mm][c]{.3\textwidth} - \lstinputlisting{examples/2e.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} - \textbf{fett} \textit{kursiv}\\ - \underline{unterstrichen} - \end{minipage} - }; - \\ - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} - \begin{itemize} - \item Schriftgröße - \end{itemize} - \end{minipage} - }; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][20mm][c]{.3\textwidth} - \lstinputlisting{examples/2f.tex} - \end{minipage} - }; & - \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][20mm][c]{.25\textwidth} - \tiny tiny - \small small - \large large\\ - \Large Large\,\LARGE LARGE - \end{minipage} - }; - \\ - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} - \begin{itemize} - \item Textfarbe - \end{itemize} - \end{minipage} - }; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][10mm][c]{.3\textwidth} - \lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2g.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} - \input{examples/2g.tex} - \end{minipage} - }; - \\ - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} - \begin{itemize} - \item Überschriften (automatisch) - \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} - \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} + \node{ + \begin{minipage}[t][10mm][c]{.28\textwidth} + \begin{itemize} + \item Fontstyle + \end{itemize} + \end{minipage} + }; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][10mm][c]{.3\textwidth} + \lstinputlisting{examples/2e.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} + \textbf{fett} \textit{kursiv}\\ + \underline{unterstrichen} + \end{minipage} + }; + \\ + \node{ + \begin{minipage}[t][10mm][c]{.28\textwidth} + \begin{itemize} + \item Schriftgröße + \end{itemize} + \end{minipage} + }; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][20mm][c]{.3\textwidth} + \lstinputlisting{examples/2f.tex} + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][20mm][c]{.25\textwidth} + \tiny tiny + \small small + \large large\\ + \Large Large\,\LARGE LARGE + \end{minipage} + }; + \\ + \node{ + \begin{minipage}[t][10mm][c]{.28\textwidth} + \begin{itemize} + \item Textfarbe + \end{itemize} + \end{minipage} + }; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][10mm][c]{.3\textwidth} + \lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2g.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} + \input{examples/2g.tex} + \end{minipage} + }; + \\ + \node{ + \begin{minipage}[t][10mm][c]{.28\textwidth} + \begin{itemize} + \item Überschriften (automatisch) + \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} + \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 - \end{minipage} - }; - \\ + \end{minipage} + }; + \\ }; \end{tikzpicture} \end{frame} +\begin{frame}[fragile]{Mathematik} + \begin{tikzpicture} + \node[matrix, column sep=4pt, row sep=6pt] { + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + \scriptsize \ttfamily \verb|\vec x^2 = x_1^2 + x_2^2| + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + $\displaystyle \vec x^2 = x_1^2 + x_2^2 $ + \end{minipage} + }; + \\ + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][10mm][c]{.4\textwidth} + \centering + \scriptsize \ttfamily \verb|\sum_{n=0}^\infty n = -\frac{1}{12}| + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][10mm][c]{.4\textwidth} + \centering + $\displaystyle\sum_{n=0}^\infty n = -\frac{1}{12}$ + \end{minipage} + }; + \\ + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + \scriptsize \ttfamily + \verb|\nabla\cdot\vec E = 4\pi\rho| + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + $\displaystyle\nabla\cdot\vec E = 4\pi\rho$ + \end{minipage} + }; + \\ + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + \scriptsize \ttfamily + \verb|\sqrt{e^{i\pi}} = \pm i| + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + $\displaystyle \sqrt{e^{i\pi}} = \pm i$ + \end{minipage} + }; + \\ + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][10mm][c]{.4\textwidth} + \centering + \scriptsize \ttfamily + \verb|\sin(30^\circ)=\frac{\sqrt{3}}{2}| + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][10mm][c]{.4\textwidth} + \centering + $\displaystyle \sin(30^\circ) = \frac{\sqrt{3}}{2}$ + \end{minipage} + }; + \\ + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + \scriptsize \ttfamily + \verb|m\approx 80\,\mathrm{kg}| + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][7mm][c]{.4\textwidth} + \centering + $\displaystyle m\approx 80\,\mathrm{kg}$ + \end{minipage} + }; + \\ + }; + \end{tikzpicture} +\end{frame} + \end{document} -- GitLab