From 4b5646a8610d92a0d9115bd042d5851f65a3623a Mon Sep 17 00:00:00 2001 From: Lennart <lennart@fsmpi.rwth-aachen.de> Date: Tue, 28 May 2019 00:00:39 +0200 Subject: [PATCH] preamble in latex.tex --- workshops/latex/beispieldokument/zeta_0.tex | 4 +- workshops/latex/examples/preamble.pdf | Bin 0 -> 4315 bytes workshops/latex/examples/preamble.tex | 21 +++ workshops/latex/latex.tex | 189 +++++++++++--------- 4 files changed, 132 insertions(+), 82 deletions(-) create mode 100644 workshops/latex/examples/preamble.pdf create mode 100644 workshops/latex/examples/preamble.tex diff --git a/workshops/latex/beispieldokument/zeta_0.tex b/workshops/latex/beispieldokument/zeta_0.tex index fd8c790..feec950 100644 --- a/workshops/latex/beispieldokument/zeta_0.tex +++ b/workshops/latex/beispieldokument/zeta_0.tex @@ -1,7 +1,7 @@ \documentclass[a4paper,german,12pt]{article} -\usepackage[utf8]{inputenc} -\usepackage[ngerman]{babel} +\usepackage{polyglossia} +\setmainlanguage{german} \usepackage{amsmath} \usepackage{hyperref} \usepackage{xcolor} diff --git a/workshops/latex/examples/preamble.pdf b/workshops/latex/examples/preamble.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5fa8b7ba61e41f04ee700fd59274dd379b255caa GIT binary patch literal 4315 zcmY!laB<T$)HCH$y>R8|4K7m!1BLvgEG`=xeV^34^pXq(LsLry2+()S%qdAN(s#>A zEJ<}qP0mkAwX@?YE-6Y)%;l=M729vicgTRJ_4}Md;tD_1%Y;^*x^PL!Fx`2LLE-<Y z7bZ0FouBr0`FXQL+yd+P_$$}F+cS}A;`vn~3+)<ju|$V_p2q5Oarume`ySdUp6c@8 zPV$KLda9C>D-@kNUG1OcGri2xjM|HzR+yI`;r_Y6=EJrU<9z1ql`8YBraeFOvHHli zbiPZ!k6BmMn1%%e%s1Nbv&G8n#s2cO@0i6mTJdtF=A}Sgnwpma@}Z$2hF6U&ARbjv zAmG*HgoFnP0wIZMGbSBaaN+QU0}g5e3=EU~nF_JkV}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ArlDqj+xUTbh<F}`d zz1f?4>x1{k%PF5MX4>AV-?1<9R%~FfS;VWi3$+9SMWaP_y81O8Xr5sxVbEIrL^E&V zCKdJMaJEKghh<0qdCh+7-#`1g%7oVC6CB0%t?;p2w|#0`$C^F&YFnpFY8SS9w&m%} z*<Qs9)?BUIHDlqVh+o$~#i=W<K0KM<aYyHg<GZ#<2j`zmYMydTo;^Gz$l|Wkf2+jn z50^Q_9ogBlEk45U+P8gX5dqA-|Bv?aw(ZD%_`f9IT;Pt-vOi*Xisin)2$<>m_pp-u zGRfz&mA@R5{=MY)lWjL&u(h|`t2|}5ZPWemD)Ev&x5eex3LBnTw!EEiKJD=?|6gBT zw%y&m#(eYBgs0udzF)j>uxYQY8egV-?7ghQ+_Gc)S?4LHug++Hw&c^?pvz3*dE1w} zMKPBxc^JRIw7O!a<J6OTFK=g$pBZIcwEOzk9bb-JE4cTY`}+y^PEhJb?X?;i!1KR8 zIH5-brKah7=B1=oL>nj=8OG`dXI7;u7#Zq^M;j^_DHz7;2j%CNC>UBO7$^kkd*-F( zD;R>xkRW|emuMSHb0Z5&XA4&s7h_ioV>4Gv3ljrNXGc>v6DI>#6E{OU1;R>V;rYr8 znym=sE76lDc^eD_oG-pl<n5dywNgiQ2~XA|mU)La>q`D;a(G+VmLqCgej}+}^!AbN wlIPo3_q@5RxB6O$`m4$EZ`ZRv!wi<<lEk8tilWpsE)xSoQ!Z6iSARDy0DVTZo&W#< literal 0 HcmV?d00001 diff --git a/workshops/latex/examples/preamble.tex b/workshops/latex/examples/preamble.tex new file mode 100644 index 0000000..aea8eb5 --- /dev/null +++ b/workshops/latex/examples/preamble.tex @@ -0,0 +1,21 @@ +\documentclass[12pt,a6paper]{article} +% Minimale Präambel für die meisten Fälle +\usepackage{polyglossia} % Silbentrennung +\setmainlanguage{german} % Sprache für ^^ +\usepackage[margin=2cm]{geometry} % Rand +\usepackage{amsmath} % Viel Mathe-Zeug +\usepackage{graphicx} % Bilder +\usepackage{xcolor} % Farben +\usepackage{hyperref} % Links +% Makros +\newcommand{\hello}[1]{Hallo #1} +\newcommand{\bye}{Und Tschüss} +% Abstände bei neuen Absätzen +\setlength\parskip{5pt} % vertikal +\setlength\parindent{0pt} % Einrückung + +\begin{document} +\hello{zusammen}! + +\bye +\end{document} diff --git a/workshops/latex/latex.tex b/workshops/latex/latex.tex index aae100b..beca5c3 100644 --- a/workshops/latex/latex.tex +++ b/workshops/latex/latex.tex @@ -24,8 +24,8 @@ texcsstyle=*\color{Mahogany}\bfseries, commentstyle=\itshape\color{RoyalBlue}, keywordstyle=\color{RoyalBlue}\bfseries, - moretexcs={lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics}, - morekeywords={center,document,flushleft,flushright,itemize,enumerate,tabular} + moretexcs={lstset,subsubsection,paragraph,subsection,color,sl,textcolor,lstinputlisting,newfontfamily,fontsize,section,documentclass,begin,includegraphics,hello,bye,setmainlanguage,setlength}, + morekeywords={center,document,flushleft,flushright,itemize,enumerate,tabular,article,polyglossia,geometry,amsmath,graphicx,xcolor,hyperref} } \makeatletter @@ -91,7 +91,7 @@ \item Automatische Formatierung \item Weitere Formatierung durch\\Befehle im Text \item Für (fast) alles gibt es Befehle - \setlength\itemsep{\fill} %wieso geht das nicht? + \setlength\itemsep{\fill} %wieso geht das nicht? \end{itemize} \end{column} \begin{column}{.63\textwidth} @@ -302,35 +302,37 @@ \\ }; \end{tikzpicture} +% TODO Kommentare, Sonderzeichen +\$\%\&\#\{\} \end{frame} \begin{frame}[fragile]{Abschnitte} \begin{columns} - \begin{column}{0.4\textwidth} - \structure{section, subsection, subsubsection:} - \begin{itemize} - \item Überschriften (automatisch numeriert) - \begin{tikzpicture} - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][22mm][c]{0.7\textwidth} - \lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2h.tex} - \end{minipage} - }; - \end{tikzpicture} - \item Inhaltsverzeichnis (automatisch erstellt) - \texttt{\textbackslash tableofcontents} - \end{itemize} - \end{column} - \begin{column}{0.5\textwidth} + \begin{column}{0.4\textwidth} + \structure{section, subsection, subsubsection:} + \begin{itemize} + \item Überschriften (automatisch numeriert) + \begin{tikzpicture} + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][22mm][c]{0.7\textwidth} + \lstinputlisting[basicstyle=\notsotiny\ttfamily]{examples/2h.tex} + \end{minipage} + }; + \end{tikzpicture} + \item Inhaltsverzeichnis (automatisch erstellt) + \texttt{\textbackslash tableofcontents} + \end{itemize} + \end{column} + \begin{column}{0.5\textwidth} \includegraphics[width=\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/2h_fake.pdf} - \end{column} + \end{column} \end{columns} \end{frame} \begin{frame}[fragile]{Umgebungen} \begin{itemize} - \setbeamertemplate{itemize items}[square] - \item Umgebungen durch \texttt{begin} und \texttt{end} begrenzt + \setbeamertemplate{itemize items}[square] + \item Umgebungen durch \texttt{begin} und \texttt{end} begrenzt \end{itemize} \begin{tikzpicture} \node[matrix, column sep=4pt, row sep=6pt] { @@ -557,72 +559,99 @@ \structure{Referenzen} markieren mit \texttt{\textbackslash label}, verweisen mit \texttt{\textbackslash ref}: \begin{tikzpicture} \node[matrix, column sep=4pt, row sep=6pt] { - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} - \begin{itemize} - \item Gleichungen, Sections, \textbf{Figures} und vieles mehr! - \end{itemize} - \end{minipage} - }; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][30mm][c]{.3\textwidth} - \lstinputlisting{examples/4a.tex} - \end{minipage} - }; & - \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][30mm][c]{.25\textwidth} - \input{examples/4a.tex} - \end{minipage} - }; - \\ - \node{ - \begin{minipage}[t][10mm][c]{.28\textwidth} - \begin{itemize} - \item \texttt{ref} darf auch vor vor dem \texttt{label} stehen - \end{itemize} - \end{minipage} - }; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][30mm][c]{.3\textwidth} - \lstinputlisting{examples/4b.tex} - \end{minipage} - }; & - \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][30mm][c]{.25\textwidth} + \node{ + \begin{minipage}[t][10mm][c]{.28\textwidth} + \begin{itemize} + \item Gleichungen, Sections, \textbf{Figures} und vieles mehr! + \end{itemize} + \end{minipage} + }; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][30mm][c]{.3\textwidth} + \lstinputlisting{examples/4a.tex} + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][30mm][c]{.25\textwidth} + \input{examples/4a.tex} + \end{minipage} + }; + \\ + \node{ + \begin{minipage}[t][10mm][c]{.28\textwidth} + \begin{itemize} + \item \texttt{ref} darf auch vor vor dem \texttt{label} stehen + \end{itemize} + \end{minipage} + }; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][30mm][c]{.3\textwidth} + \lstinputlisting{examples/4b.tex} + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][30mm][c]{.25\textwidth} \includegraphics[width=\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/4b_fake.png} - \end{minipage} - }; - \\ + \end{minipage} + }; + \\ }; \end{tikzpicture} \end{frame} \begin{frame}[fragile]{Fußnoten} - \structure{Footnotes:} - \begin{itemize} - \item Einfügen mit \verb|\footnote{Fußnotentext}| irgendwo: - \end{itemize} - \begin{tikzpicture} - \node[matrix, column sep=4pt, row sep=6pt] { - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][30mm][c]{.5\textwidth} - \lstinputlisting{examples/4c.tex} - \end{minipage} - }; & - \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & - \node[draw=blue!20!lightgray, line width=2pt]{ - \begin{minipage}[t][30mm][c]{.3\textwidth} - \includegraphics[width=1\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/4c_fake.png} - \end{minipage} - }; - \\ - }; - \end{tikzpicture} + \structure{Footnotes:} + \begin{itemize} + \item Einfügen mit \verb|\footnote{Fußnotentext}| irgendwo: + \end{itemize} + \begin{tikzpicture} + \node[matrix, column sep=4pt, row sep=6pt] { + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][30mm][c]{.5\textwidth} + \lstinputlisting{examples/4c.tex} + \end{minipage} + }; & + \node{\includegraphics[width=16pt]{figures/texstudio-compile.pdf}}; & + \node[draw=blue!20!lightgray, line width=2pt]{ + \begin{minipage}[t][30mm][c]{.3\textwidth} + \includegraphics[width=1\textwidth,trim=0cm 0cm 0cm 0cm, clip]{examples/4c_fake.png} + \end{minipage} + }; + \\ + }; + \end{tikzpicture} \end{frame} -\begin{frame}{Präambel} +\begin{frame}[fragile]{Präambel} + \begin{columns} + \begin{column}{0.4\textwidth} + \structure{Die \glqq{Präambel}\grqq} wird benutzt für + \begin{itemize} + \item \glqq{Dokumentenklasse\grqq} -- also \emph{Vorlage} + (\highlightRed{\textbackslash{}documentclass}) + \item Pakete laden (\highlightRed{\textbackslash{}usepackage}) + \item Macros definieren (\highlightRed{\textbackslash{}newcommand}) + \item \highlightRed{\textbackslash{}begin}\verb+{document}+ \\ + (\highlightRed{\textbackslash{}end}\verb+{document}+) + \item {\color{Gray}optionale Einstellungen} + %TODO wegnehmen? + \end{itemize} + \end{column} + \begin{column}{0.05\textwidth} + \only<1>{ % + \color{RoyalBlue}\rule{0.5pt}{0.8\textheight} % + } % + \only<2>{ % + \color{Green}\rule{0.5pt}{0.8\textheight} % + } % + \end{column} + \begin{column}{0.55\textwidth} + \only<1>{\lstinputlisting[basicstyle=\tiny\ttfamily]{examples/preamble.tex}} + \only<2>{\includegraphics[width=0.8\textwidth]{examples/preamble.pdf}} + \end{column} + \end{columns} \end{frame} \end{document} -- GitLab