summaryrefslogtreecommitdiff
path: root/main.tex
blob: 26ca6cbbb9ede886639c5a4ee36e9b4b83cb7afe (plain) (blame)
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
% \documentclass[12pt,dvipsnames]{beamer}
\documentclass[
12pt,
dvipsnames,
aspectratio=169
]{beamer}

\usepackage[utf8]{inputenc}
\usepackage[canadian]{babel}

\usetheme[
progressbar=frametitle,
block=fill,
sectionpage=progressbar,
%titleformat section={smallcaps},
]{metropolis}
\usecolortheme[snowy]{owl}
\setbeamercolor{alerted text}{fg = blue}
\setbeamercolor{progress bar}{fg = blue}
\setbeamertemplate{caption}[default]

\usepackage{arevmath}
\setsansfont[
BoldFont={FiraSans-SemiBold.otf},
ItalicFont={FiraSans-BookItalic.otf},
BoldItalicFont={FiraSans-SemiBoldItalic.otf}
]{FiraSans-Book.otf}
\setmonofont{FiraMono-Regular.otf}


\usepackage{pgfpages}
\setbeameroption{show notes on second screen=right}

\usepackage{ifxetex}
\ifxetex
  % Fix invisible text when using pgfpages + xelatex:
  % https://github.com/josephwright/beamer/issues/337
  \AtBeginSection{
    \frame{\insertsectionhead}
  }
  \makeatletter
  \def\beamer@framenotesbegin{% at beginning of slide
    \usebeamercolor[fg]{normal text}
    \gdef\beamer@noteitems{}%
    \gdef\beamer@notes{}%
  }
\makeatother
\fi

\usepackage{luacolor}
\usepackage{lua-ul}

\usepackage{svg}

\usepackage[none]{hyphenat}

\usepackage{appendixnumberbeamer}
% \setbeamercolor{block title example}{fg = mDarkTeal}
% \AtBeginEnvironment{exampleblock}{\setbeamercolor{itemize item}{fg = mDarkTeal}}

\definecolor{definedcarmine}{rgb}{0.59, 0.0, 0.09}
\definecolor{definedpinegreen}{HTML}{006379}
\definecolor{definedfuschia}{RGB}{192,34,136}
\definecolor{definedrred}{HTML}{790000}
\definecolor{definedrblue}{RGB}{0,70,190}
\newcommand{\rred}{definedrred}
\newcommand{\rgreen}{definedpinegreen}
\newcommand{\rblue}{definedrblue}

\newcommand{\resetcolor}{
  % owl
  \setbeamercolor*{frametitle}{
    use=palette primary,
    parent=palette primary,
  }
  \setbeamercolor*{section title}{
    use=normal text,
    fg=normal text.fg
  }
  \setbeamercolor*{alerted text}{
    fg=blue
  }
  % metropolis
  \setbeamercolor*{progress bar}{%
    use=alerted text,
    fg=alerted text.fg,
    bg=alerted text.fg!50!black!30
  }
}
\newcommand{\sectioncolor}[1]{
  \setbeamercolor{frametitle}{fg=#1}
  \setbeamercolor{section title}{fg=#1}
  \setbeamercolor{progress bar}{fg=#1}
  \setbeamercolor{alerted text}{fg=#1}
}
\resetcolor
\newcommand{\grey}[1]{{\color{black!50}{#1}}}

\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\newcommand{\backupbegin}{
  \newcounter{finalframe}
  \setcounter{finalframe}{\value{framenumber}}
}
\newcommand{\backupend}{
  \setcounter{framenumber}{\value{finalframe}}
}

\usepackage{tikz}
\usepackage{forest}
\usepackage{tikz-cd}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{positioning}
\usetikzlibrary{matrix}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{plothandlers}
\usetikzlibrary{decorations}

\tikzset{
  invisible/.style={opacity=0},
  visible on/.style={alt={#1{}{invisible}}},
  alt/.code args={<#1>#2#3}{%
    \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}%
  }
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% absolute positioning of typeset material
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% https://tex.stackexchange.com/questions/311007/change-package-option-overlay-from-textpos-package-in-document/311031#311031
\newcommand{\placetextbox}[4][center]{%
  % [#1]: box anchor: center (default) |
  % south west | west | north west | north |
  % north east | east | south east | south |
  % mid west | mid | mid east |
  % base west | base | base east
  % #2: horizontal position (fraction of page width)
  % #3: vertical position (fraction of page height)
  % #4: content
  %
  \tikz[remember picture,overlay,x=\paperwidth,y=\paperheight]{%
    \node[anchor=#1,inner sep=0pt]
    at ($(current page.south west)+(#2,#3)$) {#4};
  }%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Useful shortcuts for math fonts
\newcommand{\ms}{\mathsf}
\newcommand{\mb}{\mathbf}
\newcommand{\mi}{\mathit}
\newcommand{\mt}{\mathtt}
\newcommand{\mc}{\mathcal}
\newcommand{\mf}{\mathfrak}

\title{TITLE}
\subtitle{SUBTITLE}
\date{CONFERENCE}
\author{Ryan Kavanagh}
\institute[UQAM]{Université du Québec à Montréal}
\def\insertthanks{Nous remercions le Conseil de recherches en sciences naturelles et en génie du Canada (CRSNG) de son soutien.}
%\def\insertthanks{We acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC).}

\setbeamertemplate{thanks}{%
  \vspace*{3mm}
  \parindent 0em\noindent%
  \raggedright
  \usebeamercolor{footnote}\scriptsize\insertthanks\par%
}

% Taken from {beamerinnerthememetropolis}[2017/01/23 Metropolis inner theme]
\setbeamertemplate{title page}{
  \setcounter{footnote}{0}
  \begin{minipage}[b][\paperheight]{\textwidth}
    \ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi
    \vfill%
    \ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
    \ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
    \usebeamertemplate*{title separator}
    \ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
    \ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
    \ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
    \ifx\insertthanks\@empty\else\usebeamertemplate*{thanks}\fi
    \vfill
    \vspace*{1mm}
  \end{minipage}
}

\newenvironment<>{question}[1]{\begin{exampleblock}{Question}{#1}}{\end{exampleblock}}
\newenvironment<>{fact}[1]{\begin{exampleblock}{Fact}{#1}}{\end{exampleblock}}
\newtheorem{proposition}[theorem]{Proposition}

\newcommand{\nti}[1]{\note[item]{#1}}
\newcommand{\tikzmark}[1]{\tikz[remember picture] \node[coordinate] (#1) {#1};}

\usepackage{etoolbox}

\begin{document}

\maketitle

\begin{frame}[t]
  \nti{A Note}
  \frametitle{A Title}
\end{frame}

% To change the theme colour to, e.g., lavender:
% \renewcommand{\currcolor}{lavender}
% To reset it:
% \newcommand{\resetcolor}{\def\currcolor{mDarkTeal}}

\begin{frame}[allowframebreaks]
  \frametitle{Related Work}

  \begin{thebibliography}{abcdef}

  \bibitem[AJ95]{AJ95}
    Abramsky, Samson and Achim~Jung.
    \newblock Domain Theory
    \newblock {\em Handbook of Logic in Computer Science}. Vol 3, 1995.

  \bibitem[BE]{BE}
    Bloom, Stephen L. and Zolt{\'a}n {\'E}sik.
    \newblock Some Equational Laws of Initiality in {2CCC}'s
    \newblock {\em International Journal of Foundations of Computer
      Science}, \textbf{6}(2):95-118, 1995.

  \end{thebibliography}
\end{frame}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-command-extra-options: "-shell-escape"
%%% TeX-master: t
%%% End: