-
Notifications
You must be signed in to change notification settings - Fork 0
/
programmierpraktikum.cls
78 lines (65 loc) · 2.1 KB
/
programmierpraktikum.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
% @file programmierpraktikum.cls
%
% @brief Dokumentklasse fuer das Programmierpraktikum
%
% @author Tobias Witt, Institut für Informatik, HHU Düsseldorf nach Vorlage von Kim-Thomas Möller
%
\ProvidesClass{programmierpraktikum}
\LoadClass[pdftex,10pt,a4paper,oneside,notitlepage]{article}
% packages
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{ifthen}
\usepackage[sort]{cite}
\usepackage{color}
\usepackage{mathpazo} % mathpazo schriftart
\usepackage{eurosym} % use €
\usepackage{minted} % minted syntax highlighting - requires additional configuration! comment out, if not needed
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{array} % Better tabulars
\usepackage[pdftex,xdvi]{graphicx}
\usepackage{thumbpdf} %thumbs fuer Pdf
\usepackage[bookmarksnumbered=true,pdftex,plainpages=false,pdfpagelabels,colorlinks]{hyperref}
% variables
\global\let\@vorlesung\@empty
\global\let\vorlesung\relax
\def\vorlesung#1{\gdef\@vorlesung{#1}}
\def\@vorlesung{\@latex@warning@no@line{No \noexpand\vorlesung given}}
\global\let\@semester\@empty
\global\let\semester\relax
\def\semester#1{\gdef\@semester{#1}}
\def\@semester{\@latex@warning@no@line{No \noexpand\semester given}}
\global\let\@betreuer\@empty
\global\let\betreuer\relax
\def\betreuer#1{\gdef\@betreuer{#1}}
\def\@betreuer{\@latex@warning@no@line{No \noexpand\betreuer given}}
\global\let\@subtitle\@empty
\global\let\subtitle\relax
\def\subtitle#1{\gdef\@subtitle{#1}}
% configuration
\graphicspath{{./images/}}
% uebungstitel
\newcommand{\uebungstitel}{%
\noindent
\begin{tabular*}{\textwidth}{@{}l@{\extracolsep{\fill}}r@{}}
\begin{minipage}[l]{4cm}
\raggedright
\includegraphics[width=4cm]{unilogo}
\end{minipage}&
\begin{minipage}[r]{8cm}
\raggedleft
\bfseries
Universit\"at D\"usseldorf\\
Mathematisch-Naturwissenschaftliche Fakult\"at\\
Institut f\"ur Informatik\\
\normalfont
\@semester\\
\@betreuer
\end{minipage}
\end{tabular*}
\section*{\centering \@vorlesung\ im \@semester\\\small \@subtitle}
}
\renewcommand{\maketitle}{\uebungstitel}