mirror of
https://sharelatex.tu-darmstadt.de/git/681e0e7a3a9c7c9c6b8bb298
synced 2025-12-07 05:08:01 +00:00
200 lines
8.8 KiB
TeX
200 lines
8.8 KiB
TeX
% !TeX root = ./Thesis.tex
|
|
|
|
% ****************************************************************************************************
|
|
% ClassicThesisConfig.tex
|
|
% formerly known as loadpackages.sty, classicthesis-ldpkg.sty, and classicthesis-preamble.sty
|
|
% Use it at the beginning of your ClassicThesis.tex, or as a LaTeX Preamble
|
|
% in your ClassicThesis.{tex,lyx} with \input{ClassicThesisConfig}
|
|
% ****************************************************************************************************
|
|
% If you like the classicthesis, then I would appreciate a postcard.
|
|
% My address can be found in the file ClassicThesis.pdf. A collection
|
|
% of the postcards I received so far is available online at
|
|
% http://postcards.miede.de
|
|
% ****************************************************************************************************
|
|
|
|
|
|
% ****************************************************************************************************
|
|
% 0. Set the encoding of your files. UTF-8 is the only sensible encoding nowadays. If you can't read
|
|
% äöüßáéçèê∂åëæƒÏ€ then change the encoding setting in your editor, not the line below. If your editor
|
|
% does not support utf8 use another editor!
|
|
% ****************************************************************************************************
|
|
\PassOptionsToPackage{utf8}{inputenc}
|
|
\usepackage{inputenc}
|
|
|
|
\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
|
|
\usepackage{fontenc}
|
|
|
|
|
|
% ****************************************************************************************************
|
|
% 1. Configure classicthesis for your needs here, e.g., remove "drafting" below
|
|
% in order to deactivate the time-stamp on the pages
|
|
% (see ClassicThesis.pdf for more information):
|
|
% ****************************************************************************************************
|
|
\PassOptionsToPackage{
|
|
drafting=false, % print version information on the bottom of the pages
|
|
tocaligned=false, % the left column of the toc will be aligned (no indentation)
|
|
dottedtoc=true, % page numbers in ToC flushed right
|
|
eulerchapternumbers=true, % use AMS Euler for chapter font (otherwise Palatino)
|
|
linedheaders=false, % chaper headers will have line above and beneath
|
|
floatperchapter=false, % numbering per chapter for all floats (i.e., Figure 1.1)
|
|
eulermath=true, % use awesome Euler fonts for mathematical formulae (only with pdfLaTeX)
|
|
beramono=true, % toggle a nice monospaced font (w/ bold)
|
|
palatino=true, % deactivate standard font for loading another one, see the last section at the end of this file for suggestions
|
|
style=classicthesis % classicthesis, arsclassica
|
|
}{classicthesis}
|
|
|
|
|
|
% ********************************************************************
|
|
% Setup, finetuning, and useful commands
|
|
% ********************************************************************
|
|
\providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
|
|
% ****************************************************************************************************
|
|
|
|
|
|
% ****************************************************************************************************
|
|
% 3. Loading some handy packages
|
|
% Some of these might require adjustments
|
|
% ****************************************************************************************************
|
|
\PassOptionsToPackage{ngerman,american}{babel} % change this to your language(s), main language last
|
|
% Spanish languages need extra options in order to work with this template
|
|
%\PassOptionsToPackage{spanish,es-lcroman}{babel}
|
|
\usepackage{babel}
|
|
|
|
\PassOptionsToPackage{autostyle=true}{csquotes}
|
|
\usepackage{csquotes}
|
|
\PassOptionsToPackage{%
|
|
backend=biber,bibencoding=utf8, % instead of bibtex
|
|
sorting=nyt, % name, year, title
|
|
maxbibnames=10, % default: 3, et al.
|
|
defernumbers=true, % enable so split references (author's publications) have continuous numbers
|
|
natbib=true, % natbib compatibility mode (\citep and \citet still work)
|
|
language=auto,
|
|
style=numeric-comp
|
|
}{biblatex}
|
|
\usepackage{biblatex}
|
|
|
|
\PassOptionsToPackage{fleqn}{amsmath} % math environments and more by the AMS
|
|
\usepackage{amsmath}
|
|
|
|
% ********************************************************************
|
|
% Generally useful packages
|
|
% ********************************************************************
|
|
\usepackage{graphicx}
|
|
\usepackage{scrhack} % fix warnings when using KOMA with listings package
|
|
\usepackage{xspace} % to get the spacing after macros right
|
|
\PassOptionsToPackage{style=long,nopostdot,acronym,shortcuts,nonumberlist,nolist}{glossaries}
|
|
\usepackage{glossaries}
|
|
\makeglossaries
|
|
|
|
|
|
% ****************************************************************************************************
|
|
% 4. Setup floats: tables, (sub)figures, and captions
|
|
% ****************************************************************************************************
|
|
\usepackage{tabularx} % better tables
|
|
\setlength{\extrarowheight}{3pt} % increase table row height
|
|
\newcommand{\tableheadline}[1]{\multicolumn{1}{@{}l@{}}{\spacedlowsmallcaps{#1}}}
|
|
\newcommand{\myfloatalign}{\centering} % to be used with each float for alignment
|
|
\usepackage{subcaption}
|
|
\usepackage{caption}
|
|
% ****************************************************************************************************
|
|
|
|
|
|
% ****************************************************************************************************
|
|
% 5. Setup code listings
|
|
% ****************************************************************************************************
|
|
\usepackage{listings}
|
|
\lstset{
|
|
% color scheme follows template
|
|
commentstyle=\color{CTsemi},
|
|
keywordstyle={\color{CTtitle}},
|
|
stringstyle=\color{CTcitation},
|
|
basicstyle=\ttfamily\lst@ifdisplaystyle\small\fi, % use normal font size in \lstinline
|
|
emphstyle={\color{CTlink}},
|
|
tabsize=2,
|
|
showstringspaces=false,
|
|
captionpos=b, % caption below listing
|
|
breaklines=true,
|
|
frame=tb,
|
|
numberstyle=\scriptsize,
|
|
numbers=left,
|
|
stepnumber=1,
|
|
numbersep=8pt,
|
|
}
|
|
% ****************************************************************************************************
|
|
|
|
|
|
|
|
|
|
% ****************************************************************************************************
|
|
% 6. Last calls before the bar closes
|
|
% Her Majesty herself
|
|
% ********************************************************************
|
|
\usepackage{classicthesis}
|
|
|
|
|
|
% ********************************************************************
|
|
% Fine-tune hyperreferences (hyperref should be called last)
|
|
% ********************************************************************
|
|
\hypersetup{%
|
|
% -- TemplateKnob
|
|
%draft, % hyperref's draft mode. For printing, uncomment the next line (to have black links)
|
|
%colorlinks=false, linktocpage=false, pdfstartpage=3, pdfstartview=FitV, pdfborder={0 0 0},%
|
|
colorlinks=true,
|
|
linktocpage=true,
|
|
breaklinks=true,
|
|
pageanchor=true,
|
|
plainpages=false,
|
|
bookmarksnumbered,
|
|
bookmarksopen=true,
|
|
bookmarksopenlevel=1,
|
|
hypertexnames=true,
|
|
urlcolor=CTurl,
|
|
linkcolor=CTlink,
|
|
citecolor=CTcitation,
|
|
pdftitle={\myTitle{}},
|
|
pdfauthor={\myName{}},
|
|
}
|
|
|
|
|
|
% ********************************************************************
|
|
% Setup autoreferences (hyperref and babel)
|
|
% ********************************************************************
|
|
% There are some issues regarding autorefnames
|
|
% http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords
|
|
% you have to redefine the macros for the
|
|
% language you use, e.g., american, ngerman
|
|
% (as chosen when loading babel/AtBeginDocument)
|
|
% ********************************************************************
|
|
\makeatletter
|
|
\@ifpackageloaded{babel}
|
|
{
|
|
\addto\extrasamerican{
|
|
\renewcommand*{\figureautorefname}{Figure}
|
|
\renewcommand*{\tableautorefname}{Table}
|
|
\renewcommand*{\partautorefname}{Part}
|
|
\renewcommand*{\chapterautorefname}{Chapter}
|
|
\renewcommand*{\sectionautorefname}{Section}
|
|
\renewcommand*{\subsectionautorefname}{Section}
|
|
\renewcommand*{\subsubsectionautorefname}{Section}
|
|
}
|
|
\addto\extrasngerman{
|
|
\renewcommand*{\paragraphautorefname}{Absatz}
|
|
\renewcommand*{\subparagraphautorefname}{Unterabsatz}
|
|
\renewcommand*{\footnoteautorefname}{Fu\"snote}
|
|
\renewcommand*{\FancyVerbLineautorefname}{Zeile}
|
|
\renewcommand*{\theoremautorefname}{Theorem}
|
|
\renewcommand*{\appendixautorefname}{Anhang}
|
|
\renewcommand*{\equationautorefname}{Gleichung}
|
|
\renewcommand*{\itemautorefname}{Punkt}
|
|
}
|
|
% Fix to getting autorefs for subfigures right (thanks to Belinda Vogt for changing the definition)
|
|
\providecommand{\subfigureautorefname}{\figureautorefname}
|
|
}{\relax}
|
|
\makeatother
|
|
|
|
|
|
% ********************************************************************
|
|
% Development Stuff
|
|
% ********************************************************************
|
|
\listfiles
|