1
  1. Suppose that I have an itemize list, which I want to present in sequential order. I use [<+->] for that.
  2. I want to highlight the current (the most recently added) item in bold. To do so, I replace [<+->] with [<+-|alert@+>] and change alert color and font following this answer:
\setbeamercolor{alerted text}{fg=black} %change the font color
\setbeamerfont{alerted text}{series=\bfseries} %make alerted text bold

Result with current item in bold: bold

  1. Moreover, I want to change the item shape from a circle to a triangle only for the most recently added item to the list. Following this answer, I modify alert behaviour in itemize:
\AtBeginEnvironment{itemize}{%
\renewenvironment{alertenv}{\only{\setbeamertemplate{items}[triangle]}}{}}

However, since I've redefined alert environment, the bold for current item is no longer working: item

  1. This is the result I want to achieve (combination of two modifications at the same time): ideal

MWE:

\documentclass{beamer} 
\usetheme{metropolis}

\begin{document}

% redefining alert action only for itemize
\AtBeginEnvironment{itemize}{%
\renewenvironment{alertenv}{\only{\setbeamertemplate{items}[triangle]}}{}}


\begin{frame}{Future work}
\begin{itemize}[<+-|alert@+>]
    \setbeamercolor{alerted text}{fg=black} %change the font color
    \setbeamerfont{alerted text}{series=\bfseries} %make alerted text bold
    \item Fix the global warming
    \item Prove P $\ne$ NP
    \item Sofa in the office 
\end{itemize}
\end{frame}

\end{document}

1 Answer 1

1

You could use the \alt macro to provide an alternative symbol:

\documentclass{beamer} 
\usetheme{moloch}% modern fork of the metropolis theme

\setbeamertemplate{itemize item}{\usebeamerfont*{itemize item}\alt<.>{\raise1.25pt\hbox{\donotcoloroutermaths$\blacktriangleright$}}{\textbullet}}


\begin{document}

\begin{frame}{Future work}
\begin{itemize}[<+-|alert@+>]
    \setbeamercolor{alerted text}{fg=black} %change the font color
    \setbeamerfont{alerted text}{series=\bfseries} %make alerted text bold
    \item Fix the global warming
    \item Prove P $\ne$ NP
    \item Sofa in the office 
\end{itemize}
\end{frame}

\end{document}

enter image description here

4
  • +1: First time I see alt in action, the same is true for setting \setbeamerfont{alerted text} INSIDE the itemize environment. Commented Dec 11, 2022 at 19:57
  • I have to check the manual if that is something that I can learn on my own. Commented Dec 11, 2022 at 20:00
  • 1
    @Dr.ManuelKuehner The \alt macro is described in section "9.3 Commands with Overlay Specifications" of the user guide. If that's the first time you see \alt, just wait until you see \temporal - that's even rarer :) Commented Dec 12, 2022 at 9:01
  • Haha, thanks for the follow-up! Commented Dec 12, 2022 at 15:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .