Aktuelles PDF gibt's auch hier: https://flavigny.de/lecture/pdf/analysis2 zum bequemeren Lesen.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
3.0KB

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