preamble.tex 4.27 KB
Newer Older
1
2
%! TEX program = lualatex

Felix Hilsky's avatar
Felix Hilsky committed
3
4
\documentclass[%
  twoside,%
Felix Hilsky's avatar
Felix Hilsky committed
5
6
  abstract=true,%
  headheight=27.2pt%
Felix Hilsky's avatar
Felix Hilsky committed
7
]{scrartcl}
8
\usepackage{geometry}
9
10
11
12
13
14
%   \RedeclareSectionCommand % das kommt vom KOMA-Skript
%     [beforeskip=-1.5ex plus -.1ex minus -.1ex,
%      afterskip=.5ex plus .1ex minus .1ex]{section}
%   \RedeclareSectionCommand
%     [beforeskip=-1.5ex plus -.1ex minus -.1ex,
%      afterskip=.5ex plus .1ex minus .1ex]{subsection}
15
16
17
18
19
20

% cannot happen in packages since it has to work during package loading:
% (and it is really not a fault of the packages but the calling)
\usepackage{silence}                  % Package that lets ignore warnings and errors for using packages in subdirectories
\WarningFilter{latex}{You have requested package `.maindir/tex/header/}

21
\usepackage{.maindir/tex/header/stdmath} % , scriptLetters
22
23
24
25
26
27
28

\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono}
\setmathfont{Latin Modern Math}

\addbibresource{.maindir/tex/bibliography.bib}
Felix's avatar
Felix committed
29

30
\usepackage[dvipsnames]{xcolor} % for colors like blue!30 and \textcolor and \colorbox
31
\hypersetup{%
Felix Hilsky's avatar
Felix Hilsky committed
32
  pdftitle={Master thesis},
Felix's avatar
Felix committed
33
  pdfauthor={Felix Hilsky},
Felix Hilsky's avatar
Felix Hilsky committed
34
  pdfsubject={Orientability in Nematic Liquid Crystals Models on Surfaces},
Felix's avatar
Felix committed
35
36
  pdfcreator={LuaLaTeX},
  pdfproducer={LuaLaTeX via latexmk},
Felix Hilsky's avatar
Felix Hilsky committed
37
  pdfkeywords={Orientability, Liquid Crystals, Manifolds, Surfaces, Q-Tensors, Landau-de-Gennes, Frank-Oseen},
Felix's avatar
Felix committed
38
  pdfdisplaydoctitle={true},
39
40
  pdfencoding={auto},
  linkbordercolor={Gray!40}
Felix's avatar
Felix committed
41
}
42

43
44
45
\allowdisplaybreaks[1]  % see https://texdoc.org/serve/amsldoc.pdf/0 page 10
% allows page breaks, but tries to avoid them in multiline formulas

46
47
48
\usepackage[headsepline]{scrlayer-scrpage}
\ihead{Version: \textinput{current-commit}}

Felix Hilsky's avatar
Felix Hilsky committed
49
\setcounter{secnumdepth}{6}  % also number paragraphs and subparagraphs
50
51
52
53
% cleveref needs to be told what paragraphs are called
\crefname{paragraph}{Paragraph}{Paragraphs}  % capitalised because we always have it capitalised
\Crefname{paragraph}{Paragraph}{Paragraphs}
% capitalised version is done automatically
Felix Hilsky's avatar
Felix Hilsky committed
54
\setcounter{tocdepth}{6}    % also include them in the table of contents
55
% Abkürzunngen
56
57
\newcommand{\isom}{\cong}  % isomorphic (spaces)

58
59
\newcommand*{\tanvec}[2][]{\frac{∂#1}{∂#2}}  % tangent vector
\newcommand*{\tanvecat}[3][]{\rest{\tanvec[#1]{#2}}{#3}}  % tangent vector at point
Felix Hilsky's avatar
Felix Hilsky committed
60
61
\DeclareMathOperator{\tr}{tr}  % trace: sum of diagonal entries
\DeclareMathOperator{\Tr}{Tr}  % Trace: generalized boundary values
Felix's avatar
Felix committed
62
\DeclareMathOperator{\diam}{diam}  % diameter: greatest distance between two points within a metric space
63
64
65
\AtBeginDocument{\renewcommand*{\div}{\operatorname{div}}}  % divergence, originally \div = division symbol
\newcommand*{\without}{\mathbin{\backslash}}
\newcommand*{\loc}{\text{loc}}
66
67

% complex conjugate:
68
\newcommand*{\cconj}{\overline}
Felix Hilsky's avatar
Felix Hilsky committed
69
% this needs to be done at begin{document} since unicode math otherwise overwrites it at begin document, as document under section 6.2 in its documentation
70
71
% weitere Befehle

Felix Hilsky's avatar
Felix Hilsky committed
72
% Für Propositionen dieses environment:
73
\newtheorem{proposition}[theorem]{Proposition}
74
% Typografisches
Felix Hilsky's avatar
Felix Hilsky committed
75
\hyphenation{mani-fold}
Felix Hilsky's avatar
Felix Hilsky committed
76
\hyphenation{mani-folds}
77
\hyphenation{sub-mani-fold}
Felix Hilsky's avatar
Felix Hilsky committed
78
\hyphenation{sub-mani-folds}
Felix Hilsky's avatar
words    
Felix Hilsky committed
79
\hyphenation{pro-po-si-tion} % before: Propos-ition, ugh!
Felix Hilsky's avatar
Felix Hilsky committed
80
81
82
83

% abbreviations need spacing and it's annoying to type it again and again
\usepackage{xspace}
% see https://tex.stackexchange.com/a/2230/236694
84
85
86
87
88
\newcommand*{\ie}{i.\,e.\@\xspace}
\newcommand*{\Ie}{I.\,e.\@\xspace}
\newcommand*{\eg}{for example\@\xspace}
\newcommand*{\Eg}{For example\@\xspace}
\renewcommand*{\ae}{a.\,e.\@\xspace} % maybe rather almost everywhere spelled out?
Felix Hilsky's avatar
Felix Hilsky committed
89
% \ae was æ but that should be typed with unicode
90
\newcommand*{\Ae}{A.\,e.\@\xspace} % maybe rather almost everywhere spelled out?
Felix Hilsky's avatar
Felix Hilsky committed
91
% apparently \Ae is not Æ, probably it's \AE
92
93

% my spaces
94
95
\newcommand*{\consob}[1][q]{W^{\!\!,#1}}  % Sobolev space with respect to the connection
\newcommand*{\secsob}[1][q]{Γ_{\consob[#1]}}   % Sobolev space of section (with respect to connection)
Felix Hilsky's avatar
Felix Hilsky committed
96
97
98

\usepackage{enumitem}

99
\usepackage{soul} % for highlighting
100
101
\DeclareRobustCommand{\todo}[1]{\textcolor{Blue}{\textbf{\footnotemark}}\footnotetext{\sethlcolor{SkyBlue}\hl{#1}}}
\DeclareRobustCommand{\ask}[1]{\textcolor{BrickRed}{\textbf{\footnotemark}}\footnotetext{\sethlcolor{Lavender}\hl{#1}}}
102

Felix's avatar
Felix committed
103
\hfuzz=3cm
Felix Hilsky's avatar
Felix Hilsky committed
104
\overfullrule=2cm   % marks overfull lines with black box