forked from kylebutts/latex-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
124 lines (97 loc) · 3.1 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
124
% Margins ------------------------------------------
\usepackage[margin=1.5in]{geometry}
% Line Spacing -------------------------------------
\renewcommand{\baselinestretch}{1.5}
% Font ---------------------------------------------
\usepackage{utopia}
\usepackage[utopia, smallerops, varg]{newtxmath}
% \usepackage{cabin}
% \usepackage[libertine]{newtxmath}
% Small adjustments to text kerning
\usepackage{microtype}
% Remove annoying over-full box warnings -----------
\vfuzz2pt
\hfuzz2pt
% Color Palette ------------------------------------
\usepackage{xcolor}
% https://www.materialpalette.com/colors
\definecolor{red}{HTML}{c62828}
\definecolor{orange}{HTML}{ef6c00}
\definecolor{green}{HTML}{2e7d32}
\definecolor{blue}{HTML}{1565c0}
\definecolor{purple}{HTML}{283593}
\definecolor{maroon}{HTML}{AF3335}
\definecolor{dark-maroon}{HTML}{5D0F0D}
\definecolor{teal}{HTML}{00695c}
\definecolor{bluegrey}{HTML}{455a64}
\definecolor{indigo}{HTML}{1A237E}
\definecolor{navyblue}{HTML}{0A3044}
\definecolor{bluegreen}{HTML}{4A8676}
\definecolor{Black}{HTML}{000000}
% CU Boulder colors
\definecolor{buff-gold}{HTML}{CFB87C}
\definecolor{buff-grey}{HTML}{565A5C}
\definecolor{buff-lightgrey}{HTML}{A2A4A3}
\definecolor{buff-black}{HTML}{000000}
% Hyperlinks ---------------------------------------
\usepackage{hyperref}
\hypersetup{
colorlinks= true,
bookmarks = true,
citecolor= dark-maroon,
linkcolor= dark-maroon,
filecolor= dark-maroon,
urlcolor= dark-maroon,
}
% Enumerate/Itemize --------------------------------
\usepackage{enumitem}
\setlist[itemize]{label= \textbullet}
% Section and Subsection Styling -------------------
\usepackage{titlesec}
\titleformat{\section}
{\Large \bf \color{navyblue}}
{\thesection.}
{1em}
{}
\titleformat{\subsection}
{\fontsize{11}{10}\it}
{\thesubsection.}
{1em}
{}
% Better Abstract ----------------------------------
\renewenvironment{abstract}
{
\centerline
{\large \bfseries \scshape \color{navyblue} Abstract}
\begin{quote}
}
{
\end{quote}
}
% AMS ----------------------------------------------
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphics}
% Table and Figure labelling -----------------------
\usepackage{caption}
\DeclareCaptionLabelSeparator{threesdash}{\,---\,}
\DeclareCaptionLabelSeparator{period}{\,---\,}
\captionsetup[table]{format=plain,labelsep= threesdash}
\captionsetup[figure]{format=plain, labelsep= period}
% Tables -------------------------------------------
% Tables too big
% \begin{adjustbox}{width = 1.2\textwidth, center}
\usepackage{adjustbox}
\usepackage{array}
% Tables too narrow
% \begin{tabularx}{\linewidth}{cols}
% col-types: X - center, L - left, R -right
% Relative scale: >{\hsize=.8\hsize}X/L/R
\usepackage{tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\newcolumntype{C}{>{\centering\arraybackslash}X}
% Define Theorems ----------------------------------
% note, theorem is the name that goes in \begin{} and Theorem is the name displayed as Theorem 1
\newtheorem{theorem}{Theorem}
% --------------------------------------------------