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 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  2. \ProvidesClass{latexkurs}
  3. \LoadClass{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. \titlegraphic{\ccLogo \ccAttribution \ccShareAlike}
  28. %%% theme
  29. \usetikzlibrary{shapes.multipart}
  30. \usetheme{CambridgeUS}
  31. \setbeamertemplate{blocks}[rounded][shadow=false]
  32. \setbeamertemplate{items}{\raisebox{0.3ex}{%
  33. \tikz[scale=0.13] \draw[fill] (0,0) -- (0,1) -- (0.9,0.5) -- cycle;}}
  34. \usetikzlibrary{arrows}
  35. \tikzset{>={stealth'[sep]}}
  36. \setbeamertemplate{navigation symbols}{}
  37. \setbeamertemplate{footline}{}
  38. \setbeamerfont{title}{series=\bfseries}
  39. \defbeamertemplate{block alerted begin}{bends}{%
  40. \begin{columns}
  41. \begin{column}{0.05\linewidth}
  42. \dbend
  43. \end{column}
  44. \begin{column}{0.95\linewidth}
  45. \vskip.75ex\usebeamercolor[fg]{block title
  46. alerted}\insertblocktitle{}
  47. \vskip.1em
  48. \usebeamercolor[fg]{normal text}
  49. }
  50. \defbeamertemplate{block alerted end}{bends}{%
  51. \end{column}
  52. \end{columns}
  53. }
  54. %%%
  55. \mode<handout>{
  56. \usepackage{pgfpages}
  57. \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
  58. }
  59. %%% lecture organization
  60. \usepackage{xparse}
  61. \DeclareDocumentCommand \Lecture { m m }{%
  62. \lecture{#1}{#2}
  63. \part{#1}
  64. \include{#2}
  65. }
  66. \AtBeginSection{
  67. \setbeamertemplate{blocks}[rounded][shadow=true]
  68. \begin{frame}[plain]
  69. \begin{block}{}
  70. \begin{center}
  71. \textcolor{darkred}{\textbf{\Large \strut\smash{\insertpart}}}\\[1ex]
  72. \textcolor{blue!70!black}{\strut\smash{\insertsection}}
  73. \end{center}
  74. \end{block}
  75. \end{frame}
  76. \setbeamertemplate{blocks}[rounded][shadow=false]
  77. \setbeamertemplate{block alerted begin}[bends]
  78. \setbeamertemplate{block alerted end}[bends]
  79. }
  80. %%% misc
  81. \newcommand{\GNULinux}{GNU\lower-0.25ex\hbox{/}Linux}
  82. \newcommand{\TikZ}{Ti\emph{k}Z}
  83. \RequirePackage{listings}
  84. \lstset{language=[LaTeX]TeX, basicstyle=\ttfamily,
  85. keywordstyle={\color{blue}\bfseries}, frame=tb, extendedchars=true, literate=%
  86. {ä}{{\"a}}1 {ö}{{\"o}}1, escapeinside={(*@}{@*)}, mathescape=true,
  87. basewidth=0.5em, keywordstyle={\color{blue}},
  88. morekeywords={[0]includegraphics,rotatebox,scalebox,resizebox,providecommand,
  89. subsection,subsubsection,paragraph,subparagraph,part,chapter,tableofcontents,
  90. mathring,text,mathbb,printindex,addbibresource,printbibliography,subtitle,
  91. institute,titlegraphic,subject,keywords,draw,path,color,textcolor,toprule,
  92. midrule,bottomrule,maketitle,setlength,enquote,listoffigures,listoftables,
  93. theoremstyle,theoremheaderfont,theorembodyfont,newblock,parencite,footcite,
  94. autocite,bibitem,middle,tikzset,usetikzlibrary,coordinate,node,foreach,
  95. datavisualization,varepsilon,autocite,bibitem,DeclareRobustCommand,
  96. DeclareDocumentCommand,IfBooleanTF,bye,frametitle,setbeamertemplate,pause,
  97. onslide,uncover,visible,invisible,only,alt,temporal,alert,AtBeginSection,
  98. usetheme,setbeamerfont,tikz,includeonlyframes,mode,pgfpagesuselayout,
  99. RequirePackage,
  100. },
  101. }
  102. \AtBeginDocument{\frame[plain]{\maketitle}}