Aktuelles PDF gibt's auch hier: https://flavigny.de/lecture/pdf/analysis2 zum bequemeren Lesen.
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ů.

149 řádky
3.6KB

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