slides: properly set up beamer

- Install bold fonts

- Normal font weight in titles

- Workaround a metropolis bug
This commit is contained in:
Michele Guerini Rocco 2020-06-10 21:19:49 +02:00
parent 4ea618d8ee
commit af7c00e4e1

View File

@ -15,7 +15,7 @@ aspectratio: 169
fontsize: 12pt fontsize: 12pt
mainfont: Fira Sans mainfont: Fira Sans
mainfontoptions: mainfontoptions:
- BoldFont=Fira Sans - BoldFont=Fira Sans SemiBold
mathfont: FiraMath-Regular mathfont: FiraMath-Regular
references: references:
@ -35,15 +35,38 @@ header-includes: |
\definecolor{mDarkTeal} {HTML}{020202} \definecolor{mDarkTeal} {HTML}{020202}
\definecolor{mLightBrown}{HTML}{C49D4A} \definecolor{mLightBrown}{HTML}{C49D4A}
\definecolor{mDarkRed} {HTML}{92182B} \definecolor{mDarkRed} {HTML}{92182B}
\definecolor{cyclamen} {HTML}{92182B}
\definecolor{green} {HTML}{60AC39} \definecolor{green} {HTML}{60AC39}
\definecolor{red} {HTML}{D73737} \definecolor{red} {HTML}{D73737}
\definecolor{blue} {HTML}{6684E1} \definecolor{blue} {HTML}{6684E1}
\definecolor{yellow} {HTML}{CFB017} \definecolor{yellow} {HTML}{CFB017}
\setbeamercolor{frametitle}{bg=mDarkRed} \setbeamercolor{frametitle}{bg=mDarkRed}
\definecolor{cyclamen}{RGB}{146,24,43}
% no bold titles
\setbeamerfont{title}{series=\mdseries}
\setbeamerfont{section title}{series=\mdseries}
\setbeamerfont{frametitle}{series=\mdseries}
% workaround issue matze/mtheme#371
\AtBeginSection{
\frame[plain,c,noframenumbering]{
\centering
\begin{minipage}{22em}
\raggedright
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\MakeUppercase{\insertsectionhead\\[-1ex]}
\usebeamertemplate*{progress bar in section page}
\end{minipage}
\par
\vspace{\baselineskip}
}
}
\setbeamercovered{transparent}
% strike macro
\usepackage{ulem} \usepackage{ulem}
\newcommand\strike{\bgroup\markoverwith{% \newcommand\strike{\bgroup\markoverwith{%
\textcolor{mDarkRed}{\rule[0.5ex]{2pt}{1pt}}}\ULon} \textcolor{mDarkRed}{\rule[0.5ex]{2pt}{1pt}}}\ULon}
@ -56,37 +79,37 @@ header-includes: |
} }
% "thus" in formulas %% math macros
% thus
\DeclareMathOperator{\thus}{% \DeclareMathOperator{\thus}{%
\hspace{30pt} \Longrightarrow \hspace{30pt} \hspace{30pt} \Longrightarrow \hspace{30pt}
} }
% "thus" in text % hence
\DeclareMathOperator{\hence}{% \DeclareMathOperator{\hence}{%
\quad \longrightarrow \quad \quad \longrightarrow \quad
} }
% "and" in formulas % and
\DeclareMathOperator{\et}{% \DeclareMathOperator{\et}{%
\hspace{30pt} \wedge \hspace{30pt} \hspace{30pt} \wedge \hspace{30pt}
} }
% "with" in formulas % with
\DeclareMathOperator{\with}{% \DeclareMathOperator{\with}{%
\hspace{30pt} \text{with} \hspace{30pt} \hspace{30pt} \text{with} \hspace{30pt}
} }
% "expected" in formulas % expected
\DeclareMathOperator{\ex}{% \DeclareMathOperator{\ex}{%
^{\text{exp}} ^{\text{exp}}
} }
% "observed" in formulas % observed
\DeclareMathOperator{\ob}{% \DeclareMathOperator{\ob}{%
^{\text{obs}} ^{\text{obs}}
} }
\setbeamercovered{transparent}
``` ```
csl: ../notes/docs/bibliography.csl csl: ../notes/docs/bibliography.csl