-
Notifications
You must be signed in to change notification settings - Fork 3
/
CapeTownExample.tex
225 lines (194 loc) · 8.56 KB
/
CapeTownExample.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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
%==========================================================
% Preamble
%==========================================================
% Fonts/languages
\documentclass[english,aspectratio=169,12pt,xcolor=dvipsnames]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel} % For foreign characters
\usepackage{uarial} % For Arial font
\renewcommand{\familydefault}{\sfdefault}
%\usepackage{mathpazo} % For Palatino font
%\usepackage{mathptmx} % For Times New Roman font
%\usefonttheme{serif} % To have a serif font (instead of Beamer's default sans serif)
% Colors: see http://www.math.umbc.edu/~rouben/beamer/quickstart-Z-H-25.html
\usepackage{color}
\usepackage[dvipsnames]{xcolor}
\definecolor{dgreen}{rgb}{0.,0.6,0.}
\definecolor{forest}{RGB}{34.,139.,34.}
\definecolor{oucrimson}{RGB}{132.,22.,23.}
\definecolor{byublue}{RGB}{0.,30.,76.}
\definecolor{dukeblue}{RGB}{0.,0.,156.}
% Beamer Theme
\usetheme{CapeTown}
\setbeamercolor{section in head/foot}{bg=oucrimson,fg=white} % use this to adjust the coloring of CapeTown
\setbeamercolor{frametitle}{bg=white,fg=oucrimson} % use this to adjust the coloring of CapeTown
\setbeamercolor{alerted text}{fg=oucrimson} % use this to adjust the coloring of CapeTown
\usecolortheme[named=oucrimson]{structure} % change the color theme
\setbeamercovered{invisible}
% Useful Packages
\usepackage{booktabs} % For more professional tables
\usepackage{babel} % For multilingual output
\usepackage{amsthm} % For detailed theorems
\usepackage{amssymb} % For fancy math symbols
\usepackage{amsmath} % For awesome equations/equation arrays
\usepackage{nicefrac} % For handwritten-looking fractions
\usepackage{float} % For improved float manipulation
\usepackage{prettyref} % For pretty references
\usepackage{array} % For tubular tables
\usepackage{longtable} % For long tables
\usepackage[flushleft]{threeparttable} % For three-part tables
\usepackage{multicol} % For multi-column cells
\usepackage{graphicx} % For shiny pictures
\usepackage{subfig} % For sub-shiny pictures
\usepackage{enumerate} % For cusomtizable lists
\usepackage{pdflscape} % For landscape-oriented pages
% Custom operators for variance, covariance, and correlation
\newcommand{\Var}{\operatorname{Var}}
\newcommand{\Cov}{\operatorname{Cov}}
\newcommand{\Corr}{\operatorname{Corr}}
% Bib
\usepackage[authoryear]{natbib} % Bibliography
\renewcommand{\bibsection}{\subsubsection*{\bibname } } % Allows Bibliographies in Beamer
\usepackage{url} % Allows urls in bib
% Links
\usepackage{hyperref} % Always add hyperref (almost) last
%\hypersetup{unicode=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=4,
% breaklinks=true,pdfborder={0 0 0},colorlinks=false,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}
\hypersetup{unicode=true,breaklinks=true,pdfborder={0 0 0}}
% Custom command to cite sources as ``Smith's (1972) piece''
\makeatletter
\newcommand{\cites}[1]{\citeauthor{#1}'s (\citeyear{#1})}
\makeatother
%==========================================================
% Quick guide to citation commands in LaTeX:
% \citet{hotz_et_al2002} --> Hotz et al. (2002)
% \citeauthor{hotz_et_al2002} ---> Hotz et al.
% \citep{hotz_et_al2002} --> (Hotz et al., 2002)
% \citealp{hotz_et_al2002} --> Hotz et al., 2002
% \citealt{hotz_et_al2002} --> Hotz et al. 2002
% \citeyear{hotz_et_al2002} --> 2002
% \citeyearpar{hotz_et_al2002} --> (2002)
% \nocite{hotz_et_al2002} --> [only shows up in bibliography]
%
% If you add a "*" to the command, it will list all authors:
% \citet*{hotz_et_al2002} --> Hotz, Xu, Tienda, and Ahituv (2002)
% \citeauthor*{hotz_et_al2002} ---> Hotz, Xu, Tienda, and Ahituv
% \vdots
% etc.
%==========================================================
%==========================================================
% Quick guide for using overlay specifications in Beamer:
%
% Overlay specifications are given in pointed brackets (<,>) and
% indicate which slide the corresponding information should appear
% on.
% The specification <1-> means ``display from slide 1 on.'' <1-3>
% means ``display from slide 1 to slide 3.'' <-3,5-6,8-> means
% ``display on all slides except slides 4 and 7.''
% Here is an example:
% \begin{itemize}
% \item<1> $abcadcabca$
% \item<1-2> $abcabcabca$
% \item<1-2> $accaccacca$
% \item<1> $bacabacaba$
% \item<1,3> $cacdaccacc$
% \item<1-2> $caccaccacc$
% \end{itemize}
%==========================================================
%==========================================================
% Add ToC before each section:
\AtBeginSection[]{
\frame<beamer>{
\frametitle{Outline}
\tableofcontents[currentsection]
}
}
%==========================================================
\title[Short Title]{Really Really Long Formal Title}
\author[A1 LN \& A2 LN]{Author 1 \and Author 2}
\institute[Affil1 \& Affil2]{Affil1 \& Affil2}
\date{\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\section{Introduction}
\begin{frame}{Starting point}
\begin{itemize}
\item The \alert{quick} brown fox jumped over the lazy dog
\end{itemize}
\end{frame}
\begin{frame}{Slide 2}
\begin{itemize}
\item Some more support here.
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Section 2}
\begin{frame}{Start of section 2}
\begin{enumerate}
\item Point 1
\item Point 2
\item Point 3
\end{enumerate}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Section 3}
\begin{frame}{Statistical model}
The classical regression model is given by
\begin{align*}
y_{i} = X_{i}\beta + \varepsilon_{i}
\end{align*}
where
\begin{itemize}
\item $y_{i}$ is an outcome
\item $X_{i}$ are observed covariates
\item $\varepsilon_{i}$ are unobservables
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Tables}
\begin{frame}{Table 1}
\centering
\resizebox{.9\textwidth}{!}{
\begin{threeparttable}
\begin{tabular}{lccc}
\midrule
& Outcome 1 & Outcome 2 & Outcome 3 \\
\midrule
OLS, no controls & .281*** & .161*** & .171*** \\
& (.013) & (.010) & (.017) \\
OLS, full controls & .110*** & .044** & .079*** \\
& (.015) & (.011) & (.022) \\
\midrule
$N$ & 46,237 & 48,837 & 39,350 \\
\midrule
\end{tabular}
\end{threeparttable}
}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Conclusion}
\begin{frame}{Conclusion}
\begin{itemize}
\item Item 1
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\section*{Bonus slides}
\begin{frame}[noframenumbering]{Appendix slide 1}
Some appendix material goes here.
\end{frame}
% \begin{frame}[noframenumbering]{References}
% \begin{tiny}
% \bibliographystyle{jpe}
% \bibliography{../../References/References}
% \end{tiny}
% \end{frame}
\end{document}