-
Notifications
You must be signed in to change notification settings - Fork 2
/
exercises.cls
53 lines (46 loc) · 1.1 KB
/
exercises.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{exercises}[2021/10/21]
\LoadClass[a4paper]{article}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\RequirePackage{enumitem}
\RequirePackage{geometry}
\RequirePackage{mathtools}
\RequirePackage{multicol}
\RequirePackage{tikz-cd}
%\RequirePackage{biblatex}
\RequirePackage{hyperref}
\geometry{top=2.5cm}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\medskipamount}
\setenumerate[1]{label=(\alph*),topsep=0pt}
\setenumerate[2]{label=(\roman*),topsep=0pt}
\renewcommand{\title}{Hello}
\renewcommand{\maketitle}[6]{
% #1 : University
% #2 : Institute
% #3 : Semester
% #4 : Teacher
% #5 : Teaching assistant
% #6 : Course
\pagestyle{empty}
{#1}\hfill
{#4}\\
{#2}\hfill
{#5}\\
{#3}\\
\begin{center}
\Large\bfseries
Exercises for {#6}
\end{center}
\vspace{1.5em}
}
\newcounter{exc}
\newenvironment{exercise}[1][]{
\addtocounter{exc}{1}\textbf{Exercise \theexc.} \emph{#1}\par
}{\vspace{1.5em}}
\newenvironment{bonus}[1][]{
\textbf{Bonusaufgabe.} \emph{#1}\par
}{\vspace{1.5em}}