[powerdot] Re: Colour of inactive equation numbers in the itemize environment

  • From: Luis Costa <luis@xxxxxxxxx>
  • To: powerdot@xxxxxxxxxxxxx
  • Date: Fri, 10 Aug 2007 09:46:53 +0300 (EEST)

Hi Hendri,

I was a bit hasty when I said that problem 2 was resolved automatically
(i.e., the equation colour change from inactive to active properly). An
additional little hack was required. The solution is neither elegant nor
does it work globally, but it works. And, for now, I'm happy and that's
enough for me.:-)
It wasn't the only way of solving this problem, but this solution made
the most sense to me.

The LaTeX input below shows how I solved my problem.

Best regards,
Luis


\begin{document}

\begin{slide}{}

\begin{itemize}[type=1]
 \item Item one \pause
 \item Item two
  \onslide*{-1}{
    \[ x = y+z \]
   \item Item three
    \[ a = b+c \]
   \item Last item
  }
  \onslide{+0-+2}{
   \begin{equation} x = y+z \end{equation}
  }
 \pause
 \item
  \onslide*{-2-+3}{Item three
    \[ a = b+c \]
   \item Last item
  }
  \onslide{+0-+1}{\color{red} Item three
   \def\normalcolor{\color{red}} % set the eq. no. colour
   \begin{equation} a = b+c \end{equation}
   \def\normalcolor{\color{pdcolor1}} % reset the eq. no. colour
  }
 \pause
 \item Last item
% This last equation shows that \normalcolor is reset properly
\begin{equation} A=B \end{equation}
\end{itemize}

\end{slide}

\end{document}


On Fri, 10 Aug 2007, Hendri Adriaens wrote:

> Hi Luis,
>
> > Thanks, Hendri, for your prompt reply.
>
> You're welcome.
>
> > I resolved problem 1 by using the \onslide* and \onslide commands and
> > opting to leave out the equation number from the inactive items and to
> > make the eq. number to appear when the item with the equation is activated.
> > Problem 2 was solved along with problem 1.
>
> Ok, good. Would you like to share the code with us? It may help other
> people as well. Please attach it if it's too big.
>
> > Thanks for making this great package. It has all the features I want and
> > more. I've switched from my own slide package to powerdot (that I've
> > hacked a little :-)
>
> :) You're welcome.
>
> Best,
> -Hendri.
>


Other related posts: