A LaTeX Course.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

latexkurs.cls 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  2. \ProvidesClass{latexkurs}
  3. \LoadClassWithOptions{beamer}
  4. %%%
  5. \RequirePackage{ifluatex}
  6. \ifluatex\else\errmessage{This document requires LuaLaTeX}\fi
  7. \RequirePackage{etex,etoolbox}
  8. \RequirePackage{fontspec}
  9. \RequirePackage[ngerman]{babel}
  10. \RequirePackage{csquotes}
  11. \RequirePackage{array}
  12. \RequirePackage{wrapfig}
  13. \RequirePackage{booktabs}
  14. \RequirePackage{ccicons}
  15. \RequirePackage{calc}
  16. \RequirePackage{mdframed}
  17. \RequirePackage{luacode}
  18. \RequirePackage{pgfplots}
  19. \RequirePackage{manfnt}
  20. \RequirePackage{tikz}
  21. \usetikzlibrary{arrows,intersections,calc,through,%
  22. external,positioning,automata,datavisualization,%
  23. datavisualization.formats.functions}
  24. \setlength{\abovedisplayskip}{0pt}
  25. %%% include variable macros
  26. \input{course-details}
  27. %%% theme
  28. \definecolor{fsfwblue}{RGB}{40,173,184}
  29. \definecolor{fsfwpurple}{RGB}{101,75,199}
  30. \definecolor{fsfwgreen}{RGB}{107,187,0}
  31. \definecolor{fsfwgray}{RGB}{240,240,240}
  32. \useinnertheme[shadow=true]{rounded}
  33. \useoutertheme{infolines}
  34. \setbeamercolor{section in toc}{fg=black,bg=white}
  35. \setbeamercolor{alerted text}{fg=fsfwgreen!80!gray}
  36. \setbeamercolor*{palette primary}{fg=fsfwpurple!60!black,bg=fsfwblue!60!white}
  37. \setbeamercolor*{palette secondary}{fg=fsfwpurple!70!black,bg=fsfwgray!15!white}
  38. \setbeamercolor*{palette tertiary}{bg=fsfwpurple!80!black,fg=fsfwgray!10!white}
  39. \setbeamercolor*{palette quaternary}{fg=fsfwpurple,bg=fsfwgray!5!white}
  40. \setbeamercolor*{sidebar}{fg=fsfwpurple,bg=gray!15!white}
  41. \setbeamercolor*{palette sidebar primary}{fg=fsfwpurple!10!black}
  42. \setbeamercolor*{palette sidebar secondary}{fg=white}
  43. \setbeamercolor*{palette sidebar tertiary}{fg=fsfwpurple!50!black}
  44. \setbeamercolor*{palette sidebar quaternary}{fg=fsfwgray!10!white}
  45. \setbeamercolor{titlelike}{parent=palette primary,bg=fsfwgreen}
  46. \setbeamercolor{frametitle}{bg=fsfwblue,fg=white}
  47. \setbeamerfont{frametitle}{series=\bfseries}
  48. \setbeamercolor*{separation line}{}
  49. \setbeamercolor*{fine separation line}{}
  50. \setbeamercolor{data in head/foot}{fg=white}
  51. \setbeamerfont{block title}{size={}}
  52. \setbeamercolor{titlelike}{parent=structure,bg=white}
  53. \setbeamertemplate{title page}{{
  54. \setbeamercolor{block body}{bg=fsfwgreen,fg=white}
  55. \setbeamertemplate{blocks}[rounded][shadow=true]
  56. \begin{center}
  57. \begin{block}{}
  58. \centering
  59. \vspace*{0.5\baselineskip}
  60. {\LARGE \textbf{\inserttitle}}\\
  61. \medskip
  62. {\Large \textbf{\insertsubtitle}}
  63. \vspace*{0.5\baselineskip}
  64. \end{block}
  65. \bigskip
  66. {\ccLogo~\ccAttribution~\ccShareAlike}
  67. \bigskip
  68. \insertauthor
  69. \smallskip
  70. \insertdate
  71. \smallskip
  72. \courseURL
  73. \medskip
  74. \leavevmode
  75. \lower0.4cm\hbox{\includegraphics[height=2cm]{pics/fsfw-logo}}
  76. \parbox[b]{3cm}{\small
  77. {\footnotesize Hochschulgruppe für}\\
  78. Freie Software und\\
  79. Freies Wissen}\\
  80. {\small\url{https://fsfw-dresden.de}}
  81. \end{center}
  82. }}
  83. \setbeamertemplate{frametitle}{
  84. \vskip0.01\paperheight
  85. \hskip0.02\textwidth
  86. \vskip-0.18\paperheight
  87. \begin{beamercolorbox}[rounded=true,dp=0.5ex,ht=1.5ex,wd=0.96\textwidth]{frametitle}
  88. \smash{\insertframetitle}
  89. \end{beamercolorbox}
  90. }
  91. \setbeamertemplate{headline}{
  92. \hbox{%
  93. \includegraphics[height=0.12\paperheight]{pics/fsfw-banner}
  94. }
  95. }
  96. \setbeamercolor{footline}{bg=fsfwblue,fg=white}
  97. \setbeamertemplate{footline}{
  98. % TODO: Foliennummern hinzufügen
  99. \hbox{}\hfill\smash{\raise0.1cm\hbox{%
  100. \fcolorbox{white}{white}{%
  101. \includegraphics[width=1.3cm]{pics/fsfw-logo-notext}}}
  102. \hspace*{0.1cm}}
  103. \hbox{%
  104. \includegraphics[height=0.12\paperheight]{pics/fsfw-banner}
  105. }
  106. \vskip-0.08\paperheight
  107. }
  108. \setbeamertemplate{blocks}[rounded][shadow=false]
  109. \setbeamercolor{block title}{fg=fsfwpurple}
  110. \usetikzlibrary{shapes.multipart}
  111. \setbeamertemplate{items}{\raisebox{0.3ex}{%
  112. \tikz[scale=0.13] \draw[fill] (0,0) -- (0,1) -- (0.9,0.5) -- cycle;}}
  113. \setbeamertemplate{navigation symbols}{}
  114. \setbeamerfont{title}{series=\bfseries}
  115. \defbeamertemplate{block alerted begin}{bends}{%
  116. \begin{columns}
  117. \begin{column}{0.05\linewidth}
  118. \dbend
  119. \end{column}
  120. \begin{column}{0.95\linewidth}
  121. \vskip.75ex\usebeamercolor[fg]{block title
  122. alerted}\insertblocktitle{}
  123. \vskip.1em
  124. \usebeamercolor[fg]{normal text}
  125. }
  126. \defbeamertemplate{block alerted end}{bends}{%
  127. \end{column}
  128. \end{columns}
  129. }
  130. \usetikzlibrary{arrows}
  131. \tikzset{>={stealth'[sep]}}
  132. \AtBeginSection{{
  133. \setbeamertemplate{blocks}[rounded][shadow=true]
  134. \setbeamercolor{block body}{bg=fsfwgreen,fg=white}
  135. \begin{frame}
  136. \begin{block}{}
  137. \begin{center}
  138. \Large\strut\smash{\textbf{\insertsection}}
  139. \end{center}
  140. \end{block}
  141. \end{frame}
  142. }}
  143. %%% misc
  144. \newcommand{\GNULinux}{GNU\lower-0.25ex\hbox{/}Linux}
  145. \newcommand{\TikZ}{Ti\emph{k}Z}
  146. \RequirePackage{listings}
  147. \lstset{language=[LaTeX]TeX, basicstyle=\ttfamily,
  148. keywordstyle={\color{blue}\bfseries}, frame=tb, extendedchars=true, literate=%
  149. {ä}{{\"a}}1 {ö}{{\"o}}1, escapeinside={(*@}{@*)}, mathescape=true,
  150. basewidth=0.5em, keywordstyle={\color{blue}},
  151. morekeywords={[0]includegraphics,rotatebox,scalebox,resizebox,providecommand,
  152. subsection,subsubsection,paragraph,subparagraph,part,chapter,tableofcontents,
  153. mathring,text,mathbb,printindex,addbibresource,printbibliography,subtitle,
  154. institute,titlegraphic,subject,keywords,draw,path,color,textcolor,toprule,
  155. midrule,bottomrule,maketitle,setlength,enquote,listoffigures,listoftables,
  156. theoremstyle,theoremheaderfont,theorembodyfont,newblock,parencite,footcite,
  157. autocite,bibitem,middle,tikzset,usetikzlibrary,coordinate,node,foreach,
  158. datavisualization,varepsilon,autocite,bibitem,DeclareRobustCommand,
  159. DeclareDocumentCommand,IfBooleanTF,bye,frametitle,setbeamertemplate,pause,
  160. onslide,uncover,visible,invisible,only,alt,temporal,alert,AtBeginSection,
  161. usetheme,setbeamerfont,tikz,includeonlyframes,mode,pgfpagesuselayout,
  162. RequirePackage,
  163. },
  164. }