[texhax] controlling expansion

Neal H. Walfield neal at walfield.org
Fri Mar 1 09:39:30 CET 2013


These are valid concerns in the general case.  In my particular case,
however, I really am interested in the empty string, i.e., ''.

Thanks,

Neal

At Thu, 28 Feb 2013 15:15:02 +0000,
Lars Madsen wrote:
> 
> And what exactly would you consider empty, is \dosomething{ } empty or not?
> 
> /Lars Madsen
> Institut for Matematik / Department of Mathematics
> Aarhus Universitet / Aarhus University
> Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf
> 
> 
> ________________________________________
> From: texhax [texhax-bounces at tug.org] on behalf of Michael Doob [mdoob at cc.umanitoba.ca]
> Sent: 28 February 2013 16:02
> To: texhax at tug.org
> Subject: Re: [texhax] controlling expansion
> 
> On 13-02-28 08:51 AM, Neal H. Walfield wrote:
> > I spent some time reading and found a good solution for determining
> > whether an argument is empty in David Solomon's Advanced TeXbook:
> >
> >    \ifx\empty#1\empty empty \else not empty\fi
> >
> > Nice trick!  TeX requires a lot of lateral thinking.
> 
> Cute, but what about \empty{\empty}? :-)
> 
> Cheers,
> Michael
> 
> 
> --
> ------------------------------------------------------------------
> Michael Doob                    Telephone: (204) 474-9796
> Department of Mathematics       Fax: (204) 474-7606
> University of Manitoba          email: Michael_Doob at umanitoba.ca
> Winnipeg, MB, Canada R3T 2N2
> ------------------------------------------------------------------
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
> 


More information about the texhax mailing list