-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpreamble.tex
124 lines (104 loc) · 4.41 KB
/
preamble.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
\documentclass[oneside]{amsart}
\usepackage[all]{xy}
\usepackage[T1]{fontenc}
\usepackage{xstring}
\usepackage{xparse}
\usepackage{xr-hyper}
\usepackage{xcolor}
\definecolor{brightmaroon}{rgb}{0.76, 0.13, 0.28}
\usepackage[linktocpage=true,colorlinks=true,hyperindex,citecolor=blue,linkcolor=brightmaroon]{hyperref}
\usepackage[left=1.25in,right=1.25in,top=0.75in,bottom=0.75in]{geometry}
%\usepackage[charter,greekfamily=didot]{mathdesign}
%\usepackage{Baskervaldx}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{mathpazo}
\linespread{1.05}
\usepackage[nobottomtitles]{titlesec}
\usepackage{marginnote}
\usepackage{enumerate}
\usepackage{longtable}
\usepackage{aurical}
\usepackage{microtype}
\externaldocument[what-]{what}
\externaldocument[intro-]{intro}
\externaldocument[ega0-]{ega0}
\externaldocument[ega1-]{ega1}
\externaldocument[ega2-]{ega2}
\externaldocument[ega3-]{ega3}
\externaldocument[ega4-]{ega4}
\newtheoremstyle{ega-env-style}%
{}{}{\rmfamily}{}{\bfseries}{.}{ }{\thmnote{(#3)}}%
\newtheoremstyle{ega-thm-env-style}%
{}{}{\itshape}{}{\bfseries}{. --- }{ }{\thmname{#1}\thmnote{ (#3)}}%
\newtheoremstyle{ega-defn-env-style}%
{}{}{\rmfamily}{}{\bfseries}{. --- }{ }{\thmname{#1}\thmnote{ (#3)}}%
\theoremstyle{ega-env-style}
\newtheorem*{env}{---}
\theoremstyle{ega-thm-env-style}
\newtheorem*{theorem}{Theorem}
\newtheorem*{proposition}{Proposition}
\newtheorem*{lemma}{Lemma}
\newtheorem*{corollary}{Corollary}
\theoremstyle{ega-defn-env-style}
\newtheorem*{definition}{Definition}
\newtheorem*{example}{Example}
\newtheorem*{examples}{Examples}
\newtheorem*{remark}{Remark}
\newtheorem*{remarks}{Remarks}
\newtheorem*{notation}{Notation}
% indent subsections, see https://tex.stackexchange.com/questions/177290/.
% also make section titles bigger.
% also add § to \thesection, https://tex.stackexchange.com/questions/119667/ and https://tex.stackexchange.com/questions/308737/.
\makeatletter
\def\l@subsection{\@tocline{2}{0pt}{2.5pc}{2.2pc}{}}
\def\section{\@startsection{section}{1}%
\z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
{\normalfont\bfseries\Large\scshape\centering}}
\renewcommand{\@seccntformat}[1]{%
\ifnum\pdfstrcmp{#1}{section}=0\textsection\fi%
\csname the#1\endcsname.~}
\makeatother
%\allowdisplaybreaks[1]
%\binoppenalty=9999
%\relpenalty=9999
% for Chapter 0, Chapter I, etc.
% credit for ZeroRoman https://tex.stackexchange.com/questions/211414/
% added into scripts/make_book.py
%\newcommand{\ZeroRoman}[1]{\ifcase\value{#1}\relax 0\else\Roman{#1}\fi}
%\renewcommand{\thechapter}{\ZeroRoman{chapter}}
\def\mathcal{\mathscr}
\input{preamble-base}
\def\shHom{\sh{H}\textup{\kern-2.2pt{\Fontauri\slshape om}}} % sheaf Hom
\def\shProj{\sh{P}\textup{\kern-2.2pt{\Fontauri\slshape roj}}} % sheaf Proj
\def\shExt{\sh{E}\textup{\kern-2.2pt{\Fontauri\slshape xt}}} % sheaf Ext
\def\shGr{\sh{G}\textup{\kern-2.2pt{\Fontauri\slshape r}}} % sheaf Gr
\def\shDer{\sh{D}\,\textup{\kern-2.2pt{\Fontauri\slshape er}}} % sheaf Der
\def\shDiff{\sh{D}\,\textup{\kern-2.2pt{\Fontauri\slshape if{}f}}\,} % sheaf Diff
\def\shHomcont{\sh{H}\textup{\kern-2.2pt{\Fontauri\slshape om.\,cont}}} % sheaf Hom.cont
\def\shAut{\sh{A}\textup{\kern-2.2pt{\Fontauri\slshape ut}}} % sheaf Aut
% if unsure of a translation
%\newcommand{\unsure}[2][]{\hl{#2}\marginpar{#1}}
%\newcommand{\completelyunsure}{\unsure{[\ldots]}}
\def\unsure#1{#1 {\color{red}(?)}}
\def\completelyunsure{{\color{red}(???)}}
% use to mark where original page starts
\newcommand{\oldpage}[2][]{{\marginnote{\normalfont{\textbf{#1}~|~#2}}}\ignorespaces}
\def\sectionbreak{\begin{center}***\end{center}}
% for referencing environments.
% use as \sref{chapter-number.x.y.z}, with optional args
% for volume and indices, e.g. \sref[volume]{chapter-number.x.y.z}[i].
\NewDocumentCommand{\sref}{o m o}{%
\IfNoValueTF{#1}%
{\IfNoValueTF{#3}%
{\hyperref[#2]{\normalfont{(\StrBehind{#2}{.})}}}%
{\hyperref[#2]{\normalfont{(\StrBehind{#2}{.},~{#3})}}}}%
{\IfNoValueTF{#3}%
{\hyperref[#2]{\normalfont{(\textbf{#1},~\StrBehind{#2}{.})}}}%
{\hyperref[#2]{\normalfont{(\textbf{#1},~\StrBehind{#2}{.},~{#3})}}}}%
}
% for marking changes following errata
% use as \erratum[volume]{correction} to say where the erratum is given
\newcommand{\erratum}[2][]{{#2}\marginpar{\footnotesize\textbf{Err}\textsubscript{#1}}}
% for referencing equations, use as \eref{eq:chapter-number.x.y.z}.
\newcommand{\eref}[1]{\hyperref[#1]{\normalfont{(\StrBehind{#1}{.})}}}