Browse Source

Automatically typesetting the title for exercise sheets

Signed-off-by: Daniel Borchmann <daniel.borchmann@tu-dresden.de>
master
Daniel Borchmann 6 years ago
parent
commit
fc385c8c13
  1. 2
      htw-201516/latex-htw-uebung.cls
  2. BIN
      htw-201516/uebung-1.pdf
  3. 2
      htw-201516/uebung-1.tex
  4. BIN
      htw-201516/uebung-2.pdf
  5. 62
      htw-201516/uebung-2.tex

2
htw-201516/latex-htw-uebung.cls

@ -71,6 +71,8 @@
\vspace*{2\baselineskip}
}
\AtBeginDocument{\maketitle}
%%%
\newcounter{tasks}[enumi]

BIN
htw-201516/uebung-1.pdf

Binary file not shown.

2
htw-201516/uebung-1.tex

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

BIN
htw-201516/uebung-2.pdf

Binary file not shown.

62
htw-201516/uebung-2.tex

@ -1,68 +1,10 @@
\documentclass[ngerman,parskip=half-]{scrartcl}
%%%
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\documentclass{latex-htw-uebung}
\title{2. Übungsblatt}
\date{4.\ Mai 2015}
\usepackage[scale=0.95]{tgpagella}
\usepackage[scale=0.92]{tgheros}
\usepackage[scaled=0.83]{beramono}
\usepackage{mathpazo}
\usepackage{pdfpages}
\usepackage{listings,xcolor}
\lstset{language=[LaTeX]TeX,
basicstyle=\ttfamily,
keywordstyle={\color{blue}\bfseries},
frame=tb,
extendedchars=true,
literate=%
{ä}{{\"a}}1
{ö}{{\"o}}1,
numbers=left,
numberstyle=\tiny,
stepnumber=1,
}
\usepackage{etoolbox}
\BeforeBeginEnvironment{lstlisting}{\medskip}
\AfterEndEnvironment{lstlisting}{\medskip}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{url}
\pagestyle{empty}
%%%
\date{16.\,November 2015}
\begin{document}
\begin{tikzpicture}[overlay]
\node at (12.5,0.3) [black!50,text width=5cm,align=right] {\url{http://algebra20.de/dtl15}};
\node at (4,0.4) {\scalebox{2}{\textcolor{black!20}{\Huge Einführung}}};
\node at (12, -2.5) {\scalebox{2}{\textcolor{black!20}{\Huge in
\LaTeX}}};
\end{tikzpicture}
\begin{center}
\textcolor{black}{\LARGE \textbf{\textsc{2. Übungsblatt}}}
\makeatletter
\textcolor{black!70}{\@date}
\makeatother
\end{center}
\textcolor{black!50}{\null }
\medskip
\vspace*{4\baselineskip}
\section*{Aufgabe 1}
\label{sec:a1}
Finde alle neun Fehler in dem folgenden \LaTeX{}-code. Wenn du fertig

Loading…
Cancel
Save