diff --git a/workshops/latex/examples/2e.tex b/workshops/latex/examples/2e.tex new file mode 100644 index 0000000000000000000000000000000000000000..efad41c09f61c69a86ce7e9479e398107a599fa6 --- /dev/null +++ b/workshops/latex/examples/2e.tex @@ -0,0 +1,3 @@ +\textbf{fett} +\textit{kursiv} +\underline{unterstr} diff --git a/workshops/latex/examples/2f.tex b/workshops/latex/examples/2f.tex new file mode 100644 index 0000000000000000000000000000000000000000..1cc5ad51516865ceb097e5ffde45c116382d2856 --- /dev/null +++ b/workshops/latex/examples/2f.tex @@ -0,0 +1,6 @@ +\tiny tiny +\small small +\large large +\Large Large +\LARGE LARGE +\Huge Huge diff --git a/workshops/latex/examples/2g.tex b/workshops/latex/examples/2g.tex new file mode 100644 index 0000000000000000000000000000000000000000..d197d10eb22dbaf5b038f0e654a42d6e9d602f4d --- /dev/null +++ b/workshops/latex/examples/2g.tex @@ -0,0 +1,2 @@ +\textcolor{green}{grün} +\textcolor{purple}{pink} diff --git a/workshops/latex/examples/2h.tex b/workshops/latex/examples/2h.tex new file mode 100644 index 0000000000000000000000000000000000000000..4446569cee07b25911df4cba7860701472b1d8e6 --- /dev/null +++ b/workshops/latex/examples/2h.tex @@ -0,0 +1,4 @@ +\section{Haupttitel} +\subsection{Subtitel} +\subsubsection{...} +\paragraph {Paragraph} diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index a4e3ce32510d1be5475618e9531f50e193477d58..8d974d36283857cad4c7b6764af8208ff5a735d0 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -21,11 +21,15 @@ texcsstyle=*\color{Mahogany}\bfseries, commentstyle=\itshape\color{RoyalBlue}, keywordstyle=\color{RoyalBlue}\bfseries, - moretexcs={lstset,testfont,color,sl,lstinputlisting,newfontfamily,fontsize,HUGE, + moretexcs={lstset,testfont,testfont,subsubsection,paragraph,subsection ,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,HUGE, Gargantous,ShowCharInBox}, morekeywords={center,document} } +\makeatletter +\newcommand\notsotiny{\@setfontsize\notsotiny{7}{8}} +\makeatother + % TODO Titel & Autoren anpassen! \date{\today} \title[\LaTeX-Workshop]{\LaTeX ist toll!} @@ -224,4 +228,95 @@ \end{frame} + +\begin{frame}[fragile]{Zeilenumbrüche} +\structure{Formatierung:} +%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} +Foto + \end{minipage} + }; + \\ +}; +\end{tikzpicture} + +\end{frame} + \end{document}