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
都是 beamer 所称的“操作”。因此,在覆盖 2 上,我们要求它同时应用两个操作,但它似乎无法做到,而 reveal 似乎优先。
一种解决方案是使用通用命令\action
,它采用覆盖规范但本身并不指定特定操作:\action<uncover@2-|alert@2>{thing}
,或者,因为揭示是默认操作,所以只是\action<2-|alert@2>{thing}
。
这看起来很奇怪,因为在某种程度上,我们仍然在告诉 beamer 在覆盖 2 上应用这两个操作,但这是有效的。