Für Vorlesungen, bitte die Webseite verwenden. https://flavigny.de/lecture
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.

107 line
2.5KB

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