summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-03-28 17:16:20 -0400
committerRyan Kavanagh <rak@rak.ac>2024-03-28 17:16:20 -0400
commit5fbc27b49ca69183a19ccdf4a86b6181a4a7a88e (patch)
treebae8ada8f42295a4f9d1577dad71fc72d316ccb4
parentDocument how to revert colour (diff)
Modernize templateHEADmaster
-rw-r--r--main.tex166
1 files changed, 125 insertions, 41 deletions
diff --git a/main.tex b/main.tex
index 1c0e6ed..26ca6cb 100644
--- a/main.tex
+++ b/main.tex
@@ -1,44 +1,103 @@
-\documentclass[12pt,dvipsnames]{beamer}
+% \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{pgfpages}
+\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}
-\usetheme[progressbar=frametitle]{metropolis}
-% \usepackage{appendixnumberbeamer}
-\setbeamercolor{block title example}{fg = mDarkTeal}
-\AtBeginEnvironment{exampleblock}{\setbeamercolor{itemize item}{fg =
- mDarkTeal}}
-\setbeamertemplate{caption}[default]
-\newcommand{\resetcolor}{\def\currcolor{mDarkTeal}}
-\newcommand{\currcolor}{}
-\resetcolor
-\setbeamercolor{frametitle}{bg=\currcolor}
-\setbeamercolor{section title}{fg=\currcolor}
+\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{color}
+\usepackage{luacolor}
+\usepackage{lua-ul}
-\newcommand{\rgreen}{mDarkTeal}
-\newcommand{\roran}{orange}
-\definecolor{definedrblue}{RGB}{8,0,128}
-\definecolor{definedpinegreen}{RGB}{1,121,111}
-\definecolor{definedfuschia}{RGB}{202,44,146}
-\definecolor{definedcarmine}{rgb}{0.59, 0.0, 0.09}
-\definecolor{lavender}{rgb}{0.67, 0.38, 0.8}
+\usepackage{svg}
-\newcommand{\red}[1]{{\color{Maroon}{#1}}}
-\newcommand{\darkred}[1]{{\color{definedcarmine}{#1}}}
-\newcommand{\green}[1]{{\color{definedpinegreen}{#1}}}
-\newcommand{\blue}[1]{{\color{definedrblue}{#1}}}
-\newcommand{\grey}[1]{{\color{mDarkTeal!75}{#1}}}
-\newcommand{\orange}[1]{{\color{orange}{#1}}}
-\newcommand{\fuschia}[1]{{\color{definedfuschia}{#1}}}
-\newcommand{\lavender}[1]{{\color{lavender}{#1}}}
+\usepackage[none]{hyphenat}
-\usepackage{amsmath}
-\usepackage{amsfonts}
+\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}
@@ -102,7 +161,34 @@
\subtitle{SUBTITLE}
\date{CONFERENCE}
\author{Ryan Kavanagh}
-\institute{Carnegie Mellon University}
+\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}}
@@ -111,9 +197,6 @@
\newcommand{\nti}[1]{\note[item]{#1}}
\newcommand{\tikzmark}[1]{\tikz[remember picture] \node[coordinate] (#1) {#1};}
-\tikzset{node/.style = {align=center,draw=\roran, very thick,
- fill=\rgreen,rounded corners,text = white, text centered}}
-
\usepackage{etoolbox}
\begin{document}
@@ -146,13 +229,14 @@
\newblock {\em International Journal of Foundations of Computer
Science}, \textbf{6}(2):95-118, 1995.
- \bibitem[F94]{F94}
- Fiore, Marcelo P.
- \newblock Axiomatic Domain Theory in Categories of\\
- Partial Maps
- \newblock PhD thesis. The University of Edinburgh, 1994.
-
\end{thebibliography}
\end{frame}
\end{document}
+
+%%% Local Variables:
+%%% mode: latex
+%%% TeX-engine: luatex
+%%% TeX-command-extra-options: "-shell-escape"
+%%% TeX-master: t
+%%% End: