Browse Source

added page numbers

Martin Thoma 12 years ago
parent
commit
9c8eceafc9

+ 3 - 2
documents/sicherheit-uebungsblatt/Makefile

@@ -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

+ 6 - 0
documents/sicherheit-uebungsblatt/sicherheit-uebungsblatt.tex

@@ -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}