-
Notifications
You must be signed in to change notification settings - Fork 20
/
hogg_style.tex
111 lines (100 loc) · 3.44 KB
/
hogg_style.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
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{mathrsfs}
\IfFileExists{./hogg_endnotes.sty}{\usepackage{./hogg_endnotes}}{}
\IfFileExists{../hogg_endnotes.sty}{\usepackage{../hogg_endnotes}}{}
\usepackage{natbib}
\usepackage{float}
\usepackage{graphicx}
\usepackage{multirow}
%%Figure caption
\makeatletter
\newsavebox{\tempbox}
\newcommand{\@makefigcaption}[2]{%
\vspace{10pt}{#1.--- #2\par}}%
\renewcommand{\figure}{\let\@makecaption\@makefigcaption\@float{figure}}
\makeatother
\newcommand{\exampleplot}[1]{%
\begin{center}%
\includegraphics[width=0.5\textwidth]{#1}%
\end{center}%
}
\newcommand{\exampleplottwo}[2]{%
\begin{center}%
\includegraphics[width=0.5\textwidth]{#1}%
\includegraphics[width=0.5\textwidth]{#2}%
\end{center}%
}
\setlength{\emergencystretch}{2em}%No overflow
\newcommand{\notenglish}[1]{\textsl{#1}}
\newcommand{\aposteriori}{\notenglish{a~posteriori}}
\newcommand{\apriori}{\notenglish{a~priori}}
\newcommand{\adhoc}{\notenglish{ad~hoc}}
\newcommand{\etal}{\notenglish{et al.}}
\newcommand{\eg}{\notenglish{e.g.}}
\newcommand{\project}[1]{\textsl{#1}}
\newcommand{\documentname}{document}
\newcommand{\documentnames}{\documentname s}
\newcommand{\sectionname}{Section}
\newcommand{\equationname}{equation}
\newcommand{\Equationname}{Equation}
\newcommand{\equationnames}{\equationname s}
\newcommand{\figurenames}{\figurename s}
\newcommand{\problemname}{Exercise}
\newcommand{\problemnames}{\problemname s}
\newcommand{\solutionname}{Solution}
\newcommand{\notename}{note}
\renewcommand{\and}{{\footnotesize{and}}}
\newcommand{\note}[1]{\endnote{#1}}
\def\enotesize{\normalsize}
\renewcommand{\thefootnote}{\fnsymbol{footnote}} % the ONE footnote needs this
\newcounter{problem}
\newenvironment{problem}{\paragraph{\problemname~\theproblem:}\refstepcounter{problem}}{}
\newcommand{\affil}[1]{{\footnotesize\textsl{#1}}}
% matrix stuff
\newcommand{\mmatrix}[1]{\boldsymbol{#1}}
\newcommand{\inverse}[1]{{#1}^{-1}}
\newcommand{\transpose}[1]{{#1}^{\scriptscriptstyle \top}}
\newcommand{\mA}{\mmatrix{A}}
\newcommand{\mAT}{\transpose{\mA}}
\newcommand{\mC}{\mmatrix{C}}
\newcommand{\mCinv}{\inverse{\mC}}
\newcommand{\me}{\mmatrix{e}}
\newcommand{\mQ}{\mmatrix{Q}}
\newcommand{\mS}{\mmatrix{S}}
\newcommand{\mX}{\mmatrix{X}}
\newcommand{\mY}{\mmatrix{Y}}
\newcommand{\mYT}{\transpose{\mY}}
\newcommand{\mZ}{\mmatrix{Z}}
\newcommand{\vhat}{\mmatrix{\hat{v}}}
% parameter vectors
\newcommand{\parametervector}[1]{\mmatrix{#1}}
\newcommand{\pvtheta}{\parametervector{\theta}}
% set stuff
\newcommand{\setofall}[3]{\{{#1}\}_{{#2}}^{{#3}}}
\newcommand{\allq}{\setofall{q_i}{i=1}{N}}
\newcommand{\allx}{\setofall{x_i}{i=1}{N}}
\newcommand{\ally}{\setofall{y_i}{i=1}{N}}
\newcommand{\allxy}{\setofall{x_i,y_i}{i=1}{N}}
\newcommand{\allsigmay}{\setofall{\sigma_{yi}^2}{i=1}{N}}
\newcommand{\allS}{\setofall{\mS_i}{i=1}{N}}
\newcommand{\union}{\cup}
\newcommand{\intersect}{\cap}
% other random multiply used math symbols
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\renewcommand{\d}{\mathrm{d}}
\newcommand{\dd}{\d}
\newcommand{\mean}[1]{\left<{#1}\right>}
\newcommand{\like}{\mathscr{L}}
\newcommand{\given}{\,|\,}
\newcommand{\atfixed}{\,;}
\newcommand{\best}{\mathrm{best}}
\newcommand{\normal}{\mathscr{N}}
\newcommand{\Pbad}{P_{\mathrm{b}}}
\newcommand{\Ybad}{Y_{\mathrm{b}}}
\newcommand{\Vbad}{V_{\mathrm{b}}}
\newcommand{\pfg}{p_{\mathrm{fg}}}
\newcommand{\pbg}{p_{\mathrm{bg}}}
\newcommand{\bperp}{b_{\perp}}
\newcommand{\meanZ}{\mean{\mZ}}