-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01Preamble.tex
152 lines (113 loc) · 4.22 KB
/
01Preamble.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Some custom packages
%%
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
\RequirePackage{stmaryrd}
\RequirePackage{xspace}
\RequirePackage{minted}
\RequirePackage{cleveref}
\RequirePackage{syntax}
\RequirePackage{tikz}
\usetikzlibrary{snakes,arrows,shapes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Minted stuff
\newminted{java}{linenos}
\newmint{java}{linenos}
\newmintinline{java}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Fonts (like different typewriter fonts etc.)
%%
%\RequirePackage[scaled=.87]{couriers}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
%\renewcommand\rmdefault{psb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Style (Changing the visual style of chapter headings and stuff.)
%%
\RequirePackage{titlesec}
\newcommand{\PreContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\Large}
{\Large\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{1ex}
{}
[\vspace{1ex}\titlerule]}
\newcommand{\ContentTitleFormat}{\titleformat{\chapter}[display]{\scshape\huge}
{\Large\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{1ex}
{\titlerule\vspace{1ex}\filright}
[\vspace{1ex}\titlerule]}
\newcommand{\PostContentTitleFormat}{\PreContentTitleFormat}
\PreContentTitleFormat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Bibliography (special style etc.)
%%
\RequirePackage[numbers,sort&compress]{natbib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Theorems, definitions, and examples
%%
\RequirePackage{amsthm}
\newtheorem{theorem}{Theorem}[chapter]
\theoremstyle{definition}
\newtheorem{definition}{Definition}[chapter]
\newtheorem{algorithm}{Algorithm}[chapter]
\theoremstyle{remark}
\newtheorem{remark}{Remark}[chapter]
%% Support for `Examples` (provides a counter for examples, the possibility to
%% label and reference them etc.)
%%
\newtheorem{example}{Example}[chapter]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Captions: This makes captions of figures use a boldfaced small font.
%%
\RequirePackage[small,bf]{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Subfigure (note: this must be included after the `caption` package).
%%
\RequirePackage{subfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Content commands
%%
\RequirePackage{enumitem}
\newenvironment{case}{%
\let\olditem\item%
\renewcommand\item[1][]{\olditem \textbf{##1} \\}%
\begin{enumerate}[label=\textbf{Case \arabic*:},itemindent=*,leftmargin=0em]}{\end{enumerate}%
}
\RequirePackage{bcprules}
\RequirePackage{booktabs}
\newcommand{\Dom}{\operatorname{Dom}}
\newcommand{\Matching}{\operatorname{access}}
%%%% FONTS
\RequirePackage{fontspec} % support opentype text fonts
\RequirePackage{unicode-math} % support opentype math fonts
\setmainfont[% main rm
Path=lucidaot/,
Ligatures=TeX,
ItalicFont=LucidaBrightOT-Italic.otf,
BoldFont=LucidaBrightOT-Demi.otf,
BoldItalicFont=LucidaBrightOT-DemiItalic.otf,
]{LucidaBrightOT.otf}
%
\setsansfont[% main sans
Path=lucidaot/,
Ligatures=TeX,
ItalicFont=LucidaSansOT-Italic.otf,
BoldFont=LucidaSansOT-Demi.otf,
BoldItalicFont=LucidaSansOT-DemiItalic.otf,
]{LucidaSansOT.otf}
\setmonofont[% main typewriter
Path=lucidaot/,
ItalicFont=LucidaSansTypewriterOT-Oblique.otf,
BoldFont=LucidaSansTypewriterOT-Bold.otf,
BoldItalicFont=LucidaSansTypewriterOT-BoldOblique.otf,
]{LucidaSansTypewriterOT.otf}
%
\setmathfont[Path=lucidaot/,RawFeature={+ss01}]{LucidaBrightMathOT.otf}
\setmathfont[Path=lucidaot/,RawFeature={+ss01},version=bold]{LucidaBrightMathOT-Demi}
\setmathfont[range={\mathcal,\mathbfcal},Path=lucidaot/]{LucidaCalligraphyOT.otf}
% %
% % The specialized one-off fonts:
\newfontface\LucidaBlackletter[Path=lucidaot/]{LucidaBlackletterOT.otf}
\newfontface\LucidaCalligraphy[Path=lucidaot/]{LucidaCalligraphyOT.otf}
\newfontface\LucidaHandwriting[Path=lucidaot/]{LucidaHandwritingOT.otf}