Browse Source

Automatically typesetting the title for exercise sheets

Signed-off-by: Daniel Borchmann <daniel.borchmann@tu-dresden.de>
master
Daniel Borchmann 4 years ago
parent
commit
fc385c8c13

+ 2
- 0
htw-201516/latex-htw-uebung.cls View File

@@ -71,6 +71,8 @@
71 71
   \vspace*{2\baselineskip}
72 72
 }
73 73
 
74
+\AtBeginDocument{\maketitle}
75
+
74 76
 %%%
75 77
 
76 78
 \newcounter{tasks}[enumi]

BIN
htw-201516/uebung-1.pdf View File


+ 0
- 2
htw-201516/uebung-1.tex View File

@@ -5,8 +5,6 @@
5 5
 
6 6
 \begin{document}
7 7
 
8
-\maketitle
9
-
10 8
 Hier ist ein erstes, kleines \LaTeX-Programm:
11 9
 
12 10
 \begin{lstlisting}

BIN
htw-201516/uebung-2.pdf View File


+ 2
- 60
htw-201516/uebung-2.tex View File

@@ -1,68 +1,10 @@
1
-\documentclass[ngerman,parskip=half-]{scrartcl}
2
-
3
-%%%
4
-
5
-\usepackage[T1]{fontenc}
6
-\usepackage[utf8]{inputenc}
7
-\usepackage{babel}
1
+\documentclass{latex-htw-uebung}
8 2
 
9 3
 \title{2. Übungsblatt}
10
-\date{4.\ Mai 2015}
11
-
12
-\usepackage[scale=0.95]{tgpagella}
13
-\usepackage[scale=0.92]{tgheros}
14
-\usepackage[scaled=0.83]{beramono}
15
-\usepackage{mathpazo}
16
-\usepackage{pdfpages}
17
-
18
-
19
-\usepackage{listings,xcolor}
20
-\lstset{language=[LaTeX]TeX,
21
-  basicstyle=\ttfamily,
22
-  keywordstyle={\color{blue}\bfseries},
23
-  frame=tb,
24
-  extendedchars=true,
25
-  literate=%
26
-    {ä}{{\"a}}1
27
-    {ö}{{\"o}}1,
28
-  numbers=left,
29
-  numberstyle=\tiny,
30
-  stepnumber=1,
31
-}
32
-
33
-\usepackage{etoolbox}
34
-\BeforeBeginEnvironment{lstlisting}{\medskip}
35
-\AfterEndEnvironment{lstlisting}{\medskip}
36
-
37
-\usepackage{tikz}
38
-\usepackage{graphicx}
39
-\usepackage{url}
40
-
41
-\pagestyle{empty}
42
-
43
-%%%
4
+\date{16.\,November 2015}
44 5
 
45 6
 \begin{document}
46 7
 
47
-\begin{tikzpicture}[overlay]
48
-  \node at (12.5,0.3) [black!50,text width=5cm,align=right] {\url{http://algebra20.de/dtl15}};
49
-  \node at (4,0.4) {\scalebox{2}{\textcolor{black!20}{\Huge Einführung}}};
50
-  \node at (12, -2.5) {\scalebox{2}{\textcolor{black!20}{\Huge in
51
-        \LaTeX}}};
52
-\end{tikzpicture}
53
-
54
-\begin{center}
55
-  \textcolor{black}{\LARGE \textbf{\textsc{2. Übungsblatt}}}
56
-
57
-  \makeatletter
58
-  \textcolor{black!70}{\@date}
59
-  \makeatother
60
-\end{center}
61
-\textcolor{black!50}{\null }
62
-\medskip
63
-
64
-\vspace*{4\baselineskip}
65
-
66 8
 \section*{Aufgabe 1}
67 9
 \label{sec:a1}
68 10
 Finde alle neun Fehler in dem folgenden \LaTeX{}-code. Wenn du fertig

Loading…
Cancel
Save