listings support (praktisch fuer bsp2/3/4)
[dide_16.git] / bsp4 / Protokolle / DigitalDesign_prot.sty
index 6cb3c1c2003ce030a959fa5e84bff9be43e35a36..6aa052f94aadab8cc203329616308d7b16b7282c 100644 (file)
@@ -25,6 +25,8 @@
 \usepackage{german}
 \usepackage{graphicx}
 \usepackage[latin1]{inputenc} %------- Umlaute im Text
+\usepackage{listings}
+\usepackage{color}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 \gdef\@headline{Digital Design LU}            
 \gdef\@title{P r o t o k o l l}
 
-\gdef\@groupnr{00}
+\gdef\@groupnr{16}
 
-\gdef\@vornamea{Vorname1}
-\gdef\@nachnamea{Nachname1}
-\gdef\@matrikela{0000000}
-\gdef\@emaila{a@æstudent.tuwien.ac.at}
+\gdef\@vornamea{Markus}
+\gdef\@nachnamea{Sinnl}
+\gdef\@matrikela{0726419}
+\gdef\@emaila{markus\_s88@yahoo.de}
 
-\gdef\@vornameb{Vorname2}
-\gdef\@nachnameb{Nachname2}
-\gdef\@matrikelb{0000000}
-\gdef\@emailb{b@æstudent.tuwien.ac.at}
-
-\gdef\@vornamec{Vorname3}
-\gdef\@nachnamec{Nachname3}
-\gdef\@matrikelc{0000000}
-\gdef\@emailc{c@student.tuwien.ac.at}
-
-%\gdef\@vornamed{Vorname4}
-%\gdef\@nachnamed{Nachname4}
-%\gdef\@matrikeld{0000000}
-%\gdef\@emaild{d@student.tuwien.ac.at}
+\gdef\@vornameb{Bernhard}
+\gdef\@nachnameb{Urban}
+\gdef\@matrikelb{0725771}
+\gdef\@emailb{lewurm@gmx.net}
 
 \gdef\@aufgabe{zu Aufgabe 1}
 
@@ -170,10 +162,6 @@ Gruppe \@groupnr \par
 {\small \@emaila \par}
 \@vornameb \  \@nachnameb, Matr. Nr. \@matrikelb \par
 {\small \@emailb \par}
-\@vornamec \  \@nachnamec, Matr. Nr. \@matrikelc \par
-{\small \@emailc \par}
-%\@vornamed \  \@nachnamed, Matr. Nr. \@matrikeld \par
-%{\small \@emaild \par}
 
 %\@authora \par
 %\@authorb \par
@@ -223,3 +211,22 @@ Wien, am~\today{}
 
 \pagenumbering{arabic}
 \setcounter{page} {1}
+
+\lstset{ %
+language=VHDL,                % choose the language of the code
+basicstyle=\footnotesize,       % the size of the fonts that are used for the code
+numbers=left,                   % where to put the line-numbers
+numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers
+stepnumber=2,                   % the step between two line-numbers. If it's 1 each line will be numbered
+numbersep=5pt,                  % how far the line-numbers are from the code
+backgroundcolor=\color{white},  % choose the background color. You must add \usepackage{color}
+showspaces=false,               % show spaces adding particular underscores
+showstringspaces=false,         % underline spaces within strings
+showtabs=false,                 % show tabs within strings adding particular underscores
+frame=single,                  % adds a frame around the code
+tabsize=2,                     % sets default tabsize to 2 spaces
+captionpos=b,                   % sets the caption-position to bottom
+breaklines=true,                % sets automatic line breaking
+breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
+escapeinside={\%*}{*)}          % if you want to add a comment within your code
+}