[texhax] Passing curly brace as a part of arguments to a macro

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Jul 29 23:01:14 CEST 2012


On 29/07/2012 15:11, Mayuresh wrote:
> I have a macro that accepts a certain text argument. This text may
> sometimes contain curly braces.
> 
> I find that such curly braces are being interpreted by latex instead of
> treated literally and as long as there is a matching brace, they just get
> silently ignored.
> 
> Escaping the braces with back slash is leading to error like:
> 
> ! Undefined control sequence.
> \\  ->\let \reserved at e 
>                        \relax \let \reserved at f \relax \@ifstar {\let
> \reserv...
> 
> 
> Is it not possible to send text with curly braces as macro argument?
> 
> Mayuresh

Please post a 'minimal working example' so we can see what you are up to.
-- 
Joseph Wright


More information about the texhax mailing list