-
Notifications
You must be signed in to change notification settings - Fork 6
/
icpsr.beamer
339 lines (293 loc) · 9.62 KB
/
icpsr.beamer
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
\RequirePackage{etex}
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
% built from https://github.com/jgm/pandoc-templates/blob/master/default.beamer
%\documentclass[11pt,ignorenonframetext,xcolor={svgnames}]{beamer}
%\setbeameroption{hide notes}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{: }
\setbeamercolor{caption name}{fg=normal text.fg}
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
$if(fontfamily)$
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
$else$
\usepackage{lmodern}
$endif$
%\usepackage{etex}
%\reserveinserts{28}
\usepackage{presentation}
\usepackage{notation}
\usepackage{caption}
\usepackage{amsfonts,amsthm,amssymb,amsmath,bbm,bm} % not sure if we should be using bm or unicode-math
\usepackage{unicode-math} % for symbf among other stuff
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{textpos}
\usepgflibrary{arrows} % also see \tikzstyle spec below after \begin{doc}
\usetikzlibrary{arrows} % also see \tikzstyle spec below after \begin{doc}
\usepackage{ifxetex,ifluatex}
% \usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[utf8]{inputenc}
\else % if luatex or xelatex
\ifxetex
% \usepackage{mathspec}
\else
% \usepackage{fontspec}
\fi
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
$for(fontfamilies)$
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
$endfor$
%\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
%\setmainfont{Lato}
%\setmonofont[Scale=MatchLowercase]{Source Code Pro Light}
%\let\sfdefault\rmdefault
\newcommand{\euro}{€}
\captionsetup{labelformat=empty,labelsep=none,font=small,skip=.25ex} %No "Figure" labels
\usecolortheme{default}
\useinnertheme{default}
\usefonttheme{default}
%\useoutertheme{progressbar}
\usepackage{beamerouterthemeprogressbar}
\progressbaroptions{titlepage=normal,headline=normal,frametitle=normal}
% Define Colors
%% Dark Yellow: 102, 83, 30
%% Dark Orange: 104, 55, 34
%% Dark Red: 107, 36, 31
%% Dark Blue: 19, 64, 80
%% Dark Green: 0, 86, 79
%% yellow: R=242 G=196 B=70 F2C446
%% orange: R=249 G=131 B=74 F9834A
%% blue: R=46 G=154 B=196 2E9AC4
%% red: R=250 G=86 B=70 FA5646
%% green: R=3 G=202 B=185 03CAB9
%% grey: R=153 G=153 B=153 999999
%% Dark Yellow: 102, 83, 30
%% https://standards.usa.gov/components/colors/
\definecolor{darkyellow}{rgb}{102,83,30}
\definecolor{orange}{HTML}{F9834A}
\definecolor{yellow}{HTML}{F2C446}
\definecolor{blue}{HTML}{0071bc}
\definecolor{medblue}{HTML}{205493}
\definecolor{darkblue}{HTML}{112e51}
\definecolor{green}{HTML}{03CAB9}
\definecolor{grey}{HTML}{999999}
%\definecolor{progressbar@bgblue}{rgb}{0.92, 0.93, 0.95}
%\setbeamerfont*{frametitle}{size=\small,series=\bfseries,bg=white,fg=black}
%\setbeamerfont*{frametitle}{size=\small,series=\bfseries,bg=white,fg=progressbar@bgblue!90!progressbar@fgblue}
\setbeamerfont*{note page}{size=\scriptsize}%%footnotesize}
\setbeamertemplate{note page}[compress]
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{items}[circle]
\setbeamertemplate{sections/subsections in toc}[circle]
\setbeamersize{description width=2ex}
\setbeamersize{text margin left=1ex,text margin right=1ex}
%%\setbeamersize{ParSkip 1ex plus 1pt minus 1pt}
%% %% %% \setbeamertemplate{caption}[numbered]
\setbeamertemplate{caption label separator}{:}
\setbeamercolor{title}{fg=blue}
\setbeamercolor{author}{fg=grey}
\setbeamercolor{date}{fg=grey}
\setbeamerfont{author}{shape=\itshape}
\setbeamercolor{frametitle}{fg=blue}
\setbeamercolor{caption name}{fg=normal text.fg}
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
% use microtype if available
\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
\setbeamerfont{quote}{shape=\upshape}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\setcounter{secnumdepth}{0}
\newif\ifbibliography
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
$endif$
$if(biblatex)$
\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
$for(bibliography)$
\addbibresource{$bibliography$}
$endfor$
$endif$
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$
$if(colorlinks)$
colorlinks=true,
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
$else$
pdfborder={0 0 0},
$endif$
breaklinks=true}
\urlstyle{same} % don't use monospace font for urls
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=R,basicstyle=\small\ttfamily}}{}
$endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
\usepackage{fancyvrb}
\usepackage{framed}
\usepackage{longtable,booktabs,multirow}
\usepackage{caption}
% These lines are needed to make table captions work with longtable:
\makeatletter
\def\fnum@table{\tablename~\thetable}
\makeatother
$if(url)$
\usepackage{url}
$endif$
$if(graphics)$
\usepackage{graphicx}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
$endif$
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title:
%% \AtBeginPart{
%% \let\insertpartnumber\relax
%% \let\partname\relax
%% \frame{\partpage}
%% }
\AtBeginSection{
\let\insertsectionnumber\relax
\let\sectionname\relax
{
\setbeamercolor{background canvas}{bg=blue}
%\setbeamercolor{frametitle}{fg=white,bg=darkblue}
%\setbeamercolor{normal text}{fg=white,bg=darkblue}
\setbeamercolor{normal text}{bg=white,fg=black}
\setbeamercolor{structure}{fg=black}
\begin{frame}
%\frametitle{\sectionpage}
\tableofcontents[currentsection,hideallsubsections,sectionstyle=show]
\end{frame}
}
}
%%% \AtBeginSubsection{
%%% \let\insertsubsectionnumber\relax
%%% \let\subsectionname\relax
%%% \frame{\subsectionpage}
%%% }
%%%
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
%\setlength{\emergencystretch}{3em} % prevent overfull lines
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
\usepackage[$lang$]{babel}
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title[]{$title$}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
$endif$
$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
$endif$
\date{$date$}
\graphicspath{{.}{./images/}} % make it easier to find the logos
%% \addtobeamertemplate{frametitle}{}{%
%% \begin{tikzpicture}[remember picture,overlay]
%% \node[anchor=south east,yshift=6pt,xshift=-3pt] at (current page.south east) {\includegraphics[height=0.5cm]{SBSTLightBulb}};
%% \end{tikzpicture}}
%%
%% \addtobeamertemplate{title page}{}{%
%% \begin{tikzpicture}[remember picture,overlay]
%% \node[anchor=south east,yshift=5pt] at (current page.south east) {\includegraphics[height=2cm]{SBSTLogo}};
%% \end{tikzpicture}}
%%%%%%%%%
%% from https://stackoverflow.com/questions/35734525/reduce-space-between-code-chunks-and-code-output-in-rmarkdown-beamer-presentatio
% make code-output smaller
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{fontsize=\scriptsize,commandchars=\\\{\}}
% make console-output smaller:
\makeatletter
\def\verbatim{\scriptsize\@verbatim \frenchspacing\@vobeyspaces \@xverbatim}
\makeatother
\setlength{\OuterFrameSep}{-1pt}
\makeatletter
\preto{\@verbatim}{\topsep=-.5pt \partopsep=-.5pt }
\makeatother
%%%%%%%%%%
%%% Trying to hide some latex from pandoc
%%% https://github.com/jgm/pandoc/issues/3145
\let\Begin\begin
\let\End\end
\begin{document}
\tikzstyle{every picture}+=[remember picture]
$if(title)$
\begin{frame}[plain,label=intro,noframenumbering]
\titlepage
\end{frame}
$endif$
$for(include-before)$
$include-before$
$endfor$
%% $if(toc)$
%% \begin{frame}
%% \tableofcontents[hideallsubsections]
%% \end{frame}
%% $endif$
$body$
$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\begin{frame}[allowframebreaks]{$biblio-title$}
\bibliographytrue
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
\end{frame}
$endif$
$endif$
$if(biblatex)$
\begin{frame}[allowframebreaks]{$biblio-title$}
\bibliographytrue
\printbibliography[heading=none]
\end{frame}
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}