From af7c00e4e12dc17b162d6a7ed92c384f7399bf64 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 10 Jun 2020 21:19:49 +0200 Subject: [PATCH] slides: properly set up beamer - Install bold fonts - Normal font weight in titles - Workaround a metropolis bug --- slides/sections/0.md | 53 +++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/slides/sections/0.md b/slides/sections/0.md index 1d10e56..3d26702 100644 --- a/slides/sections/0.md +++ b/slides/sections/0.md @@ -15,7 +15,7 @@ aspectratio: 169 fontsize: 12pt mainfont: Fira Sans mainfontoptions: - - BoldFont=Fira Sans + - BoldFont=Fira Sans SemiBold mathfont: FiraMath-Regular references: @@ -35,15 +35,38 @@ header-includes: | \definecolor{mDarkTeal} {HTML}{020202} \definecolor{mLightBrown}{HTML}{C49D4A} \definecolor{mDarkRed} {HTML}{92182B} - - \definecolor{green} {HTML}{60AC39} - \definecolor{red} {HTML}{D73737} - \definecolor{blue} {HTML}{6684E1} - \definecolor{yellow}{HTML}{CFB017} + \definecolor{cyclamen} {HTML}{92182B} + \definecolor{green} {HTML}{60AC39} + \definecolor{red} {HTML}{D73737} + \definecolor{blue} {HTML}{6684E1} + \definecolor{yellow} {HTML}{CFB017} \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} \newcommand\strike{\bgroup\markoverwith{% \textcolor{mDarkRed}{\rule[0.5ex]{2pt}{1pt}}}\ULon} @@ -56,37 +79,37 @@ header-includes: | } - % "thus" in formulas + %% math macros + + % thus \DeclareMathOperator{\thus}{% \hspace{30pt} \Longrightarrow \hspace{30pt} } - % "thus" in text + % hence \DeclareMathOperator{\hence}{% \quad \longrightarrow \quad } - % "and" in formulas + % and \DeclareMathOperator{\et}{% \hspace{30pt} \wedge \hspace{30pt} } - % "with" in formulas + % with \DeclareMathOperator{\with}{% \hspace{30pt} \text{with} \hspace{30pt} } - % "expected" in formulas + % expected \DeclareMathOperator{\ex}{% ^{\text{exp}} } - % "observed" in formulas + % observed \DeclareMathOperator{\ob}{% ^{\text{obs}} } - - \setbeamercovered{transparent} ``` csl: ../notes/docs/bibliography.csl