summaryrefslogtreecommitdiffstats
path: root/ue4/protokoll/oop_prot.sty
diff options
context:
space:
mode:
Diffstat (limited to 'ue4/protokoll/oop_prot.sty')
-rw-r--r--ue4/protokoll/oop_prot.sty222
1 files changed, 222 insertions, 0 deletions
diff --git a/ue4/protokoll/oop_prot.sty b/ue4/protokoll/oop_prot.sty
new file mode 100644
index 0000000..26a66e6
--- /dev/null
+++ b/ue4/protokoll/oop_prot.sty
@@ -0,0 +1,222 @@
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%
3% OOP_prot.sty
4%
5%
6% 13.03.07
7%
8% Institut f"ur Technische Informatik (182/1)
9% Real Time Systems Group
10% Technische Universit"at Wien
11% 1040 Treitlstr. 3, 3. Stk.
12% (www.vmars.tuwien.ac.at)
13%
14%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17%
18% packages
19%
20%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21
22\usepackage{fancyheadings}
23\usepackage{german}
24\usepackage{graphicx}
25\usepackage{listings}
26\usepackage[T1]{fontenc}
27%\usepackage[latin1]{inputenc}
28\usepackage{times}
29\usepackage{epsfig}
30
31%in order to get the source code in a really good shape
32\lstset{%backgroundcolor=\color[gray]{.9},
33 extendedchars=true,
34 basicstyle=\scriptsize,
35% frame={tb},
36% morekeywords={outp,inp,bit_is_clear,bit_is_set,sei,cli,sbi,cbi,INTERRUPT,SIGNAL,uint8,uint16_t,uint32_t,uint64_t,int8_t,int16_t,int32_t,int64_t,memptr},
37 language=C++,
38 breaklines=true,
39% lineskip=2pt,
40% numbers=left,
41% stepnumber=5,
42 }
43
44
45%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
46%
47% user-defined commands
48%
49%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
50
51% typeset pin numbers
52\newcommand{\pin}[1]{\emph{\textbf{#1}}\ }
53%\renewcommand{\chaptername}{Aufgabe}
54
55\newcommand{\matrnr}{Matr. Nr.}
56
57%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58%
59% some size definitions and counter settings
60%
61%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
62
63\oddsidemargin 1cm
64\evensidemargin 1cm
65\topmargin 0pt
66\headsep 50pt
67\textheight 21.5cm
68\textwidth 14.1cm
69
70\renewcommand{\floatpagefraction}{0.9}
71\renewcommand{\textfraction}{0.05}
72\renewcommand{\topfraction}{1.0}
73\renewcommand{\bottomfraction}{1.0}
74
75\setcounter{totalnumber}{3}
76\setcounter{bottomnumber}{3}
77\setcounter{topnumber}{3}
78
79\setlength{\unitlength}{1mm}
80\setlength{\parindent}{6mm}
81\setlength{\parskip}{12pt plus2pt minus2pt}
82
83\sloppy
84
85%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
86%
87% define variables used on titlepage
88%
89%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90
91% heading
92\def\headline#1{\gdef\@headline{#1}}
93% authors
94\def\vornamea#1{\gdef\@vornamea{#1}}
95\def\nachnamea#1{\gdef\@nachnamea{#1}}
96\def\matrikela#1{\gdef\@matrikela{#1}}
97\def\emaila#1{\gdef\@emaila{#1}}
98
99\def\vornameb#1{\gdef\@vornameb{#1}}
100\def\nachnameb#1{\gdef\@nachnameb{#1}}
101\def\matrikelb#1{\gdef\@matrikelb{#1}}
102\def\emailb#1{\gdef\@emailb{#1}}
103
104\def\vornamec#1{\gdef\@vornamec{#1}}
105\def\nachnamec#1{\gdef\@nachnamec{#1}}
106\def\matrikelc#1{\gdef\@matrikelc{#1}}
107\def\emailc#1{\gdef\@emailc{#1}}
108
109\def\vornamed#1{\gdef\@vornamed{#1}}
110\def\nachnamed#1{\gdef\@nachnamed{#1}}
111\def\matrikeld#1{\gdef\@matrikeld{#1}}
112\def\emaild#1{\gdef\@emaild{#1}}
113
114% address of department
115\def\address#1{\gdef\@address{#1}}
116% LVA-Nr.
117\def\lvanr#1{\gdef\@aufgabe{#1}}
118
119\setcounter{footnote}{0}
120
121% initialize variables
122\gdef\@headline{Object-Oriented Programming VL}
123%\gdef\@title{Laborprotokoll}
124
125\gdef\@vornamea{VStud1}
126\gdef\@nachnamea{NStud1}
127\gdef\@matrikela{000000}
128\gdef\@emaila{e000000@student.tuwien.ac.at}
129
130\gdef\@vornameb{VStud2}
131\gdef\@nachnameb{NStud2}
132\gdef\@matrikelb{000000}
133\gdef\@emailb{e000000@student.tuwien.ac.at}
134
135\gdef\@vornamec{VStud3}
136\gdef\@nachnamec{NStud3}
137\gdef\@matrikelc{0000000}
138\gdef\@emailc{e000000@student.tuwien.ac.at}
139
140\gdef\@aufgabe{zu Aufgabe 1}
141
142%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
143%
144% titlepage
145%
146%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
147
148\def\maketitle{
149\begin{titlepage}
150
151% enlarge page
152\setlength{\topmargin}{0pt}
153\setlength{\headheight}{0pt}
154\setlength{\headsep}{0pt}
155\setlength{\footskip}{0pt}
156
157\let\footnotesize\small \let\footnoterule\relax \setcounter{page}{1}
158\null
159\vfill
160\large
161\vskip -4 cm
162
163\begin{center}
164% heading
165{\LARGE\bf \@headline \par} \vskip 2cm
166
167\vskip 1cm
168
169% title
170{\LARGE\bf Laborprotokoll \par}
171\vskip 0.5cm
172{\Huge\bf \@title \par}
173\vskip 1cm
174%{\Large \bf \@aufgabe \par}
175\vskip 4cm
176
177\begin{flushright}
178\@author
179\vskip 1cm
180Wien, am~\today{}
181\end{flushright}
182\end{center} \par
183\vskip 1.5cm
184
185\end{titlepage}
186
187\setcounter{footnote}{0}
188\let\thanks\relax
189} % \def\maketitle
190
191
192%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
193
194\newenvironment{Ventry}[1]%
195{\begin{list}{}{\renewcommand{\makelabel}[1]{\textbf{##1:}\hfill}%
196\settowidth{\labelwidth}{\textbf{#1:}}%
197\setlength{\leftmargin}{\labelwidth}%
198\addtolength{\leftmargin}{\labelsep}}}%
199{\end{list}}
200
201\newcommand{\tablesize}{\fontsize{8}{10}\selectfont}
202
203%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
204%
205% layout of non-title pages
206%
207%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208
209\pagenumbering{roman}
210\setlength{\parskip}{5pt plus2pt minus2pt}
211
212\setlength{\parskip}{1mm}
213\clearpage
214\setlength{\parskip}{5pt plus2pt minus2pt}
215
216\pagestyle{fancy}
217%\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
218\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
219\addtolength{\headheight}{2pt}
220
221\pagenumbering{arabic}
222\setcounter{page} {1}