Я пытаюсь раскрыть содержимое слайда, но не получаю никакого alerted text
стиля при использовании \uncover<+- | alert@+>
. Содержимое просто раскрывается.
МВЭ
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{rose}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\setbeamersize{sidebar width left=5cm, sidebar width right=0cm}
\setbeamersize{text margin left=3mm, text margin right=3mm}
\setbeamersize{description width=0mm}
\setbeamercovered{transparent=30}
\begin{document}
\begin{frame}{Uncovering Contents with Alert}
\begin{block}{Why is induction motor very common}
%
\uncover<+->{\phantom{$1$}}\uncover<+->{Induction motors are very practical for the following reasons}
\begin{description}[<+- | alert@+>]
\item[Rigid] Rigid
\item[Cheap] Cheap
\item[Low Maintenance] Low Maintenance
\item[Self-Starting] Self-starting
\item[No Excitation Needed] No Excitation Needed
\end{description}
\uncover<+- | alert@+>{Extra content}
\end{block}
\end{frame}
\end{document}
решение1
Простой способ решения:
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{rose}
\useoutertheme[]{split}
\useinnertheme{inmargin}
\setbeamersize{sidebar width left=5cm, sidebar width right=0cm}
\setbeamersize{text margin left=3mm, text margin right=3mm}
\setbeamersize{description width=0mm}
\setbeamercovered{transparent=30}
\begin{document}
\begin{frame}{Uncovering Contents with Alert}
\begin{block}{Why is induction motor very common}
%
\uncover<+->{\phantom{$1$}}\uncover<+->{Induction motors are very practical for the following reasons}
\begin{description}[<+- | alert@+>]
\item[Rigid] Rigid
\item[Cheap] Cheap
\item[Low Maintenance] Low Maintenance
\item[Self-Starting] Self-starting
\item[No Excitation Needed] No Excitation Needed
\end{description}
\uncover<+->{\alert<.>{Extra content}}
\end{block}
\end{frame}
\end{document}
решение2
Если я правильно понимаю, \uncover<2-|alert@2>{thing}
не работает, потому что uncover
и alert
оба являются тем, что бимер называет "действиями". Так что на оверлее 2 мы просим его применить два действия одновременно, что он, похоже, не может сделать, и uncover, похоже, имеет приоритет.
Решением является использование общей команды \action
, которая принимает спецификацию наложения, но сама по себе не определяет конкретное действие: \action<uncover@2-|alert@2>{thing}
или, поскольку uncover является действием по умолчанию, просто \action<2-|alert@2>{thing}
.
Это кажется странным, потому что в некотором смысле мы все еще говорим Beamer применить оба действия к оверлею 2, но это работает.