forked from AlexanderWillner/Review
-
Notifications
You must be signed in to change notification settings - Fork 1
/
review.config.tex
219 lines (202 loc) · 9.95 KB
/
review.config.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
% document configuration -------------------------------------------------------
\documentclass[
pagesize, % put paper size information into document
a4paper, % use a5paper for ISO A5; use a4paper for ISO A4
pdftex, % PDF output
fontsize=12pt, % font size
headsepline, % use headinclude also! (see M. Kohm)
footsepline, % use footinclude also! (see M. Kohm)
headinclude, % count head to text body (not to margin)
footinclude, % count foot to text body (not to margin)
BCOR8mm, % set extra margin for book fixation
headsepline, % line on the top
openany, % allows chapters to occur on left hand pages
titlepage, % show a title page
draft=false, % show under-/overfull boxes
DIV=calc % calculate a nice type area
%ngerman, % German language support
%numbers=noendperiod % no number at the end (German DUDEN)
]{scrbook}
% ------------------------------------------------------------------------------
% basic config -----------------------------------------------------------------
%\usepackage{CJKutf8} % Japanese language support
%\usepackage[ngerman]{babel} % German language support
%\usepackage{bibgerm} % German bibliography support
%\usepackage{bibtopic} % Bibliography: use more than one
\usepackage[numbers,square,longnamesfirst]{natbib} % Bibliography: style
%\usepackage{scrhack} % Fix some scrbook issues
\usepackage[printonlyused,withpage]{acronym} % Acronyms
\usepackage[Sonny]{fncychap} % Nice chapter header
\input{lib/resources/config/default} % Default config
%\usepackage[babel,german=quotes]{csquotes} % German language support
\usepackage{listings} % Nicer listings
\usepackage{ltxtable} % Long complex tables
\usepackage{wallpaper} % To show an icon on the first page
%\usepackage{minitoc} % ToC for chapters
%\dominitoc[n] % No caption for mini ToCs
\usepackage{enumitem} % For continuous enumerations
\addtokomafont{sectioning}{\rmfamily} % Serifs in headings
\ChNameVar{\Large\rmfamily} % Fancy chapter with serifs
\ChTitleVar{\Large\rmfamily} % Fancy chapter with serifs
\renewcommand*{\acsfont}[1]{{\rmfamily{#1}}}
%\renewcommand{\mtctitle}{Contents}
\renewcommand{\lstlistlistingname}{List of Algorithms}
\renewcommand{\lstlistingname}{Algorithm}
\input{glyphtounicode}
\pdfgentounicode=1
% ------------------------------------------------------------------------------
% more config ------------------------------------------------------------------
%\usepackage[switch*,modulo]{lineno} % Show line numbers
\usepackage{lmodern} % Nicer fonts (for all)
\usepackage{mathptmx} % Nicer fonts (for all) - times
%\usepackage[osf,sc]{mathpazo} % Nicer fonts (for all) - palatino
%\usepackage[scaled=.95]{helvet} % Nicer fonts (for captions) - palatino
%\usepackage{courier} % Nicer fonts (for text) - palatino
%\usepackage{mathptmx} % Nicer fonts (for math)
%\usepackage{tocbibind} % Show Table Of Content (TOC) in the TOC (do not use!)
%\usepackage[clearempty]{titlesec} % Suppress header and footer for empty pages
\usepackage{lipsum} % To add some dummy text
\usepackage{makeidx} % Make an index
\makeindex % Make an index
\definecolor{LinkColor}{rgb}{0,0,0} % Link color
\definecolor{MarginColor}{rgb}%
{.29,.03,.06} % Margin color
\definecolor{HighlightColor}{rgb}{0.3,0.6,0.9} % Highlight color
\newlength\cornerXoffset
\newlength\cornerYoffset
\setlength\cornerXoffset{0cm} % X
\setlength\cornerYoffset{2cm} % Y
\newcommand\ThisLROffsetCornerWallPaper[2]{%
\AddToShipoutPicture*{%
\AtPageLowerLeft{%
\parbox[b]{\paperwidth-\cornerXoffset}{%
\hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,%
keepaspectratio]{#2}%
\vspace{\cornerYoffset}\null
}
}
}
}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
% ------------------------------------------------------------------------------
% fix for old tex installations ------------------------------------------------
\makeatletter
\@ifundefined{float@listhead}{}{%
\renewcommand*{\lstlistoflistings}{%
\begingroup
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\float@listhead{\lstlistlistingname}%
\setlength{\parskip}{\z@}%
\setlength{\parindent}{\z@}%
\setlength{\parfillskip}{\z@ \@plus 1fil}%
\@starttoc{lol}%
\if@restonecol\twocolumn\fi
\endgroup
}%
}
\makeatother
% ------------------------------------------------------------------------------
% hyphenations -----------------------------------------------------------------
\hyphenation{Ge-samt-ozon %
Ma-the-ma-tisch %
Na-tur-wis-sen-schaft-lich-en}
% ------------------------------------------------------------------------------
% meta data --------------------------------------------------------------------
\newcommand{\metaType}{Template}
\newcommand{\metaWhy}{Paper review}
\newcommand{\metaArticle}{the}
\newcommand{\metaSubmitted}{submitted by}
\newcommand{\metaDate}{30.~September~2012}
\newcommand{\metaDateExam}{30.~September~2012}
\newcommand{\metaNumber}{2012-09}
\newcommand{\metaTitle}{todo: Paper Title}
\newcommand{\metaTitleShort}{\metaTitle}
\newcommand{\metaDegree}{M.Tmpl.}
\newcommand{\metaBirthplace}{Birthplace}
\newcommand{\metaAuthor}{Firstname Lastname}
\newcommand{\metaAuthorMail}{[email protected]}
\newcommand{\metaKeywords}{Latex, Thesis, Template}
\newcommand{\metaSubject}{Paper review}
\newcommand{\metaUniversity}{university name}
\newcommand{\metaFaculty}{faculty name}
\newcommand{\metaDepartment}{department name}
\newcommand{\metaCitycode}{12345}
\newcommand{\metaCity}{City}
\newcommand{\metaCountry}{Country}
\newcommand{\metaURL}{http://github.com/AlexanderWillner/ThesisTemplate}
\newcommand{\metaFirstReviewerName}{Prof. Dr. Firstname Lastname}
\newcommand{\metaFirstReviewerUniversity}{First University}
\newcommand{\metaSecondReviewerName}{Prof. Dr. John Doe}
\newcommand{\metaSecondReviewerUniversity}{Second University}
\newcommand{\metaAuthorShort}{\metaAuthor}
\newcommand{\metaConference}{Conference}
\newcommand{\metaConferenceArea}{Area}
\newcommand{\metaDedication}{Dedicated to...\\[1cm]%
Thank you for...}
% ------------------------------------------------------------------------------
% page layout ------------------------------------------------------------------
\usepackage{geometry}
\geometry{a4paper, bottom=4cm}
\renewcommand{\topfraction}{0.9}
\renewcommand{\bottomfraction}{0.9}
\renewcommand{\textfraction}{0.07} % allow minimal text w. figs
\renewcommand{\floatpagefraction}{0.7} % require fuller float pages
\renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
\renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
\renewcommand{\textfloatsep}{5mm}
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4} % 2 may work better
\setcounter{dbltopnumber}{2} % for 2-column pages
%\ChNameVar{\vspace*{-1in}\Large\sf}
%\ChNumVar{\vspace*{-1in}\Huge}
%\ChTitleVar{\vspace*{-1in}\Large\sf}
%\ChRuleWidth{0.5pt}
%\ChNameUpperCase
%\makeatletter
%\def\@makeschapterhead#1{%
% \vspace*{0\p@}
% {\parindent \z@ \raggedright
% \normalfont
% \interlinepenalty\@M
% \DOTIS{#1}
% \vskip 0\p@
% }}
%\makeatother
% ------------------------------------------------------------------------------
% hyperlinks (almost last package) ----------------------------------------------------
\usepackage[pdftex, % Hyperlinks in PDFs
raiselinks=true, % calculate real height of the link
breaklinks, % break links
%backref=page, % backlinks in bibliography (section, slide, page, none)
%pagebackref=true, % backlinks in bibliography
hyperindex=true, % backlinkex index
linktocpage=true, % ToC links pages
bookmarks=true, % Bookmarks for PDF viewers
bookmarksopen=true, % Open bookmarks
bookmarksopenlevel=1, % How many levels to open
bookmarksnumbered=true, % Numbers in the bookmarks
bookmarkstype=toc, % Type of bookmark
plainpages=false, % Anchors even on plain pages?
pageanchor=true, % Pages are linkable
pdfstartview=FitH, % Open document with Fit Width
pdfpagelabels=true, % set PDF page labels
pdfpagemode=UseOutlines, % Show bookmarks in viewer
colorlinks, % Show colored links
linkcolor=LinkColor, % Link color
urlcolor=LinkColor, % URL color
anchorcolor=LinkColor, % Anchor color
citecolor=LinkColor, % Cite color
menucolor=LinkColor, % Menu color
hypertexnames=true % Whatever ;)
]{hyperref} % Use hyperlinks
%\renewcommand*{\backref}[1]{[cited at page #1]} % Show formatted backlinks
% ------------------------------------------------------------------------------
% pdf meta data ----------------------------------------------------------------
\input{lib/resources/config/pdfmetadata}
% ------------------------------------------------------------------------------