スライドのコンテンツを表示しようとしていますが、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
私の理解が正しければ、と は両方とも Beamer が「アクション」と呼ぶものである\uncover<2-|alert@2>{thing}
ため、 は機能しません。したがって、オーバーレイ 2 では、2 つのアクションを同時に適用するように要求しますが、これは実行できないようで、uncover が優先されるようです。uncover
alert
解決策としては、汎用コマンド を使用することです\action
。このコマンドはオーバーレイ仕様を受け取りますが、それ自体では特定のアクション : を指定することはありません\action<uncover@2-|alert@2>{thing}
。または、uncover がデフォルトのアクションであるため、単に を使用します\action<2-|alert@2>{thing}
。
これは奇妙に思えます。ある意味では、オーバーレイ 2 の両方のアクションを適用するように Beamer に指示していることになりますが、これは機能します。