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