From 4d1302d5b5bedf37b5a0f7269087c4fbd9f08c25 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Tue, 31 Mar 2026 17:10:07 -0700 Subject: [PATCH] Make \e{} render as \textit{} on standout slides \alert{} is invisible on standout frames due to the inverted color scheme; fall back to \textit{} using the metropolis@standout boolean. Co-Authored-By: Claude Sonnet 4.6 --- slides_template/example.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slides_template/example.tex b/slides_template/example.tex index 83a1af9..f418eb5 100644 --- a/slides_template/example.tex +++ b/slides_template/example.tex @@ -162,7 +162,9 @@ BoldItalicFont = *-BoldItalic % urlcolor=Plum, unicode=true} % create a new \e{} command to make things purple and bold -\newcommand{\e}[1]{\alert{#1}} +% (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}{}