-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpkgs.tex
151 lines (122 loc) · 3.56 KB
/
pkgs.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
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\RequirePackage{amsthm}
\RequirePackage[backend=biber]{biblatex}
\RequirePackage[pagestyles]{titlesec}
\RequirePackage{xcolor}
\RequirePackage{titletoc}
\RequirePackage{hyperref}
\hypersetup{
colorlinks = true,
linkcolor = green!50!black,
anchorcolor = green!50!black,
citecolor = green!50!black,
filecolor = green!50!black,
urlcolor = green!50!black
}
\RequirePackage{graphicx}
\RequirePackage{subcaption}
\renewcommand{\figurename}{Fig.}
\renewcommand{\contentsname}{Contents.}
\renewcommand{\listfigurename}{List of figures.}
\DeclareCaptionFormat{custom}
{%
{\footnotesize{\lsstylehelp{150}\scshape{{#1#2}}}\textit{#3}}
}
\captionsetup{format=custom}
\RequirePackage{enumitem}
\RequirePackage{tabularx}
\RequirePackage{mathrsfs}
% Only list chapters and sections in the ToC
\setcounter{tocdepth}{1}
% Section format in ToC
\titlecontents{section}
[0pt]
{}
{\quad}
{}
{\titlerule*[1pc]{.}\contentspage}
\RequirePackage{fancyhdr}
\RequirePackage{extramarks}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[LE,RO]{\footnotesize\thepage}
\fancyhead[CE]{\scshape \MakeLowercase{\leftmark}}
\fancyhead[CO]{\scshape\MakeLowercase{\rightmark}}
\makeatletter
\renewcommand{\chaptermark}[1]{%
\markboth{%
\ifnum\c@secnumdepth>\m@ne
\@chapapp\ {\small\thechapter}. \ %
\fi
#1%
}{}%
}
\makeatother
\makeatletter
\renewcommand{\chaptermark}[1]{%
\markboth{\thechapter.\ #1}{}}
% unnumbered chapters in the header
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\small #1}}
\renewcommand{\thepage}{\footnotesize\arabic{page}}
\makeatother
\RequirePackage[norule,symbol,perpage]{footmisc}
\RequirePackage{microtype}
\SetTracking{encoding=*, shape=sc}{60}
\widowpenalty10000
\clubpenalty10000
\usepackage{url}
\urlstyle{same}
% \RequirePackage[
% oldstylenums, largesmallcaps
% ]{kpfonts}
% \usepackage[math-style=ISO]{unicode-math}
% \defaultfontfeatures{Mapping=tex-text}
% \DisableLigatures{encoding = *, shape = sc*}
% \setmainfont[Ligatures={Common,TeX},
% SmallCapsFeatures={
% LetterSpace=7.5
% }]{Latin Modern}
% \setmathfont[Scale=0.97,Ligatures=TeX,
% math-style=TeX
% ]{Latin Modern Math}
% % \setmathfont[range=it/{Latin,latin}]{Linux Libertine O Italic}
% % % \setmathfont[range=up]{Junicode}
% % % \setmathfont[range=it/{Greek, greek}]{Linux Libertine O Italic}
% % \setmathfont[range=up/{Greek, greek}]{Linux Libertine O}
% % \setmathfont[range=it/{Greek, greek}]{Linux Libertine O Italic}
% \setmathfont[range=frak/{latin,Latin},
% Scale=MatchUppercase,
% StylisticSet=1,
% script-features={},
% sscript-features={}
% ]{Unifraktur Maguntia}
% Theorem environments
\theoremstyle{plain}
\newtheorem*{theorem}{theorem}
\newtheorem*{lemma}{lemma}
\newtheorem*{corollary}{corollary}
% Numbered theorems
\newtheorem{theoremx}{theorem}[subsection]
\newtheorem{lemmax}{lemma}[subsection]
\newtheorem{corollaryx}{corollary}[subsection]
\newtheorem{corollaryb}{corollary}[subsection]
\theoremstyle{definition}
\newtheorem*{definition}{definition}
\renewenvironment{proof}{{\itshape Proof. }}{{\scshape q.e.d.}}
\RequirePackage{longtable}
\RequirePackage{pdfpages}
\AtBeginDocument{
\let\phi\varphi
\let\epsilon\varepsilon
\let\iff\Leftrightarrow
\let\implies\Rightarrow
\let\leq\leqslant
\let\geq\geqslant
\let\theta\vartheta
\let\emptyset\varnothing
}