spec: vorlage
[hwmod.git] / spec / ProtocolHeader.sty
1 \lstset{ %
2 language=vhdl,                % choose the language of the code
3 basicstyle=\footnotesize,       % the size of the fonts that are used for the code
4 numbers=left,                   % where to put the line-numbers
5 numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers
6 stepnumber=1,                   % the step between two line-numbers. If it's 1 each line will be numbered
7 numbersep=5pt,                  % how far the line-numbers are from the code
8 backgroundcolor=\color{white},  % choose the background color. You must add \usepackage{color}
9 showspaces=false,               % show spaces adding particular underscores
10 showstringspaces=false,         % underline spaces within strings
11 showtabs=false,                 % show tabs within strings adding particular underscores
12 %frame=single,                  % adds a frame around the code
13 tabsize=2,                      % sets default tabsize to 2 spaces
14 captionpos=b,                   % sets the caption-position to bottom
15 breaklines=true,                % sets automatic line breaking
16 breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
17 escapeinside={\%*}{*)},         % if you want to add a comment within your code
18 prebreak={\space\hbox{\ensuremath\hookleftarrow}}
19 }
20
21 \sloppy
22 \newcommand{\MakeTitleAndTOC}{
23   %-------------------------------------------------------------------------
24   % print title page
25   %-------------------------------------------------------------------------
26   \thispagestyle{empty}
27   ~ \\
28   ~ \\
29   \begin{center}
30   \noindent
31   {\LARGE Hardware-Modellierung VL}
32   ~ \\
33   ~ \\
34   {\Huge \bf Spezifikation f\"ur das Design eines Taschenrechners\\in Hardware}
35   \end{center}
36   ~ \\
37   ~ \\
38   % Author
39   \begin{center}
40   \noindent
41   {\large Gruppe: Nr. 20}
42   ~ \\
43   ~ \\
44   {\large Fabian Ehrentraud, MatrNr. 0725639, KNZ: 033 535}\\
45   {\small werteplus@gmail.com} \\
46   ~ \\
47   {\large Bernhard Urban, MatrNr. 0725771, KNZ: 033 535} \\
48   {\small lewurm@gmail.com} \\
49   ~ \\
50   ~ \\
51   ~ \\
52   ~ \\
53   {\large \today}
54   \end{center}
55
56   \newpage
57
58   %-------------------------------------------------------------------------
59   % print table of contents
60   %-------------------------------------------------------------------------
61   \tableofcontents
62   \newpage
63
64 }
65
66
67
68 \newcommand{\mc}[1]{ {{\small \texttt{#1}}}}
69 %%footnote hack von http://bushednotes.wordpress.com/2007/03/25/footnotes-tabular-in-latex/
70 \newcounter{myfootertablecounter}
71
72 \newcommand\myfootnotemark{%
73         %\refstepcounter{footnote}%
74                 \addtocounter{footnote}{1}%
75                 \footnotemark[\thefootnote]%
76 }%
77
78 \newcommand\myfootnotetext[1]{%
79         \addtocounter{myfootertablecounter}{1}
80         \footnotetext[\value{myfootertablecounter}]{#1}
81 }
82
83 % from now on, myfootnote has to be used rather than footnote to
84 % adapt the myfootercounter
85 \newcommand\myfootnote[1]{%
86         \addtocounter{myfootertablecounter}{1}
87         \footnote{#1}
88 }%