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 上,我們要求它同時應用兩個操作,但它似乎無法做到這一點,而揭開似乎優先。
解決方案是使用通用命令\action
,該命令採用覆蓋規範,但本身不指定特定操作:\action<uncover@2-|alert@2>{thing}
,或者,因為揭開是預設操作,所以僅指定\action<2-|alert@2>{thing}
。
這看起來很奇怪,因為在某種程度上,我們仍然告訴 Beamer 在覆蓋層 2 上應用這兩個操作,但這是有效的。