Re: 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]>
Hendri Adriaens wrote on 15 Feb 2004 20:05:52 MET:

[...]

> 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

Puh, isn't there an easy way doing this without TeX primitives?

Oh well, I guess I'll have to take a look at a TeXbook ;-)

Thanks,

Patrick
-- 
"Dad! We're the MTV generation. Nothing can upset us. We feel neither
highs nor lows."  - Lisa Simpson




-------------------------------------------------------
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.