On 20 Jan 2013, at 22:32, Aditya Mahajan wrote:

> On Sun, 20 Jan 2013, Gerben Wierda wrote:
> 
>>> You can add the \nonknuthmode to your document which makes _ and ^ normal 
>>> characters for text mode.
>> 
>> Is that limited to a {}-scope? And more importantly, that catches ^ and _, 
>> but what about whitespace etc. Isn;t there a true verbatim that I can use on 
>> a macro like \currentcomponent? Something along the lines of 
>> \verbatimexpand{\currentcomponent}?
> 
> Untested: \filename{\currentcomponent}

Works. When outside a component (e.g. index) it defaults to the string 'text'.

Thanks,

G

> 
> Aditya
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to