Für Vorlesungen, bitte die Webseite verwenden. https://flavigny.de/lecture
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

148 řádky
3.3KB

  1. \ProvidesClass{lecture}
  2. \LoadClass[a4paper, titlepage]{article}
  3. \RequirePackage[utf8]{inputenc}
  4. \RequirePackage[T1]{fontenc}
  5. \RequirePackage{textcomp}
  6. \RequirePackage[german]{babel}
  7. \RequirePackage{amsmath, amssymb, amsthm}
  8. \RequirePackage{mdframed}
  9. \RequirePackage{fancyhdr}
  10. \RequirePackage{geometry}
  11. \RequirePackage{import}
  12. \RequirePackage{pdfpages}
  13. \RequirePackage{transparent}
  14. \RequirePackage{xcolor}
  15. \RequirePackage{array}
  16. \RequirePackage[shortlabels]{enumitem}
  17. \RequirePackage{tikz}
  18. \RequirePackage{pgfplots}
  19. \RequirePackage[nobottomtitles]{titlesec}
  20. \RequirePackage{listings}
  21. \RequirePackage{mathtools}
  22. \RequirePackage{forloop}
  23. \RequirePackage{totcount}
  24. \RequirePackage{calc}
  25. \usetikzlibrary{quotes, angles}
  26. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
  27. \DeclareOption{uebung}{
  28. \makeatletter
  29. \lhead{\@title}
  30. \rhead{\@author}
  31. \makeatother
  32. }
  33. \ProcessOptions\relax
  34. % PAGE GEOMETRY
  35. \geometry{
  36. left=15mm,
  37. right=40mm,
  38. top=20mm,
  39. bottom=20mm
  40. }
  41. % PARAGRAPH no indent but skip
  42. \setlength{\parskip}{3mm}
  43. \setlength{\parindent}{0mm}
  44. \theoremstyle{definition}
  45. \newmdtheoremenv{satz}{Satz}[section]
  46. \newmdtheoremenv{lemma}[satz]{Lemma}
  47. \newmdtheoremenv{korrolar}[satz]{Korrolar}
  48. \newmdtheoremenv{definition}[satz]{Definition}
  49. \newtheorem{bsp}[satz]{Beispiel}
  50. \newtheorem{bem}[satz]{Bemerkung}
  51. \newtheorem{aufgabe}{Aufgabe}
  52. % enable aufgaben counting
  53. \regtotcounter{aufgabe}
  54. % temporary calculation counter
  55. \newcounter{var}
  56. \newcommand{\N}{\mathbb{N}}
  57. \newcommand{\R}{\mathbb{R}}
  58. \newcommand{\Z}{\mathbb{Z}}
  59. \newcommand{\Q}{\mathbb{Q}}
  60. \newcommand{\C}{\mathbb{C}}
  61. % HEADERS
  62. \pagestyle{fancy}
  63. \newcommand{\incfig}[1]{%
  64. \def\svgwidth{\columnwidth}
  65. \import{./figures/}{#1.pdf_tex}
  66. }
  67. \pdfsuppresswarningpagegroup=1
  68. % horizontal rule
  69. \newcommand\hr{
  70. \noindent\rule[0.5ex]{\linewidth}{0.5pt}
  71. }
  72. % punkte tabelle
  73. \newcommand{\punkte}[1][1]{
  74. \newcounter{k}
  75. \setcounter{k}{#1}
  76. \@punkten{\value{k}}{\totvalue{aufgabe}}
  77. \setcounter{k}{#1-1}
  78. \setcounter{aufgabe}{\value{k}}
  79. \vspace{5mm}
  80. }
  81. \def\@punkten#1#2{
  82. \newcounter{n}
  83. % create a temporary calculation counter
  84. \setcounter{var}{#2-#1+1}
  85. \begin{tabular}{|c|*{\value{var}}{m{1cm}|}m{1cm}|@{}m{0cm}@{}}
  86. \hline
  87. Aufgabe
  88. \forloop{n}{#1}{\not{\value{n} > #2}}{
  89. & \centering A\then
  90. }
  91. & \centering $\sum$ & \\[5mm] \hline
  92. Punkte
  93. \forloop{n}{#1}{\not{\value{n} > #2}}{
  94. &
  95. }
  96. & & \\[5mm] \hline
  97. \end{tabular}
  98. }
  99. % code listings, define style
  100. \lstdefinestyle{mystyle}{
  101. commentstyle=\color{gray},
  102. keywordstyle=\color{blue},
  103. numberstyle=\tiny\color{gray},
  104. stringstyle=\color{black},
  105. basicstyle=\ttfamily\footnotesize,
  106. breakatwhitespace=false,
  107. breaklines=true,
  108. captionpos=b,
  109. keepspaces=true,
  110. numbers=left,
  111. numbersep=5pt,
  112. showspaces=false,
  113. showstringspaces=false,
  114. showtabs=false,
  115. tabsize=2
  116. }
  117. % activate my colour style
  118. \lstset{style=mystyle}
  119. % better stackrel
  120. \let\oldstackrel\stackrel
  121. \renewcommand{\stackrel}[2]{%
  122. \oldstackrel{\mathclap{#1}}{#2}
  123. }%
  124. % integral d sign
  125. \makeatletter \renewcommand\d[1]{\ensuremath{%
  126. \;\mathrm{d}#1\@ifnextchar\d{\!}{}}}
  127. \makeatother