2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

added page numbers

This commit is contained in:
Martin Thoma 2013-04-16 20:08:54 +02:00
parent d16ae71984
commit 9c8eceafc9
2 changed files with 9 additions and 2 deletions

View file

@ -1,8 +1,9 @@
SOURCE = sicherheit-uebungsblatt
make:
pdflatex $(SOURCE).tex -output-format=pdf
pdflatex -shell-escape $(SOURCE).tex -output-format=pdf # shellescape wird für minted benötigt
pdflatex -shell-escape $(SOURCE).tex -output-format=pdf # zweites kompilieren für Seitenzahlen
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
rm -rf $(TARGET) *.class *.html *.log *.aux *.pyg

View file

@ -3,11 +3,16 @@
\usepackage[ngerman]{babel} % this is needed for umlauts
\usepackage[T1]{fontenc} % needed for right umlaut output in pdf
\usepackage[ngerman, num]{isodate} % get DD.MM.YYYY dates
\usepackage{amsmath}
% See http://en.wikibooks.org/wiki/LaTeX/Footnotes_and_Margin_Notes#Margin_Notes
\usepackage{marginnote} % write notes in margin
\usepackage[top=2.5cm, bottom=1cm, outer=3.0cm, inner=1.5cm, heightrounded, marginparwidth=1cm, marginparsep=0.5cm]{geometry}
\usepackage{enumerate}
\usepackage{minted} % needed for the inclusion of source code
\usepackage{lastpage}
\newcommand{\Student}{Martin Thoma}
\newcommand{\Matrikelnummer}{1634567}
\newcommand{\Nr}{1}
@ -17,6 +22,7 @@
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\Student}
\chead{Seite \thepage\ von \pageref{LastPage}}
\rhead{Matrikelnummer: \Matrikelnummer}
\usepackage{lipsum}