Commit 4b5646a8 authored by Lennart Klebl's avatar Lennart Klebl
Browse files

preamble in latex.tex

parent 92d09781
\documentclass[a4paper,german,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{polyglossia}
\setmainlanguage{german}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{xcolor}
......
\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}
......@@ -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
......@@ -302,6 +302,8 @@
\\
};
\end{tikzpicture}
% TODO Kommentare, Sonderzeichen
\$\%\&\#\{\}
\end{frame}
\begin{frame}[fragile]{Abschnitte}
......@@ -622,7 +624,34 @@
\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}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment