-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
74 lines (59 loc) · 2.09 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
% fonts
\usepackage[T1]{fontenc} % Apparently this https://tex.stackexchange.com/questions/287312/font-not-loadable-metric-data-not-found-or-bad
\usepackage[full]{textcomp}
\usepackage{cabin} % sans serif
\usepackage[varqu,varl]{inconsolata} % sans serif typewriter
\usepackage[final,expansion=alltext]{microtype}
\usepackage[english]{babel}
\usepackage[fleqn]{mathtools}
\usepackage[cal=boondoxo]{mathalpha} % mathcal
\usepackage{newtxtext}
% \usepackage{txfonts} % See https://tex.stackexchange.com/questions/444243/symbols-not-showing-up
\usepackage[bigdelims,vvarbb]{newtxmath} % bb from STIX % "should be loaded AFTER the text font" - https://mirrors.mit.edu/CTAN/fonts/newtx/doc/newtxdoc.pdf
% geometry of the page
\usepackage[
top=1in,
bottom=1in,
left=1in,
right=1in
]{geometry}
% paragraph spacing
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.5ex plus 0.4ex minus 0.2ex}
% useful packages
% \usepackage{natbib} % incompatible with BibLaTeX
\usepackage{epsfig}
\usepackage{url}
\usepackage{bm}
\usepackage{blindtext}
% Leon additions
\usepackage{enumitem} % allows for enumerate[resume]
\usepackage[style=authoryear-comp, natbib=true]{biblatex} % natbib=true allows \citep
\usepackage{graphicx}
\usepackage{url}
\usepackage{hyperref}
% Section formatting using titlesec
\usepackage{titlesec}
\titleformat*{\section}{\sffamily\Large}
\titleformat*{\subsection}{\sffamily\large}
\titleformat*{\subsubsection}{\itshape}
% center figures by default
\makeatletter
\g@addto@macro\@floatboxreset\centering
\makeatother
% italic figure captions
\usepackage[format=plain,
textfont=it]{caption}
% simple TO DO macro
\usepackage{xcolor}
\newcommand\todo[1]{\textcolor{orange}{[#1]}}
\newcommand{\indsim}{\overset{\mathrm{ind}}{\sim}}
% https://tex.stackexchange.com/questions/60545/should-i-mathrm-the-d-in-my-integrals
\newcommand*\diff{\mathop{}\!\mathrm{d}}
\newcommand*\Diff[1]{\mathop{}\!\mathrm{d^#1}}
\newcommand{\E}{\mathrm{E}}
\renewcommand{\P}{\mathrm{P}}
\newcommand{\N}{\mathrm{N}}
\newcommand{\diag}{\mathrm{diag}}
\newcommand{\ave}{\mathrm{ave}}
\renewcommand\vec{\boldsymbol}