1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % DigitalDesign_app.sty
6 % (rahbaran@ecs.tuwien.ac.at)
10 % Institut f"ur Technische Informatik (182/2)
12 % Technische Universit"at Wien
13 % 1040 Treitlstr. 3, 2. Stk.
14 % (www.ecs.tuwien.ac.at)
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24 \usepackage{fancyheadings}
27 \usepackage[latin1]{inputenc} %------- Umlaute im Text
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33 % user-defined commands
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38 \newcommand{\pin}[1]{\emph{\textbf{#1}}\ }
39 \renewcommand{\chaptername}{Aufgabe}
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
44 % some size definitions and counter settings
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
55 \renewcommand{\floatpagefraction}{0.9}
56 \renewcommand{\textfraction}{0.05}
57 \renewcommand{\topfraction}{1.0}
58 \renewcommand{\bottomfraction}{1.0}
60 \setcounter{totalnumber}{3}
61 \setcounter{bottomnumber}{3}
62 \setcounter{topnumber}{3}
64 \setlength{\unitlength}{1mm}
65 \setlength{\parindent}{6mm}
66 \setlength{\parskip}{12pt plus2pt minus2pt}
69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
71 % define variables used on titlepage
73 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
76 \def\headline#1{\gdef\@headline{#1}}
78 \def\groupnr#1{\gdef\@groupnr{#1}}
80 \def\vornamea#1{\gdef\@vornamea{#1}}
81 \def\nachnamea#1{\gdef\@nachnamea{#1}}
82 \def\matrikela#1{\gdef\@matrikela{#1}}
83 \def\emaila#1{\gdef\@emaila{#1}}
85 \def\vornameb#1{\gdef\@vornameb{#1}}
86 \def\nachnameb#1{\gdef\@nachnameb{#1}}
87 \def\matrikelb#1{\gdef\@matrikelb{#1}}
88 \def\emailb#1{\gdef\@emailb{#1}}
90 \def\vornamec#1{\gdef\@vornamec{#1}}
91 \def\nachnamec#1{\gdef\@nachnamec{#1}}
92 \def\matrikelc#1{\gdef\@matrikelc{#1}}
93 \def\emailc#1{\gdef\@emailc{#1}}
95 %\def\vornamed#1{\gdef\@vornamed{#1}}
96 %\def\nachnamed#1{\gdef\@nachnamed{#1}}
97 %\def\matrikeld#1{\gdef\@matrikeld{#1}}
98 %\def\emaild#1{\gdef\@emaild{#1}}
100 % address of department
101 \def\address#1{\gdef\@address{#1}}
103 \def\lvanr#1{\gdef\@aufgabe{#1}}
105 \setcounter{footnote}{0}
107 % initialize variables
108 \gdef\@headline{Digital Design LU}
109 \gdef\@title{P r o t o k o l l}
113 \gdef\@vornamea{Markus}
114 \gdef\@nachnamea{Sinnl}
115 \gdef\@matrikela{0726419}
116 \gdef\@emaila{markus\_s88@yahoo.de}
118 \gdef\@vornameb{Bernhard}
119 \gdef\@nachnameb{Urban}
120 \gdef\@matrikelb{0725771}
121 \gdef\@emailb{lewurm@gmx.net}
123 \gdef\@aufgabe{zu Aufgabe 1}
125 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
129 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
135 \setlength{\topmargin}{0pt}
136 \setlength{\headheight}{0pt}
137 \setlength{\headsep}{0pt}
138 \setlength{\footskip}{0pt}
140 \let\footnotesize\small \let\footnoterule\relax \setcounter{page}{1}
148 {\LARGE\bf \@headline \par} \vskip 2cm
153 {\Huge\bf\underline \@title \par}
155 %{\Large \bf \@aufgabe \par}
159 Gruppe \@groupnr \par
161 \@vornamea \ \@nachnamea, Matr. Nr. \@matrikela \par
162 {\small \@emaila \par}
163 \@vornameb \ \@nachnameb, Matr. Nr. \@matrikelb \par
164 {\small \@emailb \par}
178 \setcounter{footnote}{0}
183 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
185 \newenvironment{Ventry}[1]%
186 {\begin{list}{}{\renewcommand{\makelabel}[1]{\textbf{##1:}\hfill}%
187 \settowidth{\labelwidth}{\textbf{#1:}}%
188 \setlength{\leftmargin}{\labelwidth}%
189 \addtolength{\leftmargin}{\labelsep}}}%
192 \newcommand{\tablesize}{\fontsize{8}{10}\selectfont}
194 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
196 % layout of non-title pages
198 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
200 \pagenumbering{roman}
201 \setlength{\parskip}{5pt plus2pt minus2pt}
203 \setlength{\parskip}{1mm}
205 \setlength{\parskip}{5pt plus2pt minus2pt}
208 \renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
209 \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}}
210 \addtolength{\headheight}{2pt}
212 \pagenumbering{arabic}
213 \setcounter{page} {1}
216 language=VHDL, % choose the language of the code
217 basicstyle=\footnotesize, % the size of the fonts that are used for the code
218 numbers=left, % where to put the line-numbers
219 numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
220 stepnumber=2, % the step between two line-numbers. If it's 1 each line will be numbered
221 numbersep=5pt, % how far the line-numbers are from the code
222 backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
223 showspaces=false, % show spaces adding particular underscores
224 showstringspaces=false, % underline spaces within strings
225 showtabs=false, % show tabs within strings adding particular underscores
226 frame=single, % adds a frame around the code
227 tabsize=2, % sets default tabsize to 2 spaces
228 captionpos=b, % sets the caption-position to bottom
229 breaklines=true, % sets automatic line breaking
230 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
231 escapeinside={\%*}{*)} % if you want to add a comment within your code