Debian Codegraph @

texmf-dist/doc/latex/classicthesis/classicthesis-config.tex

raw
1 % ****************************************************************************************************
2 % classicthesis-config.tex
3 % formerly known as loadpackages.sty, classicthesis-ldpkg.sty, and classicthesis-preamble.sty
4 % Use it at the beginning of your ClassicThesis.tex, or as a LaTeX Preamble
5 % in your ClassicThesis.{tex,lyx} with \input{classicthesis-config}
6 % ****************************************************************************************************
7 % If you like the classicthesis, then I would appreciate a postcard.
8 % My address can be found in the file ClassicThesis.pdf. A collection
9 % of the postcards I received so far is available online at
10 % http://postcards.miede.de
11 % ****************************************************************************************************
12
13
14 % ****************************************************************************************************
15 % 0. Set the encoding of your files. UTF-8 is the only sensible encoding nowadays. If you can't read
16 % äöüßáéçèê∂åëæƒÏ€ then change the encoding setting in your editor, not the line below. If your editor
17 % does not support utf8 use another editor!
18 % ****************************************************************************************************
19 \PassOptionsToPackage{utf8}{inputenc}
20 \usepackage{inputenc}
21
22 \PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
23 \usepackage{fontenc}
24
25
26 % ****************************************************************************************************
27 % 1. Configure classicthesis for your needs here, e.g., remove "drafting" below
28 % in order to deactivate the time-stamp on the pages
29 % (see ClassicThesis.pdf for more information):
30 % ****************************************************************************************************
31 \PassOptionsToPackage{
32 drafting=true, % print version information on the bottom of the pages
33 tocaligned=false, % the left column of the toc will be aligned (no indentation)
34 dottedtoc=false, % page numbers in ToC flushed right
35 eulerchapternumbers=false, % use AMS Euler for chapter font (otherwise Palatino)
36 floatperchapter=true, % numbering per chapter for all floats (i.e., Figure 1.1)
37 eulermath=false, % use awesome Euler fonts for mathematical formulae (only with pdfLaTeX)
38 beramono=true, % toggle a nice monospaced font (w/ bold)
39 palatino=true, % deactivate standard font for loading another one, see the last section at the end of this file for suggestions
40 %linedheaders=true, % obsolete / available for backwards compatibility
41 style=classicthesis % classicthesis, arsclassica, linedheaders, plain
42 }{classicthesis}
43
44 % ****************************************************************************************************
45 % 2. Personal data and user ad-hoc commands (insert your own data here)
46 % ****************************************************************************************************
47 \newcommand{\myTitle}{A Classic Thesis Style\xspace}
48 \newcommand{\mySubtitle}{An Homage to The Elements of Typographic Style\xspace}
49 \newcommand{\myDegree}{Doktor-Ingenieur (Dr.-Ing.)\xspace}
50 \newcommand{\myName}{André Miede \& Ivo Pletikosić\xspace}
51 \newcommand{\myProf}{Put name here\xspace}
52 \newcommand{\myOtherProf}{Put name here\xspace}
53 \newcommand{\mySupervisor}{Put name here\xspace}
54 \newcommand{\myFaculty}{Put data here\xspace}
55 \newcommand{\myDepartment}{Put data here\xspace}
56 \newcommand{\myUni}{Put data here\xspace}
57 \newcommand{\myLocation}{Saarbrücken\xspace}
58 \newcommand{\myTime}{February 2025\xspace}
59 \newcommand{\myVersion}{\classicthesis}
60
61 % ********************************************************************
62 % Setup, finetuning, and useful commands
63 % ********************************************************************
64 \providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
65 \newcommand{\ie}{i.\,e.}
66 \newcommand{\Ie}{I.\,e.}
67 \newcommand{\eg}{e.\,g.}
68 \newcommand{\Eg}{E.\,g.}
69 % ****************************************************************************************************
70
71
72 % ****************************************************************************************************
73 % 3. Loading some handy packages
74 % ****************************************************************************************************
75 % ********************************************************************
76 % Packages with options that might require adjustments
77 % ********************************************************************
78 \PassOptionsToPackage{ngerman,american}{babel} % change this to your language(s), main language last
79 % Spanish languages need extra options in order to work with this template
80 %\PassOptionsToPackage{spanish,es-lcroman}{babel}
81 \usepackage{babel}
82
83 \usepackage{csquotes}
84 \PassOptionsToPackage{%
85 %backend=biber,bibencoding=utf8, %instead of bibtex
86 backend=bibtex8,bibencoding=auto,% ascii
87 language=auto,%
88 style=numeric-comp,%
89 %style=authoryear-comp, % Author 1999, 2010
90 %bibstyle=authoryear,dashed=false, % dashed: substitute rep. author with ---
91 sorting=nyt, % name, year, title
92 maxbibnames=10, % default: 3, et al.
93 %backref=true,%
94 natbib=true % natbib compatibility mode (\citep and \citet still work)
95 }{biblatex}
96 \usepackage{biblatex}
97
98 \PassOptionsToPackage{fleqn}{amsmath} % math environments and more by the AMS
99 \usepackage{amsmath}
100
101 % ********************************************************************
102 % General useful packages
103 % ********************************************************************
104 \usepackage{graphicx} %
105 \usepackage{scrhack} % fix warnings when using KOMA with listings package
106 \usepackage{xspace} % to get the spacing after macros right
107 \PassOptionsToPackage{printonlyused,smaller}{acronym}
108 \usepackage{acronym} % nice macros for handling all acronyms in the thesis
109 %\renewcommand{\bflabel}[1]{{#1}\hfill} % fix the list of acronyms --> no longer working
110 %\renewcommand*{\acsfont}[1]{\textsc{#1}}
111 %\renewcommand*{\aclabelfont}[1]{\acsfont{#1}}
112 %\def\bflabel#1{{#1\hfill}}
113 \def\bflabel#1{{\acsfont{#1}\hfill}}
114 \def\aclabelfont#1{\acsfont{#1}}
115 % ****************************************************************************************************
116 %\usepackage{pgfplots} % External TikZ/PGF support (thanks to Andreas Nautsch)
117 %\usetikzlibrary{external}
118 %\tikzexternalize[mode=list and make, prefix=ext-tikz/]
119 % ****************************************************************************************************
120
121
122 % ****************************************************************************************************
123 % 4. Setup floats: tables, (sub)figures, and captions
124 % ****************************************************************************************************
125 \usepackage{tabularx} % better tables
126 \setlength{\extrarowheight}{3pt} % increase table row height
127 \newcommand{\tableheadline}[1]{\multicolumn{1}{l}{\spacedlowsmallcaps{#1}}}
128 \newcommand{\myfloatalign}{\centering} % to be used with each float for alignment
129 \usepackage{subfig}
130 % ****************************************************************************************************
131
132
133 % ****************************************************************************************************
134 % 5. Setup code listings
135 % ****************************************************************************************************
136 \usepackage{listings}
137 %\lstset{emph={trueIndex,root},emphstyle=\color{BlueViolet}}%\underbar} % for special keywords
138 \lstset{language=[LaTeX]Tex,%C++,
139 morekeywords={PassOptionsToPackage,selectlanguage},
140 keywordstyle=\color{RoyalBlue},%\bfseries,
141 basicstyle=\small\ttfamily,
142 %identifierstyle=\color{NavyBlue},
143 commentstyle=\color{Green}\ttfamily,
144 stringstyle=\rmfamily,
145 numbers=none,%left,%
146 numberstyle=\scriptsize,%\tiny
147 stepnumber=5,
148 numbersep=8pt,
149 showstringspaces=false,
150 breaklines=true,
151 %frameround=ftff,
152 %frame=single,
153 belowcaptionskip=.75\baselineskip
154 %frame=L
155 }
156 % ****************************************************************************************************
157
158
159 % ****************************************************************************************************
160 % 6. Last calls before the bar closes
161 % ****************************************************************************************************
162 % ********************************************************************
163 % Her Majesty herself
164 % ********************************************************************
165 \PassOptionsToPackage{hyperfootnotes=false}{hyperref}
166 \usepackage{classicthesis}
167
168
169 % ********************************************************************
170 % Fine-tune hyperreferences (hyperref should be called last)
171 % ********************************************************************
172 \hypersetup{%
173 %draft, % hyperref's draft mode, for printing see below
174 colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%
175 % uncomment the following line if you want to have black links (e.g., for printing)
176 %colorlinks=false, linktocpage=false, pdfstartpage=3, pdfstartview=FitV, pdfborder={0 0 0},%
177 breaklinks=true, pageanchor=true,%
178 pdfpagemode=UseNone, %
179 % pdfpagemode=UseOutlines,%
180 plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
181 hypertexnames=true, pdfhighlight=/O,%nesting=true,%frenchlinks,%
182 urlcolor=CTurl, linkcolor=CTlink, citecolor=CTcitation, %pagecolor=RoyalBlue,%
183 %urlcolor=Black, linkcolor=Black, citecolor=Black, %pagecolor=Black,%
184 pdftitle={\myTitle},%
185 pdfauthor={\textcopyright\ \myName, \myUni, \myFaculty},%
186 pdfsubject={},%
187 pdfkeywords={},%
188 pdfcreator={pdfLaTeX},%
189 pdfproducer={LaTeX with hyperref and classicthesis}%
190 }
191
192
193 % ********************************************************************
194 % Setup autoreferences (hyperref and babel)
195 % ********************************************************************
196 % There are some issues regarding autorefnames
197 % http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords
198 % you have to redefine the macros for the
199 % language you use, e.g., american, ngerman
200 % (as chosen when loading babel/AtBeginDocument)
201 % ********************************************************************
202 \makeatletter
203 \@ifpackageloaded{babel}%
204 {%
205 \addto\extrasamerican{%
206 \renewcommand*{\figureautorefname}{Figure}%
207 \renewcommand*{\tableautorefname}{Table}%
208 \renewcommand*{\partautorefname}{Part}%
209 \renewcommand*{\chapterautorefname}{Chapter}%
210 \renewcommand*{\sectionautorefname}{Section}%
211 \renewcommand*{\subsectionautorefname}{Section}%
212 \renewcommand*{\subsubsectionautorefname}{Section}%
213 }%
214 \addto\extrasngerman{%
215 \renewcommand*{\paragraphautorefname}{Absatz}%
216 \renewcommand*{\subparagraphautorefname}{Unterabsatz}%
217 \renewcommand*{\footnoteautorefname}{Fu\"snote}%
218 \renewcommand*{\FancyVerbLineautorefname}{Zeile}%
219 \renewcommand*{\theoremautorefname}{Theorem}%
220 \renewcommand*{\appendixautorefname}{Anhang}%
221 \renewcommand*{\equationautorefname}{Gleichung}%
222 \renewcommand*{\itemautorefname}{Punkt}%
223 }%
224 % Fix to getting autorefs for subfigures right (thanks to Belinda Vogt for changing the definition)
225 \providecommand{\subfigureautorefname}{\figureautorefname}%
226 }{\relax}
227 \makeatother
228
229 % (Better) alternative to \autoref is \cref via the cleveref package
230 %\usepackage{cleveref}
231 %\crefformat{part}{Part #2\MakeUppercase{#1}#3}
232
233
234 % ********************************************************************
235 % Development Stuff
236 % ********************************************************************
237 \listfiles
238 %\PassOptionsToPackage{l2tabu,orthodox,abort}{nag}
239 % \usepackage{nag}
240 %\PassOptionsToPackage{warning, all}{onlyamsmath}
241 % \usepackage{onlyamsmath}
242
243
244 % ****************************************************************************************************
245 % 7. Further adjustments (experimental)
246 % ****************************************************************************************************
247 % ********************************************************************
248 % Changing the text area
249 % ********************************************************************
250 %\areaset[current]{312pt}{761pt} % 686 (factor 2.2) + 33 head + 42 head \the\footskip
251 %\setlength{\marginparwidth}{7em}%
252 %\setlength{\marginparsep}{2em}%
253
254 % ********************************************************************
255 % Using different fonts
256 % ********************************************************************
257 %\usepackage[oldstylenums]{kpfonts} % oldstyle notextcomp
258 % \usepackage[osf]{libertine}
259 %\usepackage[light,condensed,math]{iwona}
260 %\renewcommand{\sfdefault}{iwona}
261 %\usepackage{lmodern} % <-- no osf support :-(
262 %\usepackage{cfr-lm} %
263 %\usepackage[urw-garamond]{mathdesign} <-- no osf support :-(
264 %\usepackage[default,osfigures]{opensans} % scale=0.95
265 %\usepackage[sfdefault]{FiraSans}
266 % \usepackage[opticals,mathlf]{MinionPro} % onlytext
267 % ********************************************************************
268 %\usepackage[largesc,osf]{newpxtext}
269 %\linespread{1.05} % a bit more for Palatino
270 % Used to fix these:
271 % https://bitbucket.org/amiede/classicthesis/issues/139/italics-in-pallatino-capitals-chapter
272 % https://bitbucket.org/amiede/classicthesis/issues/45/problema-testatine-su-classicthesis-style
273 % ********************************************************************
274 % ****************************************************************************************************