在 powerdot 中,改变的颜色总是处于活动状态,当它们处于非活动状态时,不会采用 iacolor

在 powerdot 中,改变的颜色总是处于活动状态,当它们处于非活动状态时,不会采用 iacolor

在以下示例中,您可以看到项目类型为 1 的列表。文本中更改的颜色(红色)和项目的更改颜色(橙色)在非活动状态时不会生效iacolor

iacolor我怎样才能使非活动的改变的颜色也变为非活动时的颜色?

\documentclass{powerdot}
\usepackage[utf8]{inputenc}

\renewcommand{\labelitemi}{\color{orange}\ensuremath\bullet}
\renewcommand{\labelitemii}{\color{orange}\ensuremath\bullet}
\renewcommand{\labelitemiii}{\color{orange}\ensuremath\bullet}
\renewcommand{\labelitemiv}{\color{orange}\ensuremath\bullet}

\begin{document}
\begin{slide}{titletxt}
\begin{itemize}[type=1]
\item<1-> txt A
\item<2-> txt B1 {\color{red}{txt B2}} txt B3
\item<3-> txt C {\color{red}{txt C2}} txt B3
\item<4-> txt D
\end{itemize}
\end{slide}
\end{document}

答案1

一种可能的解决方案是定义一个命令,仅在指定的覆盖上切换颜色,在每个覆盖上打印文本,然后在指定的覆盖上切换回颜色。

梅威瑟:

\documentclass{powerdot}
\renewcommand{\labelitemi}{\color{orange}\ensuremath\bullet}

\newcommand{\clactive}[3]{%
\onslide*{#1}{\color{#2}}%
#3 %
\onslide*{#1}{\color{pdcolor1}}%
}

\begin{document}
\begin{slide}{titletxt}
\begin{itemize}[type=1]
\item<1-> txt A
\item<2-> txt B1 \clactive{2-}{red}{txt B2} txt B3
\item<3-> txt C \clactive{3-}{red}{txt C2} txt C3
\item<4-> txt D
\end{itemize}
\end{slide}
\end{document}

结果:

在此处输入图片描述

相关内容