Initial commit
[gpcfhw.git] / gpcfhw.cls
1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesClass{gpcfhw}[2016/11/02 GPCF Homework Class]
3
4 \LoadClass{article}
5 \RequirePackage{beton}
6 \RequirePackage{eulervm}
7 \RequirePackage{amsmath}
8 \RequirePackage[utf8]{inputenc}
9 \RequirePackage[T1]{fontenc}
10 \RequirePackage[ngerman]{babel}
11 \RequirePackage{amsthm}
12 %\RequirePackage{palatino}
13 %\RequirePackage{euler}
14 \RequirePackage[activate]{pdfcprot}
15 \RequirePackage[left=2.3cm, right=6.7cm, bottom=2cm]{geometry}
16 \RequirePackage{amssymb}
17 %\title{1. Hausaufgabe}
18 \RequirePackage{fancyhdr}
19 \pagestyle{fancy}
20
21 \renewcommand{\headrulewidth}{0.1pt}
22 \date{}
23 \newtheorem{thm}{Satz}
24 \newtheorem{lem}{Lemma}
25 \newcounter{exc} % Counter that is incremented with every solution.
26 \newcommand{\thehanr}{}
27 \newcommand{\authori}{}
28 \newcommand{\authork}{}
29 \newcommand{\mati}{}
30 \newcommand{\matk}{}
31 \newcommand{\thetutorium}{}
32 \lhead{\authori}
33 \rhead{\authork}
34
35 \chead{\thehanr. Hausaufgabe}
36 \newcommand{\hanr}[1]{\renewcommand{\thehanr}{#1}
37 \title{\thehanr. Hausaufgabe}}
38 \newcommand{\theex}{\thehanr.\arabic{exc}}
39 \renewcommand{\theequation}{\fnsymbol{equation}}
40 \newcommand{\aufgabe}{\stepcounter{exc}\section*{Aufgabe \theex}}
41 \newcommand{\bonusaufgabe}{\stepcounter{exc}\section*{Bonusaufgabe \theex}}
42 \newcommand{\authors}[2]{\renewcommand{\authori}{#1}\renewcommand{\authork}{#2}}
43 \newcommand{\mats}[2]{\renewcommand{\mati}{#1}\renewcommand{\matk}{#2}}
44 \newcommand{\tutorium}[1]{\renewcommand{\thetutorium}{#1}}
45
46
47 \let\implies\Rightarrow
48 \let\iff\Leftrightarrow
49 \newtheorem{bem}{Bemerkung}
50 \displaywidowpenalty=1000
51 \DeclareUnicodeCharacter{2227}{\land}
52 \DeclareUnicodeCharacter{21D2}{\implies}
53 \DeclareUnicodeCharacter{2208}{\in}
54 \newcommand{\N}{\mathbb{N}}
55 \newcommand{\R}{\mathbb{R}}
56 \newcommand{\Z}{\mathbb{Z}}
57 \newcommand{\I}{\mathcal{I}}
58 \newcommand{\PM}{\mathcal{P}}
59 \renewcommand{\epsilon}{\varepsilon}
60 \renewcommand{\leq}{\leqslant}
61 \renewcommand{\geq}{\geqslant}
62 \mathchardef\arr="017E % character 7E from textfont 1 is the vector arrow
63 \renewcommand\vec[1]{\setbox0=\hbox{$#1$}\lower2ex\hbox to 0pt{\hbox to \wd0{\hss$\arr\;$\hss}\hss}\box0}
64 \renewcommand*\descriptionlabel[1]{\hspace\labelsep
65 \normalfont\it #1}
66
67 \renewcommand{\bfseries}{\rm}
68 \renewcommand{\maketitle}{
69 \newpage
70 \thispagestyle{plain}
71 \vspace{-2cm}
72 {\centering \Large \bf \@title \par}
73 \noindent\authori \hfill \mati \\
74 \noindent\authork \hfill \matk \\
75 \noindent Tutorium: \hfill \thetutorium
76 \vspace{1cm}}