1 \usepackage{fancyhdr}
\r
2 \usepackage{graphicx}
\r
5 \usepackage{listings}
\r
7 \usepackage[T1]{fontenc}
\r
8 %\usepackage[utf8]{inputenc}
\r
9 \usepackage[latin1]{inputenc}
\r
11 \usepackage[plainpages=false, pdfpagelabels]{hyperref} %Klickbare Links im PDF
\r
12 \usepackage{amssymb}
\r
13 \usepackage{amsmath}
\r
14 \usepackage{longtable,colortbl}
\r
15 \usepackage{pdfpages}
\r
16 \usepackage{pdflscape}
\r
23 bookmarksnumbered=true,
\r
24 %pdfauthor={Bernhard Lewurm, Fabian Ehrentraud}, TODO unanonymize
\r
26 pdfkeywords={Hardware Modelling, Calculator},
\r
30 pdftitle={Specification of a Calculator to be implemented in VHDL}
\r
34 language=vhdl, % choose the language of the code
\r
36 basicstyle=\footnotesize, % the size of the fonts that are used for the code
\r
37 % basicstyle=\scriptsize, % the size of the fonts that are used for the code
\r
38 numbers=left, % where to put the line-numbers
\r
39 numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
\r
40 stepnumber=1, % the step between two line-numbers. If it's 1 each line will be numbered
\r
42 numberfirstline=true,
\r
43 numbersep=5pt, % how far the line-numbers are from the code
\r
44 backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
\r
45 showspaces=false, % show spaces adding particular underscores
\r
46 showstringspaces=false, % underline spaces within strings
\r
47 showtabs=false, % show tabs within strings adding particular underscores
\r
48 % frame=single, % adds a frame around the code
\r
50 tabsize=2, % sets default tabsize to 2 spaces
\r
52 % captionpos=b, % sets the caption-position to bottom
\r
53 captionpos=t, % sets the caption-position to top
\r
54 breaklines=true, % sets automatic line breaking
\r
55 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
\r
56 escapeinside={\%*}{*)}, % if you want to add a comment within your code
\r
57 prebreak={\space\hbox{\ensuremath\hookleftarrow}}
\r
61 \newcommand{\MakeTitleAndTOC}{
\r
63 \setcounter{page}{0}
\r
64 %-------------------------------------------------------------------------
\r
66 %-------------------------------------------------------------------------
\r
67 \thispagestyle{empty}
\r
72 {\LARGE Hardware-Modellierung VL}
\r
75 {\Huge \bf Spezifikation für das Design eines Taschenrechners in Hardware}
\r
85 %{\large Fabian Ehrentraud, MatrNr. 0725639, KNZ: 033 535}\\ TODO unanonymize
\r
87 %{\small werteplus@gmail.com} \\
\r
89 %{\large Bernhard Urban, MatrNr. 0725771, KNZ: 033 535} \\ TODO unanonymize
\r
90 {\large Mister Y} \\
\r
91 %{\small lewurm@gmail.com} \\
\r
103 %-------------------------------------------------------------------------
\r
104 % print table of contents
\r
105 %-------------------------------------------------------------------------
\r
113 \newcommand{\mc}[1]{ {{\small \texttt{#1}}}}
\r
114 %%footnote hack von http://bushednotes.wordpress.com/2007/03/25/footnotes-tabular-in-latex/
\r
115 \newcounter{myfootertablecounter}
\r
117 \newcommand\myfootnotemark{%
\r
118 %\refstepcounter{footnote}%
\r
119 \addtocounter{footnote}{1}%
\r
120 \footnotemark[\thefootnote]%
\r
123 \newcommand\myfootnotetext[1]{%
\r
124 \addtocounter{myfootertablecounter}{1}
\r
125 \footnotetext[\value{myfootertablecounter}]{#1}
\r
128 % from now on, myfootnote has to be used rather than footnote to
\r
129 % adapt the myfootercounter
\r
130 \newcommand\myfootnote[1]{%
\r
131 \addtocounter{myfootertablecounter}{1}
\r
136 \setlength{\headheight}{14.5pt}
\r
138 \newcounter{reqcounter}
\r
139 \setcounter{reqcounter}{0}
\r
140 \newcommand{\req}[1]{
\r
142 \addtocounter{reqcounter}{1}
\r
143 \textbf{Req \arabic{reqcounter}} #1\\
\r
144 \label{Req \arabic{reqcounter}} %this could be done better with a second argument, but that's tiresome to write in the text
\r