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ů.

119 řádky
2.8KB

  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{enumerate}
  17. \RequirePackage{tikz}
  18. \RequirePackage{pgfplots}
  19. \RequirePackage[nobottomtitles]{titlesec}
  20. \RequirePackage{listings}
  21. \RequirePackage{mathtools}
  22. \usetikzlibrary{quotes, angles}
  23. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
  24. \DeclareOption{uebung}{
  25. \makeatletter
  26. \lhead{\@title}
  27. \rhead{\@author}
  28. \makeatother
  29. }
  30. \ProcessOptions\relax
  31. % PAGE GEOMETRY
  32. \geometry{
  33. left=15mm,
  34. right=40mm,
  35. top=20mm,
  36. bottom=20mm
  37. }
  38. % PARAGRAPH no indent but skip
  39. \setlength{\parskip}{3mm}
  40. \setlength{\parindent}{0mm}
  41. \theoremstyle{definition}
  42. \newmdtheoremenv{satz}{Satz}[section]
  43. \newmdtheoremenv{lemma}[satz]{Lemma}
  44. \newmdtheoremenv{korrolar}[satz]{Korrolar}
  45. \newmdtheoremenv{definition}[satz]{Definition}
  46. \newtheorem{bsp}[satz]{Beispiel}
  47. \newtheorem{bem}[satz]{Bemerkung}
  48. \newtheorem{aufgabe}{Aufgabe}
  49. \newcommand{\N}{\mathbb{N}}
  50. \newcommand{\R}{\mathbb{R}}
  51. \newcommand{\Z}{\mathbb{Z}}
  52. \newcommand{\Q}{\mathbb{Q}}
  53. \newcommand{\C}{\mathbb{C}}
  54. % HEADERS
  55. \pagestyle{fancy}
  56. \newcommand{\incfig}[1]{%
  57. \def\svgwidth{\columnwidth}
  58. \import{./figures/}{#1.pdf_tex}
  59. }
  60. \pdfsuppresswarningpagegroup=1
  61. % horizontal rule
  62. \newcommand\hr{
  63. \noindent\rule[0.5ex]{\linewidth}{0.5pt}
  64. }
  65. % punkte tabelle
  66. \newcommand\punkte{
  67. \begin{tabular}{|c|m{1cm}|m{1cm}|m{1cm}|m{1cm}|m{1cm}|@{}m{0cm}@{}}
  68. \hline
  69. Aufgabe & \centering A1 & \centering A2 & \centering A3 & \centering A4 & \centering $\sum$ & \\[5mm] \hline
  70. Punkte & & & & & & \\[5mm] \hline
  71. \end{tabular}
  72. }
  73. % code listings, define style
  74. \lstdefinestyle{mystyle}{
  75. commentstyle=\color{gray},
  76. keywordstyle=\color{blue},
  77. numberstyle=\tiny\color{gray},
  78. stringstyle=\color{black},
  79. basicstyle=\ttfamily\footnotesize,
  80. breakatwhitespace=false,
  81. breaklines=true,
  82. captionpos=b,
  83. keepspaces=true,
  84. numbers=left,
  85. numbersep=5pt,
  86. showspaces=false,
  87. showstringspaces=false,
  88. showtabs=false,
  89. tabsize=2
  90. }
  91. % activate my colour style
  92. \lstset{style=mystyle}
  93. % better stackrel
  94. \let\oldstackrel\stackrel
  95. \renewcommand{\stackrel}[2]{%
  96. \oldstackrel{\mathclap{#1}}{#2}
  97. }%
  98. % integral d sign
  99. \makeatletter \renewcommand\d[1]{\ensuremath{%
  100. \;\mathrm{d}#1\@ifnextchar\d{\!}{}}}
  101. \makeatother