Initial commit
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 2 Nov 2016 14:26:42 +0000 (15:26 +0100)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 2 Nov 2016 14:26:42 +0000 (15:26 +0100)
Makefile [new file with mode: 0644]
gpcfhw.cls [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3a4fe16
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+install : gpcfhw.cls
+       mkdir -p ~/texmf/tex/latex/gpcfhw/
+       cp gpcfhw.cls ~/texmf/tex/latex/gpcfhw/
+       texhash ~/texmf
diff --git a/gpcfhw.cls b/gpcfhw.cls
new file mode 100644 (file)
index 0000000..cc41f1b
--- /dev/null
@@ -0,0 +1,76 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{gpcfhw}[2016/11/02 GPCF Homework Class]
+
+\LoadClass{article}
+\RequirePackage{beton}
+\RequirePackage{eulervm}
+\RequirePackage{amsmath}
+\RequirePackage[utf8]{inputenc}
+\RequirePackage[T1]{fontenc}
+\RequirePackage[ngerman]{babel}
+\RequirePackage{amsthm}
+%\RequirePackage{palatino}
+%\RequirePackage{euler}
+\RequirePackage[activate]{pdfcprot}
+\RequirePackage[left=2.3cm, right=6.7cm, bottom=2cm]{geometry}
+\RequirePackage{amssymb}
+%\title{1. Hausaufgabe}
+\RequirePackage{fancyhdr}
+\pagestyle{fancy}
+
+\renewcommand{\headrulewidth}{0.1pt}
+\date{}
+\newtheorem{thm}{Satz}
+\newtheorem{lem}{Lemma}
+\newcounter{exc} % Counter that is incremented with every solution.
+\newcommand{\thehanr}{}
+\newcommand{\authori}{}
+\newcommand{\authork}{}
+\newcommand{\mati}{}
+\newcommand{\matk}{}
+\newcommand{\thetutorium}{}
+\lhead{\authori}
+\rhead{\authork}
+
+\chead{\thehanr. Hausaufgabe}
+\newcommand{\hanr}[1]{\renewcommand{\thehanr}{#1}
+  \title{\thehanr. Hausaufgabe}}
+\newcommand{\theex}{\thehanr.\arabic{exc}}
+\renewcommand{\theequation}{\fnsymbol{equation}}
+\newcommand{\aufgabe}{\stepcounter{exc}\section*{Aufgabe \theex}}
+\newcommand{\bonusaufgabe}{\stepcounter{exc}\section*{Bonusaufgabe \theex}}
+\newcommand{\authors}[2]{\renewcommand{\authori}{#1}\renewcommand{\authork}{#2}}
+\newcommand{\mats}[2]{\renewcommand{\mati}{#1}\renewcommand{\matk}{#2}}
+\newcommand{\tutorium}[1]{\renewcommand{\thetutorium}{#1}}
+
+
+\let\implies\Rightarrow
+\let\iff\Leftrightarrow
+\newtheorem{bem}{Bemerkung}
+\displaywidowpenalty=1000
+\DeclareUnicodeCharacter{2227}{\land}
+\DeclareUnicodeCharacter{21D2}{\implies}
+\DeclareUnicodeCharacter{2208}{\in}
+\newcommand{\N}{\mathbb{N}}
+\newcommand{\R}{\mathbb{R}}
+\newcommand{\Z}{\mathbb{Z}}
+\newcommand{\I}{\mathcal{I}}
+\newcommand{\PM}{\mathcal{P}}
+\renewcommand{\epsilon}{\varepsilon}
+\renewcommand{\leq}{\leqslant}
+\renewcommand{\geq}{\geqslant}
+\mathchardef\arr="017E % character 7E from textfont 1 is the vector arrow 
+\renewcommand\vec[1]{\setbox0=\hbox{$#1$}\lower2ex\hbox to 0pt{\hbox to \wd0{\hss$\arr\;$\hss}\hss}\box0}
+\renewcommand*\descriptionlabel[1]{\hspace\labelsep
+                                \normalfont\it #1}
+
+\renewcommand{\bfseries}{\rm}
+\renewcommand{\maketitle}{
+  \newpage
+  \thispagestyle{plain}
+  \vspace{-2cm}
+  {\centering \Large \bf \@title \par}
+  \noindent\authori \hfill \mati \\
+  \noindent\authork \hfill \matk \\
+  \noindent Tutorium: \hfill \thetutorium
+  \vspace{1cm}}
\ No newline at end of file