2016-09-18 20:00:03 +02:00
|
|
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
|
|
|
\ProvidesClass{latexkurs}
|
|
|
|
\LoadClass{beamer}
|
2015-10-28 20:09:26 +01:00
|
|
|
|
|
|
|
%%%
|
|
|
|
|
2016-09-18 20:00:03 +02:00
|
|
|
\RequirePackage{ifluatex}
|
2015-10-28 20:09:26 +01:00
|
|
|
\ifluatex\else\errmessage{This document requires LuaLaTeX}\fi
|
|
|
|
|
2016-09-18 20:00:03 +02:00
|
|
|
\RequirePackage{etex,etoolbox}
|
|
|
|
\RequirePackage{fontspec}
|
|
|
|
\RequirePackage[ngerman]{babel}
|
|
|
|
\RequirePackage{csquotes}
|
|
|
|
\RequirePackage{array}
|
|
|
|
\RequirePackage{wrapfig}
|
|
|
|
\RequirePackage{booktabs}
|
|
|
|
\RequirePackage{ccicons}
|
|
|
|
\RequirePackage{calc}
|
2016-10-03 10:02:09 +02:00
|
|
|
\RequirePackage{mdframed}
|
2016-09-18 20:00:03 +02:00
|
|
|
|
|
|
|
\RequirePackage{luacode}
|
|
|
|
\RequirePackage{pgfplots}
|
|
|
|
\RequirePackage{manfnt}
|
|
|
|
|
|
|
|
\RequirePackage{tikz}
|
2015-10-28 20:09:26 +01:00
|
|
|
\usetikzlibrary{arrows,intersections,calc,through,%
|
|
|
|
external,positioning,automata,datavisualization,%
|
|
|
|
datavisualization.formats.functions}
|
|
|
|
|
2016-09-18 20:00:03 +02:00
|
|
|
\setlength{\abovedisplayskip}{0pt}
|
2015-10-28 20:09:26 +01:00
|
|
|
|
2016-09-18 20:00:03 +02:00
|
|
|
%%% include variable macros
|
2015-10-28 20:09:26 +01:00
|
|
|
|
2016-09-18 20:00:03 +02:00
|
|
|
\input{course-details}
|
2015-10-28 20:09:26 +01:00
|
|
|
\titlegraphic{\ccLogo \ccAttribution \ccShareAlike}
|
|
|
|
|
|
|
|
%%% theme
|
|
|
|
|
|
|
|
\usetikzlibrary{shapes.multipart}
|
|
|
|
\usetheme{CambridgeUS}
|
|
|
|
\setbeamertemplate{blocks}[rounded][shadow=false]
|
|
|
|
\setbeamertemplate{items}{\raisebox{0.3ex}{%
|
|
|
|
\tikz[scale=0.13] \draw[fill] (0,0) -- (0,1) -- (0.9,0.5) -- cycle;}}
|
|
|
|
\usetikzlibrary{arrows}
|
|
|
|
\tikzset{>={stealth'[sep]}}
|
|
|
|
\setbeamertemplate{navigation symbols}{}
|
|
|
|
\setbeamertemplate{footline}{}
|
|
|
|
\setbeamerfont{title}{series=\bfseries}
|
|
|
|
\defbeamertemplate{block alerted begin}{bends}{%
|
|
|
|
\begin{columns}
|
|
|
|
\begin{column}{0.05\linewidth}
|
|
|
|
\dbend
|
|
|
|
\end{column}
|
|
|
|
\begin{column}{0.95\linewidth}
|
|
|
|
\vskip.75ex\usebeamercolor[fg]{block title
|
|
|
|
alerted}\insertblocktitle{}
|
|
|
|
\vskip.1em
|
|
|
|
\usebeamercolor[fg]{normal text}
|
|
|
|
}
|
|
|
|
\defbeamertemplate{block alerted end}{bends}{%
|
|
|
|
\end{column}
|
|
|
|
\end{columns}
|
|
|
|
}
|
2016-09-18 20:00:03 +02:00
|
|
|
|
2015-10-28 20:09:26 +01:00
|
|
|
%%%
|
|
|
|
|
|
|
|
\mode<handout>{
|
|
|
|
\usepackage{pgfpages}
|
|
|
|
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
|
|
|
|
}
|
|
|
|
|
|
|
|
%%% lecture organization
|
|
|
|
|
|
|
|
\usepackage{xparse}
|
|
|
|
\DeclareDocumentCommand \Lecture { m m }{%
|
|
|
|
\lecture{#1}{#2}
|
|
|
|
\part{#1}
|
|
|
|
\include{#2}
|
|
|
|
}
|
|
|
|
|
2015-11-14 22:34:39 +01:00
|
|
|
\AtBeginSection{
|
2015-10-28 20:09:26 +01:00
|
|
|
\setbeamertemplate{blocks}[rounded][shadow=true]
|
|
|
|
\begin{frame}[plain]
|
|
|
|
\begin{block}{}
|
|
|
|
\begin{center}
|
|
|
|
\textcolor{darkred}{\textbf{\Large \strut\smash{\insertpart}}}\\[1ex]
|
2015-11-08 10:38:24 +01:00
|
|
|
\textcolor{blue!70!black}{\strut\smash{\insertsection}}
|
2015-10-28 20:09:26 +01:00
|
|
|
\end{center}
|
|
|
|
\end{block}
|
|
|
|
\end{frame}
|
|
|
|
\setbeamertemplate{blocks}[rounded][shadow=false]
|
|
|
|
\setbeamertemplate{block alerted begin}[bends]
|
|
|
|
\setbeamertemplate{block alerted end}[bends]
|
|
|
|
}
|
|
|
|
|
|
|
|
%%% misc
|
|
|
|
|
|
|
|
\newcommand{\GNULinux}{GNU\lower-0.25ex\hbox{/}Linux}
|
|
|
|
\newcommand{\TikZ}{Ti\emph{k}Z}
|
|
|
|
|
2016-09-18 20:00:03 +02:00
|
|
|
\RequirePackage{listings}
|
2015-10-28 20:09:26 +01:00
|
|
|
\lstset{language=[LaTeX]TeX, basicstyle=\ttfamily,
|
|
|
|
keywordstyle={\color{blue}\bfseries}, frame=tb, extendedchars=true, literate=%
|
|
|
|
{ä}{{\"a}}1 {ö}{{\"o}}1, escapeinside={(*@}{@*)}, mathescape=true,
|
|
|
|
basewidth=0.5em, keywordstyle={\color{blue}},
|
|
|
|
morekeywords={[0]includegraphics,rotatebox,scalebox,resizebox,providecommand,
|
|
|
|
subsection,subsubsection,paragraph,subparagraph,part,chapter,tableofcontents,
|
|
|
|
mathring,text,mathbb,printindex,addbibresource,printbibliography,subtitle,
|
|
|
|
institute,titlegraphic,subject,keywords,draw,path,color,textcolor,toprule,
|
|
|
|
midrule,bottomrule,maketitle,setlength,enquote,listoffigures,listoftables,
|
|
|
|
theoremstyle,theoremheaderfont,theorembodyfont,newblock,parencite,footcite,
|
|
|
|
autocite,bibitem,middle,tikzset,usetikzlibrary,coordinate,node,foreach,
|
|
|
|
datavisualization,varepsilon,autocite,bibitem,DeclareRobustCommand,
|
|
|
|
DeclareDocumentCommand,IfBooleanTF,bye,frametitle,setbeamertemplate,pause,
|
|
|
|
onslide,uncover,visible,invisible,only,alt,temporal,alert,AtBeginSection,
|
2016-09-18 20:00:03 +02:00
|
|
|
usetheme,setbeamerfont,tikz,includeonlyframes,mode,pgfpagesuselayout,
|
|
|
|
RequirePackage,
|
2015-10-28 20:09:26 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-11-14 22:38:29 +01:00
|
|
|
\AtBeginDocument{\frame[plain]{\maketitle}}
|
2015-10-28 20:09:26 +01:00
|
|
|
|