-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathP231_header.tex
More file actions
194 lines (154 loc) · 5.44 KB
/
P231_header.tex
File metadata and controls
194 lines (154 loc) · 5.44 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
%!TEX root = P231_notes.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% COMMON PACKAGES %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage[utf8]{inputenc} % inspire bibs
\usepackage{aas_macros} % ads bibs
%\usepackage{amsthm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% UNUSUAL PACKAGES %%%%
%%% Uncomment as necessary. %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MATH AND PHYSICS SYMBOLS
%% ------------------------
\usepackage{slashed} % \slashed{k}
\usepackage{mathrsfs} % Weinberg-esque letters
\usepackage{bbm} % \mathbbm{1} conflict: XeLaTeX
\usepackage{cancel}
\usepackage[normalem]{ulem} % for \sout
%\usepackage{youngtab} % Young Tableaux
%% CONTENT FORMAT AND DESIGN
%% -------------------------
\usepackage[dvipsnames]{xcolor}
\usepackage[hang,flushmargin]{footmisc} % no footnote indent
\usepackage{fancyhdr} % preprint number
\usepackage{lipsum} % block of text
\usepackage{framed} % boxed remarks
\usepackage{subcaption} % subfigures
\usepackage{cite} % group cites
\usepackage{xspace} % macro spacing
\usepackage{marginnote}
%% TABLES IN LaTeX
%% ---------------
\usepackage{booktabs} % professional tables
%\usepackage{nicefrac} % fractions in tables,
%\usepackage{multirow} % multirow elements in a table
%\usepackage{arydshln} % dashed lines in arrays
%% Other Packages and Notes
%% ------------------------
\usepackage[font=small]{caption} % caption font is small
\usepackage{float} % for strict placement e.g. [H]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% DOCUMENT PROPERTIES %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \usepackage[margin=2cm]{geometry} % margins
\usepackage[
top=2.5cm,
bottom=2.5cm,
outer=2.5cm, % size of margin
inner=2.5cm, % size of opposite margin
heightrounded,
marginparwidth=1.5cm, % less than outer
marginparsep=.2cm% % between text and margin note
]{geometry}
%% https://en.wikibooks.org/wiki/LaTeX/Footnotes_and_Margin_Notes#Margin_Notes
\graphicspath{{figures/}} % figure folder
\numberwithin{equation}{section} % set equation numbering
%% References in two columns, smaller
%% http://tex.stackexchange.com/questions/20758/
\usepackage{multicol}
\usepackage{etoolbox}
\usepackage{relsize}
\patchcmd{\thebibliography}
{\list}
{\begin{multicols}{2}\smaller\list}
{}
{}
\appto{\endthebibliography}{\end{multicols}}
% Change list spacing (instead of package paralist)
% from: http://en.wikibooks.org/wiki/LaTeX/List_Structures#Line_spacing
\let\oldenumerate\enumerate
\renewcommand{\enumerate}{
\oldenumerate
\setlength{\itemsep}{3pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}
\let\olditemize\itemize
\renewcommand{\itemize}{
\olditemize
\setlength{\itemsep}{1pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% (RE)NEW COMMANDS %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% FOR `NOT SHOUTING' CAPS (e.g. acronyms)
%% ---------------------------------------
\newcommand{\acro}[1]{\textsc{\MakeLowercase{#1}}}
\usepackage{scalefnt}
\newcommand\acronum[2][0.85]{{\scalefont{#1}#2}}
%% COMMON PHYSICS MACROS
%% ---------------------
\renewcommand{\tilde}{\widetilde} % tilde over characters
\renewcommand{\vec}[1]{\mathbf{#1}} % vectors are boldface
\newcommand{\dbar}{d\mkern-6mu\mathchar'26\hspace{-.1em}} % for d/2pi
\newcommand{\ket}[1]{\left|#1\right\rangle} % <#1|
\newcommand{\bra}[1]{\left\langle#1\right|} % |#1>
\newcommand{\mat}[3]{#1^{#2}_{\phantom{#2}#3}} % <#1|
\renewcommand{\text}{\textnormal} % text in equations
%% THEOREM ENVIRONMENT
%% -------------------
\newtheorem{exercise}{Exercise}[section]
\newtheorem{example}{Example}[section]
%% COMMANDS FOR TEMPORARY COMMENTS
%% -------------------------------
\newcommand{\comment}[2]{\textcolor{red}{[\textbf{#1} #2]}}
\newcommand{\flip}[1]{{
\color{green!50!black} \footnotesize [\textbf{\textsf{Flip}}: \textsf{#1}]
}}
% \newcommand{\lecdate}[1]{\marginnote{\footnotesize\color{blue!50!black}{\textsf{#1}}}}
\newcommand{\lecdate}[1]{}
%% COMMANDS FOR TOP-MATTER
%% -----------------------
\newcommand{\email}[1]{\href{mailto:#1}{#1}}
\newenvironment{institutions}[1][2em]{\begin{list}{}{\setlength\leftmargin{#1}\setlength\rightmargin{#1}}\item[]}{\end{list}}
%% COMMANDS FOR LATEXDIFF
%% ----------------------
%% see http://bit.ly/1M74uwc
\providecommand{\DIFadd}[1]{{\protect\color{blue}#1}} %DIF PREAMBLE
\providecommand{\DIFdel}[1]{{\protect\color{red}\protect\scriptsize{#1}}}
%% REMARK: use latexdiff option --allow-spaces
%% for \frac, ref: http://bit.ly/1iFlujR
%%%%%%%%%%%%%%%%%%%
%%% HYPERREF %%%%
%%%%%%%%%%%%%%%%%%%
%% This package has to be at the end; can lead to conflicts
\usepackage[
colorlinks=true,
citecolor=green!50!black,
linkcolor=NavyBlue!75!black,
urlcolor=green!50!black,
hypertexnames=false]{hyperref}
%%%%%%%%%%%%%%%%%%%%%
%%% TITLE DATA %%%%
%%%%%%%%%%%%%%%%%%%%%
%% PREPRINT NUMBER USING fancyhdr
%% Don't forget to set \thispagestyle{firststyle}
%% ----------------------------------------------
\renewcommand{\headrulewidth}{0pt} % no separator
\setlength{\headheight}{15pt} % min to avoid fancyhdr warning
\fancypagestyle{firststyle}{
\rhead{\footnotesize%
\texttt{UCR-P231-FLIP-F2020}%
}}
%% TOC overwrites fancyhdr, here's a fix
%% http://tex.stackexchange.com/questions/167828/
\usepackage{etoc}
\renewcommand{\etocaftertitlehook}{\pagestyle{plain}}
\renewcommand{\etocaftertochook}{\thispagestyle{firststyle}}