Port the template from beamer to ltx-talk
Beamer cannot produce a genuinely tagged PDF. The master template validates as PDF/UA-2 only because tagpdf marks everything it was not told about as decorative, so a screen reader gets the frame titles and nothing else. Beamer 3.77 then made matters worse by refusing \DocumentMetadata outright, which breaks tagging on TeX Live 2025 and leaves the deck failing validation altogether. ltx-talk was written by the LaTeX Project with tagging as a design goal. The slides built here carry real paragraphs, lists as L/LI/Lbl/LBody, sections as headings, formulas as MathML, and alt text that reaches the PDF. veraPDF passes on the strength of that structure rather than in spite of its absence. The metropolis theme files go with beamer; trantor replaces them. Fonts, figures and the purple palette are unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
12
slides_template/.gitignore
vendored
12
slides_template/.gitignore
vendored
@@ -12,3 +12,15 @@
|
|||||||
/*.snm
|
/*.snm
|
||||||
/*.xdv
|
/*.xdv
|
||||||
/notes.config
|
/notes.config
|
||||||
|
*.aux
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.fls
|
||||||
|
*.log
|
||||||
|
*.nav
|
||||||
|
*.notes
|
||||||
|
*.out
|
||||||
|
*.snm
|
||||||
|
*.toc
|
||||||
|
*.pdf
|
||||||
|
*.png
|
||||||
|
*-luamml-mathml.html
|
||||||
|
|||||||
@@ -1,48 +1,41 @@
|
|||||||
#!/usr/bin/make
|
#!/usr/bin/make
|
||||||
|
|
||||||
all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
# Slides are the deliverable: this is the build that gets uploaded and the one
|
||||||
pdf: all
|
# that has to validate. The notes build is assembled from it afterwards and is
|
||||||
|
# only ever looked at while presenting.
|
||||||
|
|
||||||
|
# veraPDF's installer leaves a directory called verapdf on PATH which shadows
|
||||||
|
# the launcher inside it, so the full path is used. Override if yours differs.
|
||||||
|
VERAPDF ?= $(HOME)/bin/verapdf/verapdf
|
||||||
|
|
||||||
|
TEX := $(wildcard *.tex)
|
||||||
|
PDF := $(patsubst %.tex,%.pdf,$(TEX))
|
||||||
|
JOB := $(patsubst %.tex,%,$(TEX))
|
||||||
|
|
||||||
|
all: slides
|
||||||
|
slides: $(PDF)
|
||||||
|
|
||||||
%.pdf: %.tex
|
%.pdf: %.tex
|
||||||
latexmk -f -lualatex $<
|
latexmk -f -lualatex $<
|
||||||
# latexmk -f -pdf -pdflatex="xelatex -synctex=1 %S %O" -verbose -file-line-error -interaction=nonstopmode $<
|
|
||||||
# qpdf --qdf --object-streams=disable $@ - | sponge $@
|
|
||||||
# sed -e 's|/PageLabels|/BageLapels|g' < $@ |sponge $@
|
|
||||||
# qpdf $@ - | sponge $@
|
|
||||||
|
|
||||||
# by default, we produce combined notes/slides output
|
# Double-width pages, slide left and notes right, for dspdfviewer and pdfpc.
|
||||||
notes.config:
|
notes: slides
|
||||||
echo '\setbeameroption{show notes on second screen}' > notes.config
|
./mknotes $(JOB)
|
||||||
|
|
||||||
# rules for generating notesonly
|
# PDF/UA-2 conformance of the slides. Only the slides build is expected to
|
||||||
notesonly-config:
|
# pass; the assembled notes PDF is untagged by design.
|
||||||
echo '\setbeameroption{show only notes}' > notes.config
|
validate: slides
|
||||||
notesonly: notesonly-config pdf
|
$(VERAPDF) -f ua2 --format text $(PDF)
|
||||||
|
|
||||||
# rules for generating slides only
|
viewpdf: slides
|
||||||
slides-config:
|
evince $(PDF)
|
||||||
echo '' > notes.config
|
|
||||||
slides: slides-config pdf
|
|
||||||
|
|
||||||
viewpdf: all
|
pdfpc: notes
|
||||||
evince *.pdf
|
pdfpc -n right $(JOB)-notes.pdf
|
||||||
|
|
||||||
spell:
|
clean:
|
||||||
aspell -c -t --tex-check-comments -b text.tex
|
latexmk -C $(TEX)
|
||||||
|
rm -f *.notes *.tmp *.nav *.snm *.pdfpc *-luamml-mathml.html
|
||||||
|
rm -f $(JOB)-notes.pdf
|
||||||
|
|
||||||
vc:
|
.PHONY: all slides notes validate viewpdf pdfpc clean
|
||||||
resources/vc-git
|
|
||||||
|
|
||||||
clean:
|
|
||||||
latexmk -C *.tex
|
|
||||||
rm -f *.tmp
|
|
||||||
rm -f *.nav
|
|
||||||
rm -f *.snm
|
|
||||||
rm -f vc
|
|
||||||
rm -f notes.config
|
|
||||||
rm -f *.pdfpc
|
|
||||||
|
|
||||||
pdfpc:
|
|
||||||
pdfpc -n right *.pdf
|
|
||||||
|
|
||||||
.PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell
|
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
%%
|
|
||||||
%% This is file `beamercolorthememetropolis-highcontrast.sty',
|
|
||||||
%% generated with the docstrip utility.
|
|
||||||
%%
|
|
||||||
%% The original source files were:
|
|
||||||
%%
|
|
||||||
%% beamercolorthememetropolis-highcontrast.dtx (with options: `package')
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
||||||
%% contributors can be found at
|
|
||||||
%%
|
|
||||||
%% https://github.com/matze/mtheme/graphs/contributors
|
|
||||||
%%
|
|
||||||
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
||||||
%%
|
|
||||||
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
||||||
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{beamercolorthememetropolis-highcontrast}[2017/01/23 Metropolis color theme]
|
|
||||||
\usecolortheme{metropolis}
|
|
||||||
|
|
||||||
\definecolor{mAlert}{HTML}{AD003D}
|
|
||||||
\definecolor{mExample}{HTML}{005580}
|
|
||||||
|
|
||||||
\setbeamercolor{normal text}{%
|
|
||||||
fg=black,
|
|
||||||
bg=white
|
|
||||||
}
|
|
||||||
\setbeamercolor{alerted text}{%
|
|
||||||
fg=mAlert,
|
|
||||||
}
|
|
||||||
\setbeamercolor{example text}{%
|
|
||||||
fg=mExample,
|
|
||||||
}
|
|
||||||
\mode<all>
|
|
||||||
\endinput
|
|
||||||
%%
|
|
||||||
%% End of file `beamercolorthememetropolis-highcontrast.sty'.
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
%%
|
|
||||||
%% This is file `beamercolorthememetropolis.sty',
|
|
||||||
%% generated with the docstrip utility.
|
|
||||||
%%
|
|
||||||
%% The original source files were:
|
|
||||||
%%
|
|
||||||
%% beamercolorthememetropolis.dtx (with options: `package')
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
||||||
%% contributors can be found at
|
|
||||||
%%
|
|
||||||
%% https://github.com/matze/mtheme/graphs/contributors
|
|
||||||
%%
|
|
||||||
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
||||||
%%
|
|
||||||
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
||||||
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{beamercolorthememetropolis}[2017/01/23 Metropolis color theme]
|
|
||||||
\RequirePackage{pgfopts}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/color/block/.cd,
|
|
||||||
.is choice,
|
|
||||||
transparent/.code=\metropolis@block@transparent,
|
|
||||||
fill/.code=\metropolis@block@fill,
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/color/background/.cd,
|
|
||||||
.is choice,
|
|
||||||
dark/.code=\metropolis@colors@dark,
|
|
||||||
light/.code=\metropolis@colors@light,
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@color@setdefaults}{
|
|
||||||
\pgfkeys{/metropolis/color/.cd,
|
|
||||||
background=light,
|
|
||||||
block=transparent,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\definecolor{mDarkBrown}{HTML}{604c38}
|
|
||||||
\definecolor{mDarkTeal}{HTML}{23373b}
|
|
||||||
\definecolor{mLightBrown}{HTML}{EB811B}
|
|
||||||
\definecolor{mLightGreen}{HTML}{14B03D}
|
|
||||||
\newcommand{\metropolis@colors@dark}{
|
|
||||||
\setbeamercolor{normal text}{%
|
|
||||||
fg=black!2,
|
|
||||||
bg=mDarkTeal
|
|
||||||
}
|
|
||||||
\usebeamercolor[fg]{normal text}
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@colors@light}{
|
|
||||||
\setbeamercolor{normal text}{%
|
|
||||||
fg=mDarkTeal,
|
|
||||||
bg=black!2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamercolor{alerted text}{%
|
|
||||||
fg=mLightBrown
|
|
||||||
}
|
|
||||||
\setbeamercolor{example text}{%
|
|
||||||
fg=mLightGreen
|
|
||||||
}
|
|
||||||
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
|
|
||||||
\setbeamercolor{author}{use=normal text, parent=normal text}
|
|
||||||
\setbeamercolor{date}{use=normal text, parent=normal text}
|
|
||||||
\setbeamercolor{institute}{use=normal text, parent=normal text}
|
|
||||||
\setbeamercolor{structure}{use=normal text, fg=normal text.fg}
|
|
||||||
\setbeamercolor{palette primary}{%
|
|
||||||
use=normal text,
|
|
||||||
fg=normal text.bg,
|
|
||||||
bg=normal text.fg
|
|
||||||
}
|
|
||||||
\setbeamercolor{frametitle}{%
|
|
||||||
use=palette primary,
|
|
||||||
parent=palette primary
|
|
||||||
}
|
|
||||||
\setbeamercolor{progress bar}{%
|
|
||||||
use=alerted text,
|
|
||||||
fg=alerted text.fg,
|
|
||||||
bg=alerted text.fg!50!black!30
|
|
||||||
}
|
|
||||||
\setbeamercolor{title separator}{
|
|
||||||
use=progress bar,
|
|
||||||
parent=progress bar
|
|
||||||
}
|
|
||||||
\setbeamercolor{progress bar in head/foot}{%
|
|
||||||
use=progress bar,
|
|
||||||
parent=progress bar
|
|
||||||
}
|
|
||||||
\setbeamercolor{progress bar in section page}{
|
|
||||||
use=progress bar,
|
|
||||||
parent=progress bar
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@block@transparent}{
|
|
||||||
\setbeamercolor{block title}{%
|
|
||||||
use=normal text,
|
|
||||||
fg=normal text.fg,
|
|
||||||
bg=
|
|
||||||
}
|
|
||||||
\setbeamercolor{block body}{
|
|
||||||
bg=
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@block@fill}{
|
|
||||||
\setbeamercolor{block title}{%
|
|
||||||
use=normal text,
|
|
||||||
fg=normal text.fg,
|
|
||||||
bg=normal text.bg!80!fg
|
|
||||||
}
|
|
||||||
\setbeamercolor{block body}{
|
|
||||||
use={block title, normal text},
|
|
||||||
bg=block title.bg!50!normal text.bg
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamercolor{block title alerted}{%
|
|
||||||
use={block title, alerted text},
|
|
||||||
bg=block title.bg,
|
|
||||||
fg=alerted text.fg
|
|
||||||
}
|
|
||||||
\setbeamercolor{block title example}{%
|
|
||||||
use={block title, example text},
|
|
||||||
bg=block title.bg,
|
|
||||||
fg=example text.fg
|
|
||||||
}
|
|
||||||
\setbeamercolor{block body alerted}{use=block body, parent=block body}
|
|
||||||
\setbeamercolor{block body example}{use=block body, parent=block body}
|
|
||||||
\setbeamercolor{footnote}{fg=normal text.fg!90}
|
|
||||||
\setbeamercolor{footnote mark}{fg=.}
|
|
||||||
\setbeamercolor{bibliography entry author}{fg=, bg=}
|
|
||||||
\setbeamercolor{bibliography entry title}{fg=, bg=}
|
|
||||||
\setbeamercolor{bibliography entry location}{fg=, bg=}
|
|
||||||
\setbeamercolor{bibliography entry note}{fg=, bg=}
|
|
||||||
\metropolis@color@setdefaults
|
|
||||||
\ProcessPgfPackageOptions{/metropolis/color}
|
|
||||||
\mode<all>
|
|
||||||
\endinput
|
|
||||||
%%
|
|
||||||
%% End of file `beamercolorthememetropolis.sty'.
|
|
||||||
@@ -1,325 +0,0 @@
|
|||||||
%%
|
|
||||||
%% This is file `beamerfontthememetropolis.sty',
|
|
||||||
%% generated with the docstrip utility.
|
|
||||||
%%
|
|
||||||
%% The original source files were:
|
|
||||||
%%
|
|
||||||
%% beamerfontthememetropolis.dtx (with options: `package')
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
||||||
%% contributors can be found at
|
|
||||||
%%
|
|
||||||
%% https://github.com/matze/mtheme/graphs/contributors
|
|
||||||
%%
|
|
||||||
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
||||||
%%
|
|
||||||
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
||||||
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{beamerfontthememetropolis}[2017/01/23 Metropolis font theme]
|
|
||||||
\RequirePackage{etoolbox}
|
|
||||||
\RequirePackage{ifxetex}
|
|
||||||
\RequirePackage{ifluatex}
|
|
||||||
\RequirePackage{pgfopts}
|
|
||||||
\ifboolexpr{bool {xetex} or bool {luatex}}{
|
|
||||||
\@ifpackageloaded{fontspec}{
|
|
||||||
\PassOptionsToPackage{no-math}{fontspec}
|
|
||||||
}{
|
|
||||||
\RequirePackage[no-math]{fontspec}
|
|
||||||
}
|
|
||||||
\newcounter{fontsnotfound}
|
|
||||||
\newcommand{\checkfont}[1]{%
|
|
||||||
\suppressfontnotfounderror=1%
|
|
||||||
\font\x = "#1" at 10pt
|
|
||||||
\selectfont
|
|
||||||
\ifx\x\nullfont%
|
|
||||||
\stepcounter{fontsnotfound}%
|
|
||||||
\fi%
|
|
||||||
\suppressfontnotfounderror=0%
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\iffontsavailable}[3]{%
|
|
||||||
\setcounter{fontsnotfound}{0}%
|
|
||||||
\expandafter\forcsvlist\expandafter%
|
|
||||||
\checkfont\expandafter{#1}%
|
|
||||||
\ifnum\value{fontsnotfound}=0%
|
|
||||||
#2%
|
|
||||||
\else%
|
|
||||||
#3%
|
|
||||||
\fi%
|
|
||||||
}
|
|
||||||
\iffontsavailable{Fira Sans Light,%
|
|
||||||
Fira Sans Light Italic,%
|
|
||||||
Fira Sans,%
|
|
||||||
Fira Sans Italic}%
|
|
||||||
{%
|
|
||||||
\setsansfont[ItalicFont={Fira Sans Light Italic},%
|
|
||||||
BoldFont={Fira Sans},%
|
|
||||||
BoldItalicFont={Fira Sans Italic}]%
|
|
||||||
{Fira Sans Light}%
|
|
||||||
}{%
|
|
||||||
\iffontsavailable{Fira Sans Light OT,%
|
|
||||||
Fira Sans Light Italic OT,%
|
|
||||||
Fira Sans OT,%
|
|
||||||
Fira Sans Italic OT}%
|
|
||||||
{%
|
|
||||||
\setsansfont[ItalicFont={Fira Sans Light Italic OT},%
|
|
||||||
BoldFont={Fira Sans OT},%
|
|
||||||
BoldItalicFont={Fira Sans Italic OT}]%
|
|
||||||
{Fira Sans Light OT}%
|
|
||||||
}{%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Could not find Fira Sans fonts%
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\iffontsavailable{Fira Mono, Fira Mono Bold}{%
|
|
||||||
\setmonofont[BoldFont={Fira Mono Medium}]{Fira Mono}%
|
|
||||||
}{%
|
|
||||||
\iffontsavailable{Fira Mono OT, Fira Mono Bold OT}{%
|
|
||||||
\setmonofont[BoldFont={Fira Mono Medium OT}]{Fira Mono OT}%
|
|
||||||
}{%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Could not find Fira Mono fonts%
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\AtBeginEnvironment{tabular}{%
|
|
||||||
\addfontfeature{Numbers={Monospaced}}%
|
|
||||||
}
|
|
||||||
}{%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
You need to compile with XeLaTeX or LuaLaTeX to use the Fira fonts%
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamerfont{title}{size=\Large,%
|
|
||||||
series=\bfseries}
|
|
||||||
\setbeamerfont{author}{size=\small}
|
|
||||||
\setbeamerfont{date}{size=\small}
|
|
||||||
\setbeamerfont{section title}{size=\Large,%
|
|
||||||
series=\bfseries}
|
|
||||||
\setbeamerfont{block title}{size=\normalsize,%
|
|
||||||
series=\bfseries}
|
|
||||||
\setbeamerfont{block title alerted}{size=\normalsize,%
|
|
||||||
series=\bfseries}
|
|
||||||
\setbeamerfont*{subtitle}{size=\large}
|
|
||||||
\setbeamerfont{frametitle}{size=\large,%
|
|
||||||
series=\bfseries}
|
|
||||||
\setbeamerfont{caption}{size=\small}
|
|
||||||
\setbeamerfont{caption name}{series=\bfseries}
|
|
||||||
\setbeamerfont{description item}{series=\bfseries}
|
|
||||||
\setbeamerfont{page number in head/foot}{size=\scriptsize}
|
|
||||||
\setbeamerfont{bibliography entry author}{size=\normalsize,%
|
|
||||||
series=\normalfont}
|
|
||||||
\setbeamerfont{bibliography entry title}{size=\normalsize,%
|
|
||||||
series=\bfseries}
|
|
||||||
\setbeamerfont{bibliography entry location}{size=\normalsize,%
|
|
||||||
series=\normalfont}
|
|
||||||
\setbeamerfont{bibliography entry note}{size=\small,%
|
|
||||||
series=\normalfont}
|
|
||||||
\setbeamerfont{standout}{size=\Large,%
|
|
||||||
series=\bfseries}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/font/titleformat title/.cd,
|
|
||||||
.is choice,
|
|
||||||
regular/.code={%
|
|
||||||
\let\metropolis@titleformat\@empty%
|
|
||||||
\setbeamerfont{title}{shape=\normalfont}%
|
|
||||||
},
|
|
||||||
smallcaps/.code={%
|
|
||||||
\let\metropolis@titleformat\@empty%
|
|
||||||
\setbeamerfont{title}{shape=\scshape}%
|
|
||||||
},
|
|
||||||
allsmallcaps/.code={%
|
|
||||||
\let\metropolis@titleformat\lowercase%
|
|
||||||
\setbeamerfont{title}{shape=\scshape}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat title=allsmallcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
allcaps/.code={%
|
|
||||||
\let\metropolis@titleformat\uppercase%
|
|
||||||
\setbeamerfont{title}{shape=\normalfont}
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat title=allcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/font/titleformat subtitle/.cd,
|
|
||||||
.is choice,
|
|
||||||
regular/.code={%
|
|
||||||
\let\metropolis@subtitleformat\@empty%
|
|
||||||
\setbeamerfont{subtitle}{shape=\normalfont}%
|
|
||||||
},
|
|
||||||
smallcaps/.code={%
|
|
||||||
\let\metropolis@subtitleformat\@empty%
|
|
||||||
\setbeamerfont{subtitle}{shape=\scshape}%
|
|
||||||
},
|
|
||||||
allsmallcaps/.code={%
|
|
||||||
\let\metropolis@subtitleformat\lowercase%
|
|
||||||
\setbeamerfont{subtitle}{shape=\scshape}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat subtitle=allsmallcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
allcaps/.code={%
|
|
||||||
\let\metropolis@subtitleformat\uppercase%
|
|
||||||
\setbeamerfont{subtitle}{shape=\normalfont}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat subtitle=allcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/font/titleformat section/.cd,
|
|
||||||
.is choice,
|
|
||||||
regular/.code={%
|
|
||||||
\let\metropolis@sectiontitleformat\@empty%
|
|
||||||
\setbeamerfont{section title}{shape=\normalfont}%
|
|
||||||
},
|
|
||||||
smallcaps/.code={%
|
|
||||||
\let\metropolis@sectiontitleformat\@empty%
|
|
||||||
\setbeamerfont{section title}{shape=\scshape}%
|
|
||||||
},
|
|
||||||
allsmallcaps/.code={%
|
|
||||||
\let\metropolis@sectiontitleformat\MakeLowercase%
|
|
||||||
\setbeamerfont{section title}{shape=\scshape}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat section=allsmallcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
allcaps/.code={%
|
|
||||||
\let\metropolis@sectiontitleformat\MakeUppercase%
|
|
||||||
\setbeamerfont{section title}{shape=\normalfont}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat section=allcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/font/titleformat frame/.cd,
|
|
||||||
.is choice,
|
|
||||||
regular/.code={%
|
|
||||||
\let\metropolis@frametitleformat\@empty%
|
|
||||||
\setbeamerfont{frametitle}{shape=\normalfont}%
|
|
||||||
},
|
|
||||||
smallcaps/.code={%
|
|
||||||
\let\metropolis@frametitleformat\@empty%
|
|
||||||
\setbeamerfont{frametitle}{shape=\scshape}%
|
|
||||||
},
|
|
||||||
allsmallcaps/.code={%
|
|
||||||
\let\metropolis@frametitleformat\MakeLowercase%
|
|
||||||
\setbeamerfont{frametitle}{shape=\scshape}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat frame=allsmallcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
allcaps/.code={%
|
|
||||||
\let\metropolis@frametitleformat\MakeUppercase%
|
|
||||||
\setbeamerfont{frametitle}{shape=\normalfont}
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat frame=allcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/font/.cd,
|
|
||||||
titleformattitle/.code=\pgfkeysalso{titleformat title=#1},
|
|
||||||
titleformatsubtitle/.code=\pgfkeysalso{titleformat subtitle=#1},
|
|
||||||
titleformatsection/.code=\pgfkeysalso{titleformat section=#1},
|
|
||||||
titleformatframe/.code=\pgfkeysalso{titleformat frame=#1},
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@font@setdefaults}{
|
|
||||||
\pgfkeys{/metropolis/font/.cd,
|
|
||||||
titleformat title=regular,
|
|
||||||
titleformat subtitle=regular,
|
|
||||||
titleformat section=regular,
|
|
||||||
titleformat frame=regular,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\def\metropolis@titleformat#1{#1}
|
|
||||||
\def\metropolis@subtitleformat#1{#1}
|
|
||||||
\def\metropolis@sectiontitleformat#1{#1}
|
|
||||||
\def\metropolis@frametitleformat#1{#1}
|
|
||||||
\patchcmd{\beamer@title}%
|
|
||||||
{\def\inserttitle{#2}}%
|
|
||||||
{\def\inserttitle{\metropolis@titleformat{#2}}}%
|
|
||||||
{}%
|
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching title failed}\@ehc}
|
|
||||||
\patchcmd{\beamer@subtitle}%
|
|
||||||
{\def\insertsubtitle{#2}}%
|
|
||||||
{\def\insertsubtitle{\metropolis@subtitleformat{#2}}}%
|
|
||||||
{}%
|
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching subtitle failed}\@ehc}
|
|
||||||
\patchcmd{\sectionentry}
|
|
||||||
{\def\insertsectionhead{#2}}
|
|
||||||
{\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}}
|
|
||||||
{}
|
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
|
|
||||||
\@tempswafalse
|
|
||||||
\patchcmd{\beamer@section}
|
|
||||||
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
|
|
||||||
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
||||||
\noexpand\metropolis@sectiontitleformat{\unexpanded{#1}}}}}
|
|
||||||
{\@tempswatrue}
|
|
||||||
{}
|
|
||||||
\patchcmd{\beamer@section}
|
|
||||||
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
|
||||||
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
|
|
||||||
\metropolis@sectiontitleformat{#1}}}}
|
|
||||||
{\@tempswatrue}
|
|
||||||
{}
|
|
||||||
\patchcmd{\beamer@section}
|
|
||||||
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
|
||||||
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
||||||
\noexpand\metropolis@sectiontitleformat{#1}}}}
|
|
||||||
{\@tempswatrue}
|
|
||||||
{}
|
|
||||||
\if@tempswa\else
|
|
||||||
\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
|
|
||||||
\fi
|
|
||||||
\@tempswafalse
|
|
||||||
\patchcmd{\beamer@subsection}
|
|
||||||
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
|
|
||||||
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
||||||
\noexpand\metropolis@sectiontitleformat{\unexpanded{#1}}}}}
|
|
||||||
{\@tempswatrue}
|
|
||||||
{}
|
|
||||||
\patchcmd{\beamer@subsection}
|
|
||||||
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
|
||||||
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
|
|
||||||
\metropolis@sectiontitleformat{#1}}}}
|
|
||||||
{\@tempswatrue}
|
|
||||||
{}
|
|
||||||
\patchcmd{\beamer@subsection}
|
|
||||||
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
|
||||||
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
||||||
\noexpand\metropolis@sectiontitleformat{#1}}}}
|
|
||||||
{\@tempswatrue}
|
|
||||||
{}
|
|
||||||
\if@tempswa\else
|
|
||||||
\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
|
|
||||||
\fi
|
|
||||||
\patchcmd{\beamer@@frametitle}
|
|
||||||
{{%
|
|
||||||
\gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
|
|
||||||
\usebeamertemplate*{frametitle continuation}\fi}}%
|
|
||||||
\gdef\beamer@frametitle{#2}%
|
|
||||||
\gdef\beamer@shortframetitle{#1}%
|
|
||||||
}}
|
|
||||||
{{%
|
|
||||||
\gdef\insertframetitle{{\metropolis@frametitleformat{#2}\ifnum%
|
|
||||||
\beamer@autobreakcount>0\relax{}\space%
|
|
||||||
\usebeamertemplate*{frametitle continuation}\fi}}%
|
|
||||||
\gdef\beamer@frametitle{#2}%
|
|
||||||
\gdef\beamer@shortframetitle{#1}%
|
|
||||||
}}
|
|
||||||
{}
|
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching frame title failed}\@ehc}
|
|
||||||
\metropolis@font@setdefaults
|
|
||||||
\ProcessPgfPackageOptions{/metropolis/font}
|
|
||||||
\endinput
|
|
||||||
%%
|
|
||||||
%% End of file `beamerfontthememetropolis.sty'.
|
|
||||||
@@ -1,293 +0,0 @@
|
|||||||
%%
|
|
||||||
%% This is file `beamerinnerthememetropolis.sty',
|
|
||||||
%% generated with the docstrip utility.
|
|
||||||
%%
|
|
||||||
%% The original source files were:
|
|
||||||
%%
|
|
||||||
%% beamerinnerthememetropolis.dtx (with options: `package')
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
||||||
%% contributors can be found at
|
|
||||||
%%
|
|
||||||
%% https://github.com/matze/mtheme/graphs/contributors
|
|
||||||
%%
|
|
||||||
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
||||||
%%
|
|
||||||
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
||||||
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{beamerinnerthememetropolis}[2017/01/23 Metropolis inner theme]
|
|
||||||
\RequirePackage{etoolbox}
|
|
||||||
\RequirePackage{keyval}
|
|
||||||
\RequirePackage{calc}
|
|
||||||
\RequirePackage{pgfopts}
|
|
||||||
\RequirePackage{tikz}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/inner/sectionpage/.cd,
|
|
||||||
.is choice,
|
|
||||||
none/.code=\metropolis@disablesectionpage,
|
|
||||||
simple/.code={\metropolis@enablesectionpage
|
|
||||||
\setbeamertemplate{section page}[simple]},
|
|
||||||
progressbar/.code={\metropolis@enablesectionpage
|
|
||||||
\setbeamertemplate{section page}[progressbar]},
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/inner/subsectionpage/.cd,
|
|
||||||
.is choice,
|
|
||||||
none/.code=\metropolis@disablesubsectionpage,
|
|
||||||
simple/.code={\metropolis@enablesubsectionpage
|
|
||||||
\setbeamertemplate{section page}[simple]},
|
|
||||||
progressbar/.code={\metropolis@enablesubsectionpage
|
|
||||||
\setbeamertemplate{section page}[progressbar]},
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@inner@setdefaults}{
|
|
||||||
\pgfkeys{/metropolis/inner/.cd,
|
|
||||||
sectionpage=progressbar,
|
|
||||||
subsectionpage=none
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{title page}{
|
|
||||||
\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
|
|
||||||
\vfill
|
|
||||||
\vspace*{1mm}
|
|
||||||
\end{minipage}
|
|
||||||
}
|
|
||||||
\def\maketitle{%
|
|
||||||
\ifbeamer@inframe
|
|
||||||
\titlepage
|
|
||||||
\else
|
|
||||||
\frame[plain,noframenumbering]{\titlepage}
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
\def\titlepage{%
|
|
||||||
\usebeamertemplate{title page}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{title graphic}{
|
|
||||||
\vbox to 0pt {
|
|
||||||
\vspace*{2em}
|
|
||||||
\inserttitlegraphic%
|
|
||||||
}%
|
|
||||||
\nointerlineskip%
|
|
||||||
}
|
|
||||||
\setbeamertemplate{title}{
|
|
||||||
\raggedright%
|
|
||||||
\linespread{1.0}%
|
|
||||||
\inserttitle%
|
|
||||||
\par%
|
|
||||||
\vspace*{0.5em}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{subtitle}{
|
|
||||||
\raggedright%
|
|
||||||
\insertsubtitle%
|
|
||||||
\par%
|
|
||||||
\vspace*{0.5em}
|
|
||||||
}
|
|
||||||
\newlength{\metropolis@titleseparator@linewidth}
|
|
||||||
\setlength{\metropolis@titleseparator@linewidth}{0.4pt}
|
|
||||||
\setbeamertemplate{title separator}{
|
|
||||||
\tikzexternaldisable%
|
|
||||||
\begin{tikzpicture}
|
|
||||||
\fill[fg] (0,0) rectangle (\textwidth, \metropolis@titleseparator@linewidth);
|
|
||||||
\end{tikzpicture}%
|
|
||||||
\tikzexternalenable%
|
|
||||||
\par%
|
|
||||||
}
|
|
||||||
\setbeamertemplate{author}{
|
|
||||||
\vspace*{2em}
|
|
||||||
\insertauthor%
|
|
||||||
\par%
|
|
||||||
\vspace*{0.25em}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{date}{
|
|
||||||
\insertdate%
|
|
||||||
\par%
|
|
||||||
}
|
|
||||||
\setbeamertemplate{institute}{
|
|
||||||
\vspace*{3mm}
|
|
||||||
\insertinstitute%
|
|
||||||
\par%
|
|
||||||
}
|
|
||||||
\defbeamertemplate{section page}{simple}{
|
|
||||||
\begin{center}
|
|
||||||
\usebeamercolor[fg]{section title}
|
|
||||||
\usebeamerfont{section title}
|
|
||||||
\insertsectionhead\par
|
|
||||||
\ifx\insertsubsectionhead\@empty\else
|
|
||||||
\usebeamercolor[fg]{subsection title}
|
|
||||||
\usebeamerfont{subsection title}
|
|
||||||
\insertsubsectionhead
|
|
||||||
\fi
|
|
||||||
\end{center}
|
|
||||||
}
|
|
||||||
\defbeamertemplate{section page}{progressbar}{
|
|
||||||
\centering
|
|
||||||
\begin{minipage}{22em}
|
|
||||||
\raggedright
|
|
||||||
\usebeamercolor[fg]{section title}
|
|
||||||
\usebeamerfont{section title}
|
|
||||||
\insertsectionhead\\[-1ex]
|
|
||||||
\usebeamertemplate*{progress bar in section page}
|
|
||||||
\par
|
|
||||||
\ifx\insertsubsectionhead\@empty\else%
|
|
||||||
\usebeamercolor[fg]{subsection title}%
|
|
||||||
\usebeamerfont{subsection title}%
|
|
||||||
\insertsubsectionhead
|
|
||||||
\fi
|
|
||||||
\end{minipage}
|
|
||||||
\par
|
|
||||||
\vspace{\baselineskip}
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@disablesectionpage}{
|
|
||||||
\AtBeginSection{
|
|
||||||
% intentionally empty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@enablesectionpage}{
|
|
||||||
\AtBeginSection{
|
|
||||||
\ifbeamer@inframe
|
|
||||||
\sectionpage
|
|
||||||
\else
|
|
||||||
\frame[plain,c,noframenumbering]{\sectionpage}
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{subsection page}{%
|
|
||||||
\usebeamertemplate*{section page}
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@disablesubsectionpage}{
|
|
||||||
\AtBeginSubsection{
|
|
||||||
% intentionally empty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@enablesubsectionpage}{
|
|
||||||
\AtBeginSubsection{
|
|
||||||
\ifbeamer@inframe
|
|
||||||
\subsectionpage
|
|
||||||
\else
|
|
||||||
\frame[plain,c,noframenumbering]{\subsectionpage}
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\newlength{\metropolis@progressonsectionpage}
|
|
||||||
\newlength{\metropolis@progressonsectionpage@linewidth}
|
|
||||||
\setlength{\metropolis@progressonsectionpage@linewidth}{0.4pt}
|
|
||||||
\setbeamertemplate{progress bar in section page}{
|
|
||||||
\setlength{\metropolis@progressonsectionpage}{%
|
|
||||||
\textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
|
|
||||||
}%
|
|
||||||
\tikzexternaldisable%
|
|
||||||
\begin{tikzpicture}
|
|
||||||
\fill[bg] (0,0) rectangle (\textwidth, \metropolis@progressonsectionpage@linewidth);
|
|
||||||
\fill[fg] (0,0) rectangle (\metropolis@progressonsectionpage, \metropolis@progressonsectionpage@linewidth);
|
|
||||||
\end{tikzpicture}%
|
|
||||||
\tikzexternalenable%
|
|
||||||
}
|
|
||||||
\def\inserttotalframenumber{100}
|
|
||||||
\newlength{\metropolis@blocksep}
|
|
||||||
\newlength{\metropolis@blockadjust}
|
|
||||||
\setlength{\metropolis@blocksep}{0.75ex}
|
|
||||||
\setlength{\metropolis@blockadjust}{0.25ex}
|
|
||||||
\providecommand{\metropolis@strut}{%
|
|
||||||
\vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}%
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@block}[1]{
|
|
||||||
\par\vskip\medskipamount%
|
|
||||||
\setlength{\parskip}{0pt}
|
|
||||||
\ifbeamercolorempty[bg]{block title#1}{%
|
|
||||||
\begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}}{%
|
|
||||||
\ifbeamercolorempty[bg]{block title}{%
|
|
||||||
\begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}%
|
|
||||||
}%
|
|
||||||
{%
|
|
||||||
\begin{beamercolorbox}[
|
|
||||||
sep=\dimexpr\metropolis@blocksep-\metropolis@blockadjust\relax,
|
|
||||||
leftskip=\metropolis@blockadjust,
|
|
||||||
rightskip=\dimexpr\metropolis@blockadjust plus 4em\relax
|
|
||||||
]{block title#1}%
|
|
||||||
}}%
|
|
||||||
\usebeamerfont*{block title#1}%
|
|
||||||
\metropolis@strut%
|
|
||||||
\insertblocktitle%
|
|
||||||
\metropolis@strut%
|
|
||||||
\end{beamercolorbox}%
|
|
||||||
\nointerlineskip%
|
|
||||||
\ifbeamercolorempty[bg]{block body#1}{%
|
|
||||||
\begin{beamercolorbox}[vmode]{block body#1}}{
|
|
||||||
\ifbeamercolorempty[bg]{block body}{%
|
|
||||||
\begin{beamercolorbox}[vmode]{block body#1}%
|
|
||||||
}{%
|
|
||||||
\begin{beamercolorbox}[sep=\metropolis@blocksep, vmode]{block body#1}%
|
|
||||||
\vspace{-\metropolis@parskip}
|
|
||||||
}}%
|
|
||||||
\usebeamerfont{block body#1}%
|
|
||||||
\setlength{\parskip}{\metropolis@parskip}%
|
|
||||||
}
|
|
||||||
\setbeamertemplate{block begin}{\metropolis@block{}}
|
|
||||||
\setbeamertemplate{block alerted begin}{\metropolis@block{ alerted}}
|
|
||||||
\setbeamertemplate{block example begin}{\metropolis@block{ example}}
|
|
||||||
\setbeamertemplate{block end}{\end{beamercolorbox}\vspace*{0.2ex}}
|
|
||||||
\setbeamertemplate{block alerted end}{\end{beamercolorbox}\vspace*{0.2ex}}
|
|
||||||
\setbeamertemplate{block example end}{\end{beamercolorbox}\vspace*{0.2ex}}
|
|
||||||
\setbeamertemplate{itemize items}{\textbullet}
|
|
||||||
\setbeamertemplate{caption label separator}{: }
|
|
||||||
\setbeamertemplate{caption}[numbered]
|
|
||||||
\setbeamertemplate{footnote}{%
|
|
||||||
\parindent 0em\noindent%
|
|
||||||
\raggedright
|
|
||||||
\usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
|
|
||||||
}
|
|
||||||
\newlength{\metropolis@parskip}
|
|
||||||
\setlength{\metropolis@parskip}{0.5em}
|
|
||||||
\setlength{\parskip}{\metropolis@parskip}
|
|
||||||
\linespread{1.15}
|
|
||||||
\define@key{beamerframe}{c}[true]{% centered
|
|
||||||
\beamer@frametopskip=0pt plus 1fill\relax%
|
|
||||||
\beamer@framebottomskip=0pt plus 1fill\relax%
|
|
||||||
\beamer@frametopskipautobreak=0pt plus .4\paperheight\relax%
|
|
||||||
\beamer@framebottomskipautobreak=0pt plus .6\paperheight\relax%
|
|
||||||
\def\beamer@initfirstlineunskip{}%
|
|
||||||
}
|
|
||||||
\providebool{metropolis@standout}
|
|
||||||
\define@key{beamerframe}{standout}[true]{%
|
|
||||||
\booltrue{metropolis@standout}
|
|
||||||
\begingroup
|
|
||||||
\setkeys{beamerframe}{c}
|
|
||||||
\setkeys{beamerframe}{noframenumbering}
|
|
||||||
\ifbeamercolorempty[bg]{palette primary}{
|
|
||||||
\setbeamercolor{background canvas}{
|
|
||||||
use=palette primary,
|
|
||||||
bg=-palette primary.fg
|
|
||||||
}
|
|
||||||
}{
|
|
||||||
\setbeamercolor{background canvas}{
|
|
||||||
use=palette primary,
|
|
||||||
bg=palette primary.bg
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamercolor{local structure}{
|
|
||||||
fg=palette primary.fg
|
|
||||||
}
|
|
||||||
\centering
|
|
||||||
\usebeamercolor[fg]{palette primary}
|
|
||||||
\usebeamerfont{standout}
|
|
||||||
}
|
|
||||||
\apptocmd{\beamer@reseteecodes}{%
|
|
||||||
\ifbool{metropolis@standout}{
|
|
||||||
\endgroup
|
|
||||||
\boolfalse{metropolis@standout}
|
|
||||||
}{}
|
|
||||||
}{}{}
|
|
||||||
\metropolis@inner@setdefaults
|
|
||||||
\ProcessPgfPackageOptions{/metropolis/inner}
|
|
||||||
\endinput
|
|
||||||
%%
|
|
||||||
%% End of file `beamerinnerthememetropolis.sty'.
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
%%
|
|
||||||
%% This is file `beamerouterthememetropolis.sty',
|
|
||||||
%% generated with the docstrip utility.
|
|
||||||
%%
|
|
||||||
%% The original source files were:
|
|
||||||
%%
|
|
||||||
%% beamerouterthememetropolis.dtx (with options: `package')
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
||||||
%% contributors can be found at
|
|
||||||
%%
|
|
||||||
%% https://github.com/matze/mtheme/graphs/contributors
|
|
||||||
%%
|
|
||||||
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
||||||
%%
|
|
||||||
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
||||||
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{beamerouterthememetropolis}[2017/01/23 Metropolis outer theme]
|
|
||||||
\RequirePackage{etoolbox}
|
|
||||||
\RequirePackage{calc}
|
|
||||||
\RequirePackage{pgfopts}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/outer/numbering/.cd,
|
|
||||||
.is choice,
|
|
||||||
none/.code=\setbeamertemplate{frame numbering}[none],
|
|
||||||
counter/.code=\setbeamertemplate{frame numbering}[counter],
|
|
||||||
fraction/.code=\setbeamertemplate{frame numbering}[fraction],
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/outer/progressbar/.cd,
|
|
||||||
.is choice,
|
|
||||||
none/.code={%
|
|
||||||
\setbeamertemplate{headline}[plain]
|
|
||||||
\setbeamertemplate{frametitle}[plain]
|
|
||||||
\setbeamertemplate{footline}[plain]
|
|
||||||
},
|
|
||||||
head/.code={\pgfkeys{/metropolis/outer/progressbar=none}
|
|
||||||
\addtobeamertemplate{headline}{}{%
|
|
||||||
\usebeamertemplate*{progress bar in head/foot}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
frametitle/.code={\pgfkeys{/metropolis/outer/progressbar=none}
|
|
||||||
\addtobeamertemplate{frametitle}{}{%
|
|
||||||
\usebeamertemplate*{progress bar in head/foot}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
foot/.code={\pgfkeys{/metropolis/outer/progressbar=none}
|
|
||||||
\addtobeamertemplate{footline}{}{%
|
|
||||||
\usebeamertemplate*{progress bar in head/foot}%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@outer@setdefaults}{
|
|
||||||
\pgfkeys{/metropolis/outer/.cd,
|
|
||||||
numbering=counter,
|
|
||||||
progressbar=none,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{navigation symbols}{}
|
|
||||||
\defbeamertemplate{frame footer}{none}{}
|
|
||||||
\defbeamertemplate{frame footer}{custom}[1]{ #1 }
|
|
||||||
\defbeamertemplate{frame numbering}{none}{}
|
|
||||||
\defbeamertemplate{frame numbering}{counter}{\insertframenumber}
|
|
||||||
\defbeamertemplate{frame numbering}{fraction}{
|
|
||||||
\insertframenumber/\inserttotalframenumber
|
|
||||||
}
|
|
||||||
\defbeamertemplate{headline}{plain}{}
|
|
||||||
\defbeamertemplate{footline}{plain}{%
|
|
||||||
\begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
|
|
||||||
\usebeamerfont{page number in head/foot}%
|
|
||||||
\usebeamertemplate*{frame footer}
|
|
||||||
\hfill%
|
|
||||||
\usebeamertemplate*{frame numbering}
|
|
||||||
\end{beamercolorbox}%
|
|
||||||
}
|
|
||||||
\newlength{\metropolis@frametitle@padding}
|
|
||||||
\setlength{\metropolis@frametitle@padding}{2.2ex}
|
|
||||||
\newcommand{\metropolis@frametitlestrut@start}{
|
|
||||||
\rule{0pt}{\metropolis@frametitle@padding +%
|
|
||||||
\totalheightof{%
|
|
||||||
\ifcsdef{metropolis@frametitleformat}{\metropolis@frametitleformat X}{X}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@frametitlestrut@end}{
|
|
||||||
\rule[-\metropolis@frametitle@padding]{0pt}{\metropolis@frametitle@padding}
|
|
||||||
}
|
|
||||||
\defbeamertemplate{frametitle}{plain}{%
|
|
||||||
\nointerlineskip%
|
|
||||||
\begin{beamercolorbox}[%
|
|
||||||
wd=\paperwidth,%
|
|
||||||
sep=0pt,%
|
|
||||||
leftskip=\metropolis@frametitle@padding,%
|
|
||||||
rightskip=\metropolis@frametitle@padding,%
|
|
||||||
]{frametitle}%
|
|
||||||
\metropolis@frametitlestrut@start%
|
|
||||||
\insertframetitle%
|
|
||||||
\nolinebreak%
|
|
||||||
\metropolis@frametitlestrut@end%
|
|
||||||
\end{beamercolorbox}%
|
|
||||||
}
|
|
||||||
\setbeamertemplate{frametitle continuation}{%
|
|
||||||
\usebeamerfont{frametitle}
|
|
||||||
\romannumeral \insertcontinuationcount
|
|
||||||
}
|
|
||||||
\newlength{\metropolis@progressinheadfoot}
|
|
||||||
\newlength{\metropolis@progressinheadfoot@linewidth}
|
|
||||||
\setlength{\metropolis@progressinheadfoot@linewidth}{0.4pt}
|
|
||||||
\setbeamertemplate{progress bar in head/foot}{
|
|
||||||
\nointerlineskip
|
|
||||||
\setlength{\metropolis@progressinheadfoot}{%
|
|
||||||
\paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
|
|
||||||
}%
|
|
||||||
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
|
|
||||||
\tikzexternaldisable%
|
|
||||||
\begin{tikzpicture}
|
|
||||||
\fill[bg] (0,0) rectangle (\paperwidth, \metropolis@progressinheadfoot@linewidth);
|
|
||||||
\fill[fg] (0,0) rectangle (\metropolis@progressinheadfoot, \metropolis@progressinheadfoot@linewidth);
|
|
||||||
\end{tikzpicture}%
|
|
||||||
\tikzexternalenable%
|
|
||||||
\end{beamercolorbox}
|
|
||||||
}
|
|
||||||
\AtBeginDocument{%
|
|
||||||
\apptocmd{\appendix}{%
|
|
||||||
\pgfkeys{%
|
|
||||||
/metropolis/outer/.cd,
|
|
||||||
numbering=none,
|
|
||||||
progressbar=none}
|
|
||||||
}{}{}
|
|
||||||
}
|
|
||||||
\metropolis@outer@setdefaults
|
|
||||||
\ProcessPgfPackageOptions{/metropolis/outer}
|
|
||||||
\endinput
|
|
||||||
%%
|
|
||||||
%% End of file `beamerouterthememetropolis.sty'.
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
%%
|
|
||||||
%% This is file `beamerthememetropolis.sty',
|
|
||||||
%% generated with the docstrip utility.
|
|
||||||
%%
|
|
||||||
%% The original source files were:
|
|
||||||
%%
|
|
||||||
%% beamerthememetropolis.dtx (with options: `package')
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
||||||
%% contributors can be found at
|
|
||||||
%%
|
|
||||||
%% https://github.com/matze/mtheme/graphs/contributors
|
|
||||||
%%
|
|
||||||
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
||||||
%%
|
|
||||||
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
||||||
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
||||||
%% ---------------------------------------------------------------------------
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
|
||||||
\ProvidesPackage{beamerthememetropolis}
|
|
||||||
[2017/01/23 v1.2 Metropolis Beamer theme]
|
|
||||||
\RequirePackage{etoolbox}
|
|
||||||
\RequirePackage{pgfopts}
|
|
||||||
\pgfkeys{/metropolis/.cd,
|
|
||||||
.search also={
|
|
||||||
/metropolis/inner,
|
|
||||||
/metropolis/outer,
|
|
||||||
/metropolis/color,
|
|
||||||
/metropolis/font,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/titleformat plain/.cd,
|
|
||||||
.is choice,
|
|
||||||
regular/.code={%
|
|
||||||
\let\metropolis@plaintitleformat\@empty%
|
|
||||||
\setbeamerfont{standout}{shape=\normalfont}%
|
|
||||||
},
|
|
||||||
smallcaps/.code={%
|
|
||||||
\let\metropolis@plaintitleformat\@empty%
|
|
||||||
\setbeamerfont{standout}{shape=\scshape}%
|
|
||||||
},
|
|
||||||
allsmallcaps/.code={%
|
|
||||||
\let\metropolis@plaintitleformat\MakeLowercase%
|
|
||||||
\setbeamerfont{standout}{shape=\scshape}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat plain=allsmallcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
allcaps/.code={%
|
|
||||||
\let\metropolis@plaintitleformat\MakeUppercase%
|
|
||||||
\setbeamerfont{standout}{shape=\normalfont}%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
Be aware that titleformat plain=allcaps can lead to problems%
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\pgfkeys{
|
|
||||||
/metropolis/titleformat/.code=\pgfkeysalso{
|
|
||||||
font/titleformat title=#1,
|
|
||||||
font/titleformat subtitle=#1,
|
|
||||||
font/titleformat section=#1,
|
|
||||||
font/titleformat frame=#1,
|
|
||||||
titleformat plain=#1,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\pgfkeys{/metropolis/.cd,
|
|
||||||
usetitleprogressbar/.code=\pgfkeysalso{outer/progressbar=frametitle},
|
|
||||||
noslidenumbers/.code=\pgfkeysalso{outer/numbering=none},
|
|
||||||
usetotalslideindicator/.code=\pgfkeysalso{outer/numbering=fraction},
|
|
||||||
nosectionslide/.code=\pgfkeysalso{inner/sectionpage=none},
|
|
||||||
darkcolors/.code=\pgfkeysalso{color/background=dark},
|
|
||||||
blockbg/.code=\pgfkeysalso{color/block=fill, inner/block=fill},
|
|
||||||
}
|
|
||||||
\newcommand{\metropolis@setdefaults}{
|
|
||||||
\pgfkeys{/metropolis/.cd,
|
|
||||||
titleformat plain=regular,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\providecommand{\tikzexternalenable}{}
|
|
||||||
\providecommand{\tikzexternaldisable}{}
|
|
||||||
\useinnertheme{metropolis}
|
|
||||||
\useoutertheme{metropolis}
|
|
||||||
\usecolortheme{metropolis}
|
|
||||||
\usefonttheme{metropolis}
|
|
||||||
\AtEndPreamble{%
|
|
||||||
\@ifpackageloaded{pgfplots}{%
|
|
||||||
\RequirePackage{pgfplotsthemetol}
|
|
||||||
}{}
|
|
||||||
}
|
|
||||||
\newcommand{\metroset}[1]{\pgfkeys{/metropolis/.cd,#1}}
|
|
||||||
\def\metropolis@plaintitleformat#1{#1}
|
|
||||||
\newcommand{\plain}[2][]{%
|
|
||||||
\PackageWarning{beamerthememetropolis}{%
|
|
||||||
The syntax `\plain' may be deprecated in a future version of Metropolis.
|
|
||||||
Please use a frame with [standout] instead.
|
|
||||||
}
|
|
||||||
\begin{frame}[standout]{#1}
|
|
||||||
\metropolis@plaintitleformat{#2}
|
|
||||||
\end{frame}
|
|
||||||
}
|
|
||||||
\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
|
|
||||||
\metropolis@setdefaults
|
|
||||||
\ProcessPgfOptions{/metropolis}
|
|
||||||
\endinput
|
|
||||||
%%
|
|
||||||
%% End of file `beamerthememetropolis.sty'.
|
|
||||||
@@ -1,306 +1,84 @@
|
|||||||
\DocumentMetadata{
|
\DocumentMetadata{
|
||||||
|
tagging=on,
|
||||||
|
tagging-setup={math/setup=mathml-SE},
|
||||||
pdfstandard=ua-2,
|
pdfstandard=ua-2,
|
||||||
pdfversion=2.0,
|
pdfversion=2.0,
|
||||||
lang=en-US,
|
lang=en-US,
|
||||||
}
|
}
|
||||||
\documentclass[10pt,xcolor=dvipsnames,aspectratio=169]{beamer}
|
\documentclass[aspectratio=169]{ltx-talk}
|
||||||
|
|
||||||
\usetheme{metropolis}
|
|
||||||
\usepackage{appendixnumberbeamer}
|
|
||||||
|
|
||||||
% math needs an OpenType math font so that every glyph carries a Unicode
|
|
||||||
% mapping; the Computer Modern math fonts have no ToUnicode entries
|
|
||||||
\usepackage{unicode-math}
|
\usepackage{unicode-math}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
|
||||||
\usepackage{tagpdf}
|
% Font paths must stay inside this directory. LuaTeX fails to resolve a
|
||||||
\tagpdfsetup{activate-all}
|
% parent-relative Path= and dies with an unhelpful empty-filename error.
|
||||||
|
|
||||||
\usepackage{pgfpages}
|
|
||||||
\input{notes.config}
|
|
||||||
|
|
||||||
\usepackage{pgfplots}
|
|
||||||
\usepgfplotslibrary{dateplot}
|
|
||||||
|
|
||||||
\usepackage{booktabs}
|
|
||||||
\usepackage[scale=2]{ccicons}
|
|
||||||
|
|
||||||
% optional metro things
|
|
||||||
\metroset{numbering=fraction} % page numbering format
|
|
||||||
\metroset{progressbar=foot} % progress bar in footer
|
|
||||||
\metroset{sectionpage=none, subsectionpage=none}
|
|
||||||
\metroset{block=fill}
|
|
||||||
% \metroset{background=light}
|
|
||||||
|
|
||||||
% Tag frame titles as H1 headings for PDF accessibility
|
|
||||||
% (must come after all \metroset calls, which reset the frametitle template)
|
|
||||||
\addtobeamertemplate{frametitle}{%
|
|
||||||
\tagstructbegin{tag=H1}%
|
|
||||||
\tagmcbegin{tag=H1}%
|
|
||||||
}{%
|
|
||||||
\tagmcend%
|
|
||||||
\tagstructend%
|
|
||||||
}
|
|
||||||
|
|
||||||
\setsansfont{OpenSans}[
|
\setsansfont{OpenSans}[
|
||||||
Path = ./fonts/OpenSans/,
|
Path = fonts/OpenSans/, Extension = .ttf,
|
||||||
Extension = .ttf,
|
UprightFont = *-Regular, BoldFont = *-Bold,
|
||||||
UprightFont = *-Regular,
|
ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic]
|
||||||
BoldFont = *-Bold,
|
|
||||||
ItalicFont = *-Italic,
|
|
||||||
BoldItalicFont = *-BoldItalic
|
|
||||||
]
|
|
||||||
|
|
||||||
\setmonofont{RobotoMono}[
|
\setmonofont{RobotoMono}[
|
||||||
Path = ./fonts/RobotoMono/,
|
Path = fonts/RobotoMono/, Extension = .ttf,
|
||||||
Extension = .ttf,
|
UprightFont = *-Regular, BoldFont = *-Bold,
|
||||||
UprightFont = *-Regular,
|
ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic]
|
||||||
BoldFont = *-Bold,
|
|
||||||
ItalicFont = *-Italic,
|
|
||||||
BoldItalicFont = *-BoldItalic
|
|
||||||
]
|
|
||||||
|
|
||||||
\definecolor{makopurple1}{RGB}{57,39,91}
|
\definecolor{makopurple1}{RGB}{57,39,91}
|
||||||
\definecolor{makopurple2}{RGB}{137,119,173}
|
|
||||||
\definecolor{makopurple3}{RGB}{29,13,59}
|
|
||||||
\definecolor{makopurple4}{RGB}{124,99,173}
|
\definecolor{makopurple4}{RGB}{124,99,173}
|
||||||
|
\definecolor{accent}{RGB}{124,99,173}
|
||||||
|
|
||||||
% \definecolor{makopurple1}{HTML}{3b255b}
|
\usepackage{trantor}
|
||||||
\definecolor{makogreen1}{HTML}{0b7a75}
|
\usepackage{talk-notes}
|
||||||
\definecolor{makovanilla1}{HTML}{d7c9aa}
|
|
||||||
\definecolor{makoumber1}{HTML}{7b2d26}
|
|
||||||
\definecolor{makowhite1}{HTML}{f0f3f5}
|
|
||||||
|
|
||||||
\setbeamercolor{normal text}{fg=black, bg=white}
|
% trantor's dark panels (section pages and \standout) default to black
|
||||||
\setbeamercolor{alerted text}{fg=makopurple4}
|
\colorlet{TrantorDark}{makopurple1}
|
||||||
\setbeamercolor{example text}{fg=makoumber1}
|
|
||||||
|
|
||||||
\setbeamercolor{palette primary}{bg=makopurple1, fg=normal text.bg}
|
\hypersetup{pdfdisplaydoctitle=true,pdftitle={Presentation Title}}
|
||||||
\setbeamercolor{palette secondary}{bg=makogreen1,fg=normal text.bg}
|
|
||||||
\setbeamercolor{palette tertiary}{bg=makovanilla1,fg=normal text.bg}
|
|
||||||
\setbeamercolor{palette quaternary}{bg=makoumber1,fg=normal text.bg}
|
|
||||||
\setbeamercolor{structure}{fg=makopurple1, bg=normal text.bg} % itemize, enumerate, etc
|
|
||||||
\setbeamercolor{section in toc}{fg=makopurple1, bg=normal text.bg} % TOC sections
|
|
||||||
|
|
||||||
% \setbeamercolor{progress bar}{fg=makopurple1}
|
\renewcommand{\titlelogo}{%
|
||||||
% \setbeamercolor{title separator}{fg=makopurple1}
|
\includegraphics[height=1.4cm,
|
||||||
% \setbeamercolor{progress bar in head/foot}{fg=makopurple1}
|
alt={Community Data Science Collective logo}]{figures/logo.pdf}}
|
||||||
% \setbeamercolor{progress bar in section page}{fg=makopurple1}
|
|
||||||
|
|
||||||
% this is a fix for a bug with XeTeX and notes pages
|
% \e{} was the beamer template's emphasis command; ltx-talk provides \alert
|
||||||
% see: https://tex.stackexchange.com/questions/232168/normal-text-is-invisible-when-using-beamer-with-notes-and-xelatex
|
\newcommand{\e}[1]{\alert{#1}}
|
||||||
\usepackage{ifthen}
|
|
||||||
\makeatletter
|
|
||||||
\def\beamer@framenotesbegin{% at beginning of slide
|
|
||||||
\ifthenelse{\not \boolean{metropolis@standout}}{%
|
|
||||||
\usebeamercolor[fg]{normal text}%
|
|
||||||
\gdef\beamer@noteitems{}%
|
|
||||||
\gdef\beamer@notes{}%
|
|
||||||
|
|
||||||
}{\gdef\beamer@noteitems{}%
|
|
||||||
\gdef\beamer@notes{}%
|
|
||||||
}
|
|
||||||
}
|
|
||||||
% redfine the notes type to clear things (working around the same bug)
|
|
||||||
% https://tex.stackexchange.com/questions/28966/change-beamer-notes-list-type-for-in-frame-notes
|
|
||||||
\def\beamer@setupnote{%
|
|
||||||
\gdef\beamer@notesactions{%
|
|
||||||
\beamer@outsideframenote{%
|
|
||||||
\beamer@atbeginnote%
|
|
||||||
{\normalfont%
|
|
||||||
\parskip 0.5em%
|
|
||||||
\usebeamercolor[fg]{normal text}%
|
|
||||||
\beamer@notes%
|
|
||||||
\ifx\beamer@noteitems\@empty\else
|
|
||||||
\beamer@noteitems%
|
|
||||||
\fi%
|
|
||||||
|
|
||||||
\par}
|
|
||||||
\beamer@atendnote%
|
|
||||||
}%
|
|
||||||
\gdef\beamer@notesactions{}%
|
|
||||||
}
|
|
||||||
}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
\usepackage{xspace}
|
|
||||||
\usepackage{relsize}
|
|
||||||
|
|
||||||
% add tikz and a bunch of tikz foo
|
|
||||||
\usepackage{tikz}
|
|
||||||
\usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
|
|
||||||
\tikzstyle{every picture}+=[overlay,remember picture]
|
|
||||||
|
|
||||||
% add functions to circle parts of slides (e.g., in tables)
|
|
||||||
\newcommand\marktopleft[1]{\tagmcbegin{artifact}\tikz \node (marker-#1-a) at (0,1.5ex) {};\tagmcend}
|
|
||||||
\newcommand\markbottomright[1]{%
|
|
||||||
\tagmcbegin{artifact}\tikz{\node (marker-#1-b) at (0,0) {};}\tagmcend
|
|
||||||
\tagmcbegin{artifact}\tikz[dashed,inner sep=3pt]{\node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};}\tagmcend}
|
|
||||||
|
|
||||||
% create an empty quotetxt so we can reuse it
|
|
||||||
\newcommand{\quotetxt}{}
|
|
||||||
|
|
||||||
% more flexible non-tikz alternative with no dropshadow
|
|
||||||
\newlength{\centertxtlen}
|
|
||||||
\makeatletter
|
|
||||||
\newcommand\centertext[2]{%
|
|
||||||
\setlength{\centertxtlen}{#1}%
|
|
||||||
\setlength{\centertxtlen}{0.48\centertxtlen}%
|
|
||||||
{\centering
|
|
||||||
\fontsize{#1}{2\centertxtlen}\selectfont
|
|
||||||
\e{#2}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
% packages i use in essentially every document
|
|
||||||
% give every \includegraphics an alt={...} description. the current
|
|
||||||
% toolchain drops it, but it will be used once tagging is available
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{url}
|
|
||||||
% \usepackage{dcolumn}
|
|
||||||
% \usepackage{booktabs}
|
|
||||||
|
|
||||||
% replace footnotes with symbols instead of numbers
|
|
||||||
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
|
|
||||||
\usepackage{perpage}
|
|
||||||
\MakePerPage{footnote}
|
|
||||||
|
|
||||||
% \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
|
|
||||||
% urlcolor=Plum, unicode=true}
|
|
||||||
|
|
||||||
% assistive software should announce the document title rather than the
|
|
||||||
% filename; PDF/UA requires this to be set explicitly
|
|
||||||
\hypersetup{pdfdisplaydoctitle=true}
|
|
||||||
|
|
||||||
% create a new \e{} command to make things purple and bold
|
|
||||||
% (falls back to \textit{} on standout slides where alert color is invisible)
|
|
||||||
\newcommand{\e}[1]{%
|
|
||||||
\ifthenelse{\boolean{metropolis@standout}}{\textit{#1}}{\alert{#1}}}
|
|
||||||
|
|
||||||
% remove the nagivation symbols
|
|
||||||
\setbeamertemplate{navigation symbols}{}
|
|
||||||
|
|
||||||
% suppress page number on standout slides
|
|
||||||
\defbeamertemplate{frame numbering}{fraction-no-standout}{%
|
|
||||||
\ifthenelse{\boolean{metropolis@standout}}%
|
|
||||||
{}%
|
|
||||||
{\insertframenumber/\inserttotalframenumber}%
|
|
||||||
}
|
|
||||||
\setbeamertemplate{frame numbering}[fraction-no-standout]
|
|
||||||
|
|
||||||
\newcommand{\credit}[1]{%
|
|
||||||
\tikz[overlay]{\node at (current page.south west)
|
|
||||||
[anchor=south west, yshift=3pt, xshift=2pt]
|
|
||||||
{\tagmcbegin{artifact}\smaller \smaller {[}#1{]}\tagmcend};}}
|
|
||||||
|
|
||||||
\setlength{\parsep}{1em}
|
|
||||||
|
|
||||||
\title{Presentation Title}
|
\title{Presentation Title}
|
||||||
\subtitle{Presentation Subtitle}
|
\subtitle{Presentation Subtitle}
|
||||||
\author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\
|
\author{Benjamin Mako Hill}
|
||||||
makohill@uw.edu}
|
\institute{University of Washington, Department of Communication}
|
||||||
\institute[UW/Harvard]{\textbf{University of Washington}\\
|
|
||||||
Department of Communication\\
|
|
||||||
\emph{Associate Professor}\\
|
|
||||||
\hspace{1pt}\\
|
|
||||||
\textbf{Harvard University}\\
|
|
||||||
Berkman Klein Center\\
|
|
||||||
\emph{Faculty Associate}}
|
|
||||||
|
|
||||||
\date{December 2, 1980}
|
\date{December 2, 1980}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
% remove some of the space in the itemize to make it quite compact
|
\maketitle
|
||||||
% \let\olditemize\itemize
|
|
||||||
% \renewcommand\itemize{\olditemize\itemsep-1pt}
|
|
||||||
|
|
||||||
%% SLIDE: Title Slide
|
|
||||||
\begin{frame}
|
|
||||||
\titlepage
|
|
||||||
|
|
||||||
\tikz{\node at (current page.center) [anchor=center, yshift=-0.5in, xshift=1in]
|
|
||||||
{\includegraphics[width=0.25\textwidth,alt={Community Data Science Collective logo}]{figures/logo.pdf}};
|
|
||||||
}
|
|
||||||
|
|
||||||
% include version control stuff
|
|
||||||
\input{vc}
|
|
||||||
\credit{Revision:\ \VCRevision\ (\VCDateTEX)}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\section{Introduction}
|
\section{Introduction}
|
||||||
|
\sectionpage
|
||||||
\begin{frame}
|
|
||||||
\sectionpage
|
|
||||||
|
|
||||||
\note{This is an example section page.}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
%% SLIDE: Slide 2
|
|
||||||
\begin{frame}{A sample slide, A sample slide, A sample slide, A sample
|
|
||||||
slide, A sample slide, A sample slide}
|
|
||||||
|
|
||||||
A displayed formula:
|
|
||||||
|
|
||||||
\[
|
|
||||||
\int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
|
|
||||||
\]
|
|
||||||
|
|
||||||
An itemized list:
|
|
||||||
|
|
||||||
\begin{itemize}
|
|
||||||
\item<1-> itemized item 1
|
|
||||||
\item<2-> itemized item 2
|
|
||||||
\item<3-> itemized item 3
|
|
||||||
\end{itemize}
|
|
||||||
|
|
||||||
\visible<2->{
|
|
||||||
\begin{example}
|
|
||||||
\emph{In a right triangle, the square of hypotenuse equals
|
|
||||||
the sum of squares of two other sides.}
|
|
||||||
\end{example}
|
|
||||||
}
|
|
||||||
|
|
||||||
\credit{Image credit: Shaw and Hill, 2099.}
|
|
||||||
\note{These are the slide 2 notes.}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\frametitle{Short frame title}
|
|
||||||
|
|
||||||
\e{A first} paragraph.
|
|
||||||
|
|
||||||
And then \e{a second} paragraph.
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\subsection{Introductory Subsection}
|
|
||||||
|
|
||||||
\begin{frame}
|
|
||||||
\subsectionpage
|
|
||||||
|
|
||||||
\note{This is an example subsection page.}
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\appendix
|
|
||||||
|
|
||||||
\begin{frame}[standout]
|
|
||||||
Example and Data Appendix
|
|
||||||
\end{frame}
|
|
||||||
|
|
||||||
\begin{frame}{A sample slide}
|
\begin{frame}{A sample slide}
|
||||||
Final Sample Slide
|
A displayed formula:
|
||||||
|
\[ \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi} \]
|
||||||
|
|
||||||
\texttt{Monospace font?}
|
An itemized list:
|
||||||
|
\begin{itemize}[<+->]
|
||||||
\note{These are the slide 4 notes.}
|
\item itemized item 1
|
||||||
|
\item itemized item 2
|
||||||
|
\item itemized item 3
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\footline{Image credit: Shaw and Hill, 2099.}
|
||||||
|
|
||||||
|
\note<1>{Set up the integral before revealing anything else.}
|
||||||
|
\note{Mention that this is the Gaussian integral.}
|
||||||
|
\note<3->{Once the whole list is up, tie it back to the opening claim.}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}{Short frame title}
|
||||||
|
\e{A first} paragraph with \texttt{monospace text}.
|
||||||
|
|
||||||
|
And then \e{a second} paragraph.
|
||||||
|
|
||||||
|
\note{A note that applies to this whole frame.}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\standout{Example and Data Appendix}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
||||||
% LocalWords: xcolor dvipsnames beamer ugm phv sep pageofpages px
|
|
||||||
% LocalWords: titleline alternativetitlepage titlepagelogo Torino
|
|
||||||
% LocalWords: watermarkheight watermarkheightmult bg makopurple fg
|
|
||||||
% LocalWords: noparskip colback colframe coltext coltitle fonttitle
|
|
||||||
% LocalWords: colorlinks linkcolor citecolor filecolor urlcolor
|
|
||||||
% LocalWords: unicode frametitle subbody subsubbody
|
|
||||||
|
|||||||
Reference in New Issue
Block a user