[texhax] How do you make * macros?

Lars Madsen daleif at imf.au.dk
Fri Oct 22 23:17:53 CEST 2010

Quoting Michael Barr <barr at math.mcgill.ca>:

> Assuming I have a macro \xxx that does something, how do I make  
> \xxx* that does something slightly different?  If think I make  
> something using \@ifnextchar, but there is probably an "official"  
> way of doing it that I don't see in the Companion (1994 edition).
> Michael

besides the constructions already mentioned I'd like to mention xparse as well

I needed a macro that can do this


(or simething similar)

with xparse that is a piece of cake, for example creating a macro with


one can do


More information about the texhax mailing list