-
Notifications
You must be signed in to change notification settings - Fork 1
/
preamble.tex
109 lines (87 loc) · 2.73 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%PANDOC SPECIFIC SHIT, TAKEN FROM ANOTHER TEMPLATE...
%Deal with margins and other geometry stuff
\usepackage[margin=1.1in]{geometry}
\usepackage{fontspec}
\setmainfont{MinionPro-Regular.otf}[
Path = /Users/lucydelaney/Library/Fonts/,
BoldFont = MinionPro-Bold.otf,
ItalicFont = MinionPro-It.otf,
BoldItalicFont = MinionPro-BoldIt.otf]
\usepackage[labelfont=bf]{caption}
%Double-spacing or whatever...
\usepackage{setspace}
\setstretch{1.5}
\usepackage{amssymb,amsmath}
\usepackage{halloweenmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\usepackage{enumitem}
\usepackage{chemfig}
%For LIST spacing
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setlist[itemize]{labelsep=1em, leftmargin=*}
\renewcommand\labelitemi{\(\mathwitch\)}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LUCY'S DOCUMENT PREAMBLE AND PACKAGES
% no widows or orphans
\widowpenalty10000
\clubpenalty10000
\usepackage{pdflscape}
\usepackage{pdfpages}
\usepackage{xcolor}
\definecolor{light-gray}{gray}{0.95}
\usepackage{lastpage}
\usepackage[most]{tcolorbox}
\newtcolorbox{blackbox}[1]{
colback=light-gray,
colframe=black,
coltext=black,
boxsep=2pt,
arc=4pt,
title={#1}, after= {\vspace{3mm}}}
\newtcolorbox{mybox}[2][]{colback=white,
colframe=white!75!black,colbacktitle=black!65!white, toptitle=2pt, before={\vspace{-0.8cm}}, after= {\vspace{-1cm}}, title={#2},#1}
%\usepackage[round]{natbib}
\usepackage[natbibapa]{apacite}
\usepackage[hyphens]{url}
%Set paragraph indent and between paragraph spacing
\setlength\parindent{0pt}
\setlength{\parskip}{4.5pt}
%Deal with titles and make them less stupid and ugly
\usepackage{titlesec}
\titleformat{\section}[block]{\bfseries\sc\filcenter}{}{1em}{}
\titleformat{\subsection}[hang]{\bfseries}{}{1em}{}
\setcounter{secnumdepth}{0}
\usepackage[hyphens]{url}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=violet,
filecolor=cyan,
urlcolor=violet,
citecolor = black
}
\let\oldhref\href
\renewcommand{\href}[2]{\oldhref{#1}{\bfseries#2}}
%Need all these for graphics and tables
\usepackage{marginnote}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage{array}
\usepackage{wrapfig}
\usepackage{wallpaper}
\usepackage{float}
\renewcommand\chaptername{Unit}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
%Header and footer junk
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[C]{}{}
\fancyhead[L]{Biol 002: Cellular Basis of Life \(\cdot\) Spring 2022}
\fancyhead[R]{\leftmark}
\fancyfoot[L]{\tiny{\textit{Version date: \today\\Lucy Delaney}}}
\fancyfoot[R]{\thepage\ of \pageref{LastPage}}
\fancyfoot[C]{}