s3e: fix build break
[calu.git] / 2_isa / common.sty
1 \usepackage{graphicx}
2 \usepackage{amsmath}
3 \usepackage{hyperref}
4 \usepackage{url}
5 \usepackage{color}
6 \usepackage[latin1]{inputenc}
7 \usepackage{listings}
8 %\usepackage{ngerman}
9
10 \usepackage{longtable}
11
12 %used for coloring of instr.
13 \usepackage{colortbl}
14
15 \definecolor{title}{rgb}{0.86,0.86,0.86}
16 \definecolor{bit}{rgb}{0.8,0.86,0.8}
17 \definecolor{bitval}{rgb}{0.8,0.8,0.8}
18 \definecolor{names}{rgb}{0.86,0.93,0.86}
19
20 \arrayrulecolor{black}
21
22
23 % put footnotes below floats
24 % this is a good idea if the table for the cmp looks bad on top of page
25 \usepackage{fnpos}
26 \makeFNbelow
27
28
29 \lstset{%
30 basicstyle=\footnotesize,
31 frame=single,
32 breaklines=true,
33 tabsize=4
34 }
35
36 \newcommand{\insertemail}[1]{\href{mailto:#1}{#1}}
37
38 \newcommand{\longcomment}[1]{}
39
40 \newcommand{\addauthor}[3]{
41         #1 {\small (#2)}\\{\small\insertemail{#3}}
42 }
43
44 \newcommand{\todo}[1]{
45         \large\textcolor{red}{TODO: #1}
46 }
47
48 \lstset{%
49         basicstyle=\footnotesize,
50         frame=single,
51         breaklines=true,
52         tabsize=4
53 }
54
55 \newcommand{\listingS}[2] {
56         %wtf, no "Assembler" exists??
57         %\lstinputlisting[language=Assembler,caption=#1]{#2}
58         \lstinputlisting[caption=#1]{#2}
59 }
60 \newcommand{\listingC}[2] {
61         \lstinputlisting[language=C,caption=#1]{#2}
62 }
63
64 \newcommand{\allauthors}{
65         \author{
66                 \addauthor{Markus Hofst\"atter}{0725034}{markus.manrow@gmx.at}\and
67                 \addauthor{Martin Perner}{0725782}{e0725782@student.tuwien.ac.at}\and
68                 \addauthor{Stefan Rebernig}{0726283}{stefan.rebernig@gmail.com}\and
69                 \addauthor{Manfred Schwarz}{0725898}{e0725898@student.tuwien.ac.at}\and
70                 \addauthor{Bernhard Urban}{0725771}{lewurm@gmail.com}
71         }
72 }