newcommand with slides and itemize

Patrick Drechsler <[email protected]>
Newsgroups gmane.comp.tex.latex.prosper.user
Organization Dept. of Zoology 2, Biocenter, University of Wuerzburg, Germany
Message-ID <[email protected]>
Hi,

I'm trying to implement a new command which highlights
non-active `\items' lightgray. Here's what I've come up with so
far:

--8<------------------------schnipp------------------------->8---
\newcommand{\pdSlide}[3]{%
\onlySlide*{#1}{\item #3}%
\fromSlide*{#2}{{\lightgray \item #3}}}
--8<------------------------schnapp------------------------->8---

this can be used like this:

--8<------------------------schnipp------------------------->8---
\overlays{3}{%
  \begin{slide}{foobar}
    \begin{itemize}
    \pdSlide{1}{2}{item 1}
    \pdSlide{2}{3}{item 2}
    \fromSlide*{3}{\item item 3}
  \end{itemize}
\end{slide}
}
--8<------------------------schnapp------------------------->8---

Now I'd like to enhance this command with one more features:

An optional argument. Often I have long text in the items but I
want to reduce this text when I move on to the next item i.e.:

    \pdSlide{1}{2}[item 1 short vers. in lightgray]{%
      item 1 long version long version in normal color\ldots}

Following doesn't work but maybe shows what I'm trying to
accomplish:

--8<------------------------schnipp------------------------->8---
\newcommand{\pdSlide}[4][#4]{%
\onlySlide*{#1}{\item #4}%
\fromSlide*{#2}{{\lightgray \item #1}}}
--8<------------------------schnapp------------------------->8---

Any pointers?

Cheers

Patrick
-- 
We are sorry, but the number you have dialed is imaginary.
Please rotate your phone 90 degrees and try again.




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.