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
22 bookmarksnumbered=true,
\r
23 pdfauthor={Bernhard Lewurm, Fabian Ehrentraud},
\r
25 pdfkeywords={Hardware Modelling, Calculator},
\r
29 pdftitle={Specification of a Calculator to be implemented in VHDL}
\r
33 language=vhdl, % choose the language of the code
\r
35 basicstyle=\footnotesize, % the size of the fonts that are used for the code
\r
36 % basicstyle=\scriptsize, % the size of the fonts that are used for the code
\r
37 numbers=left, % where to put the line-numbers
\r
38 numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
\r
39 stepnumber=1, % the step between two line-numbers. If it's 1 each line will be numbered
\r
41 numberfirstline=true,
\r
42 numbersep=5pt, % how far the line-numbers are from the code
\r
43 backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
\r
44 showspaces=false, % show spaces adding particular underscores
\r
45 showstringspaces=false, % underline spaces within strings
\r
46 showtabs=false, % show tabs within strings adding particular underscores
\r
47 % frame=single, % adds a frame around the code
\r
49 tabsize=2, % sets default tabsize to 2 spaces
\r
51 % captionpos=b, % sets the caption-position to bottom
\r
52 captionpos=t, % sets the caption-position to top
\r
53 breaklines=true, % sets automatic line breaking
\r
54 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
\r
55 escapeinside={\%*}{*)}, % if you want to add a comment within your code
\r
56 prebreak={\space\hbox{\ensuremath\hookleftarrow}}
\r
60 \newcommand{\MakeTitleAndTOC}{
\r
62 \setcounter{page}{0}
\r
63 %-------------------------------------------------------------------------
\r
65 %-------------------------------------------------------------------------
\r
66 \thispagestyle{empty}
\r
71 {\LARGE Hardware-Modellierung VL}
\r
74 {\Huge \bf Spezifikation für das Design eines Taschenrechners in Hardware}
\r
84 {\large Fabian Ehrentraud, MatrNr. 0725639, KNZ: 033 535}\\
\r
85 {\small werteplus@gmail.com} \\
\r
87 {\large Bernhard Urban, MatrNr. 0725771, KNZ: 033 535} \\
\r
88 {\small lewurm@gmail.com} \\
\r
100 %-------------------------------------------------------------------------
\r
101 % print table of contents
\r
102 %-------------------------------------------------------------------------
\r
110 \newcommand{\mc}[1]{ {{\small \texttt{#1}}}}
\r
111 %%footnote hack von http://bushednotes.wordpress.com/2007/03/25/footnotes-tabular-in-latex/
\r
112 \newcounter{myfootertablecounter}
\r
114 \newcommand\myfootnotemark{%
\r
115 %\refstepcounter{footnote}%
\r
116 \addtocounter{footnote}{1}%
\r
117 \footnotemark[\thefootnote]%
\r
120 \newcommand\myfootnotetext[1]{%
\r
121 \addtocounter{myfootertablecounter}{1}
\r
122 \footnotetext[\value{myfootertablecounter}]{#1}
\r
125 % from now on, myfootnote has to be used rather than footnote to
\r
126 % adapt the myfootercounter
\r
127 \newcommand\myfootnote[1]{%
\r
128 \addtocounter{myfootertablecounter}{1}
\r
133 \setlength{\headheight}{14.5pt}
\r
135 \newcounter{reqcounter}
\r
136 \setcounter{reqcounter}{0}
\r
137 \newcommand{\req}[1]{
\r
139 \addtocounter{reqcounter}{1}
\r
140 \textbf{Req \arabic{reqcounter}} #1\\
\r
141 \label{Req \arabic{reqcounter}} %this could be done better with a second argument, but that's tiresome to write in the text
\r