-
Notifications
You must be signed in to change notification settings - Fork 0
/
report_style.tex
288 lines (226 loc) · 8.2 KB
/
report_style.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
%%% File-Information {{{
%%% Filename: template_bericht.tex
%%% Purpose: lab report, technical report, project report
%%% Time-stamp: <2004-06-30 18:19:32 mp>
%%% Authors: The LaTeX@TUG-Team [http://latex.tugraz.at/]:
%%% Karl Voit (vk), Michael Prokop (mp), Stefan Sollerer (ss)
%%% History:
%%% 20050914 (ss) correction of "backref=true" to "backref" due to hyperref documentation
%%% 20040630 (mp) added comments to foldmethod at end of file
%%% 20040625 (vk,ss) initial version
%%%
%%% Notes:
%%%
%%%
%%%
%%% }}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% packages
%%%
\usepackage[a4paper]{geometry}
\geometry{tmargin=1in,bmargin=1.25in,lmargin=2.5cm,rmargin=2cm}
\usepackage{microtype}
%%%
%%% encoding and language set
%%%
%%% ngerman: language set to new-german
\usepackage[english]{babel}
\usepackage{tocloft}
\usepackage{subcaption}
\usepackage{listings}
\usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
\usepackage{courier}
\usepackage{float}
\usepackage{siunitx}
%%% babel: language set (can cause some conflicts with package ngerman)
%%% use it only for multi-language documents or non-german ones
%\usepackage[ngerman]{babel}
%%% inputenc: coding of german special characters
\usepackage[utf8]{inputenc}
%%% fontenc, ae, aecompl: coding of characters in PDF documents
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl}
%%%
%%% technical packages
%%%
%%% amsmath, amssymb, amstext: support for mathematics
%\usepackage{amsmath,amssymb,amstext}
\usepackage{bm}
%%% psfrag: replace PostScript fonts
\usepackage{psfrag}
%%% listings: include programming code
%\usepackage{listings}
%%% units: technical units
%\usepackage{units}
%%%
%%% layout
%%%
%%% scrpage2: KOMA heading and footer
%%% Note: if you don't use this package, please remove
%%% \pagestyle{scrheadings} and corresponding settings
%%% below too.
\usepackage[automark]{scrpage2}
%%%
%%% PDF
%%%
\usepackage{ifpdf}
%%% Should be LAST usepackage-call!
%%% For docu on that, see reference on package ``hyperref''
\ifpdf% (definitions for using pdflatex instead of latex)
%%% graphicx: support for graphics
\usepackage[pdftex]{graphicx}
\pdfcompresslevel=9
%%% hyperref (hyperlinks in PDF): for more options or more detailed
%%% explanations, see the documentation of the hyperref-package
\usepackage[%
%%% general options
%pdftex=true, %% sets up hyperref for use with the pdftex program
%plainpages=false, %% set it to false, if pdflatex complains: ``destination with same identifier already exists''
%
%%% extension options
backref, %% adds a backlink text to the end of each item in the bibliography
pagebackref=false, %% if true, creates backward references as a list of page numbers in the bibliography
colorlinks=false, %% turn on colored links (true is better for on-screen reading, false is better for printout versions)
%
%%% PDF-specific display options
bookmarks=true, %% if true, generate PDF bookmarks (requires two passes of pdflatex)
bookmarksopen=false, %% if true, show all PDF bookmarks expanded
bookmarksnumbered=false, %% if true, add the section numbers to the bookmarks
%pdfstartpage={1}, %% determines, on which page the PDF file is opened
pdfpagemode=UseNone %% None, UseOutlines (=show bookmarks), UseThumbs (show thumbnails), FullScreen
]{hyperref}
%%% provide all graphics (also) in this format, so you don't have
%%% to add the file extensions to the \includegraphics-command
%%% and/or you don't have to distinguish between generating
%%% dvi/ps (through latex) and pdf (through pdflatex)
\DeclareGraphicsExtensions{.pdf}
\else %else (definitions for using latex instead of pdflatex)
\usepackage[dvips]{graphicx}
\DeclareGraphicsExtensions{.eps}
\usepackage[%
dvips, %% sets up hyperref for use with the dvips driver
colorlinks=false %% better for printout version; almost every hyperref-extension is eliminated by using dvips
]{hyperref}
\fi
\usepackage[noabbrev]{cleveref}
%%% sets the PDF-Information options
%%% (see fields in Acrobat Reader: ``File -> Document properties -> Summary'')
%%% Note: this method is better than as options of the hyperref-package (options are expanded correctly)
\hypersetup{
pdftitle={Image Based Measurement Laboratory}, %%
pdfauthor={Filzmaier Josef, Michael Sieberer}, %%
pdfsubject={Image Stitching, Auto-Focus, Sensor Dynamics, Perspective invariants}, %%
pdfcreator={Accomplished with LaTeX2e and pdfLaTeX with hyperref-package.}, %%
pdfproducer={}, %%
pdfkeywords={}, %%
pdfnewwindow=true, % links in new PDF window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=black, % color of internal links (change box color with linkbordercolor)
citecolor=black, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% user defined commands
%%%
%%% \mygraphics{}{}{}
%% usage: \mygraphics{width}{filename_without_extension}{caption}
%% example: \mygraphics{0.7\textwidth}{rolling_grandma}{This is my grandmother on inlinescates}
%% requires: package graphicx
%% provides: including centered pictures/graphics with a boldfaced caption below
%%
\newcommand{\mygraphics}[3]{
\begin{center}
\includegraphics[width=#1, keepaspectratio=true]{#2} \\
\textbf{#3}
\end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% define the titlepage
%%%
\subject{Image - Based Measurement Laboratory} %% subject which appears above titlehead
%\titlehead{} %% special heading for the titlepage
%%% author(s)
\author{Filzmaier Josef (1030462) \and
Michael Sieberer (1531366)}
%%% date
\date{Graz, \today{}}
% \publishers{}
% \thanks{} %% use it instead of footnotes (only on titlepage)
% \dedication{} %% generates a dedication-page after titlepage
%%% uncomment following lines, if you want to:
%%% reuse the maketitle-entries for hyperref-setup
%%\newcommand\org@maketitle{}
%%\let\org@maketitle\maketitle
%%\def\maketitle{%
%% \hypersetup{
%% pdftitle={\@title},
%% pdfauthor={\@author}
%% pdfsubject={\@subject}
%% }%
%% \org@maketitle
%%}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% set heading and footer
%%%
%%% scrheadings default:
%%% footer - middle: page number
\pagestyle{scrheadings}
%%% user specific
%%% usage:
%%% \position[heading/footer for the titlepage]{heading/footer for the rest of the document}
%%% heading - left
% \ihead[]{}
%%% heading - center
% \chead[]{}
%%% heading - right
% \ohead[]{}
%%% footer - left
% \ifoot[]{}
%%% footer - center
% \cfoot[]{}
%%% footer - right
% \ofoot[]{}
\renewcommand*{\thesection}{Exercise~\arabic{section}:}
\renewcommand*{\thesubsection}{\arabic{section}.\arabic{subsection}}
\setlength{\cftsecnumwidth}{6.0em}
\setlength\parindent{0pt}
\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
\definecolor{mylilas}{RGB}{170,55,241}
\lstset{language=Matlab,%
basicstyle=\ttfamily\footnotesize,breaklines=true,
breaklines=true,%
morekeywords={matlab2tikz},
keywordstyle=\color{blue},%
morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
identifierstyle=\color{black},%
stringstyle=\color{mylilas},
commentstyle=\color{mygreen},%
showstringspaces=false,%without this there will be a symbol in the places where there is a space
numbers=left,%
numberstyle={\tiny \color{black}},% size of the numbers
numbersep=9pt, % this defines how far the numbers are from the text
emph=[1]{for,end,break},emphstyle=[1]\color{red}, %some words to emphasise
captionpos=b,
%emph=[2]{word1,word2}, emphstyle=[2]{style},
}
\newcommand{\sidebysidepic}[6]{
\begin{figure}[ht!]%
\begin{subfigure}{.5\textwidth}%
\centering%
\includegraphics[width=.8\linewidth]{#1}%
\caption{#2}%
\end{subfigure}%
\begin{subfigure}{.5\textwidth}%
\centering%
\includegraphics[width=.8\linewidth]{#3}%
\caption{#4}%
\end{subfigure}%
\caption{#5}%
\label{#6}%
\end{figure}%
}