Re: newcommand with slides and itemize
"H.P.J.M.Adriaens" <[email protected]>
| Newsgroups | gmane.comp.tex.latex.prosper.user |
|---|---|
| Message-ID | <[email protected]> |
Patrick,
> \pdSlide{1}{2}[item 1 short vers. in lightgray]{%
> item 1 long version long version in normal
color\ldots}
You have to split up the command like this.
\def\pdSlide#1#2{\@ifnextchar[{\@pdSlide{#1}{#2}}{\@pdSlide
{#1}{#2}[]}}
\def\@pdSlide#1#2[#3]#4{...}
Make sure to test if #3 is empty or not in the definition
like:
\def\temp@a{#3}
\ifx\temp@a\@empty
...
\fi
Hope that helps, good luck,
-Hendri.
-------------------------------------------------------
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