I would like to use other delimiters than {} for the argument of \detokenize. E.g. something like
\detokenize\begingroup a lot of stuff \com \mycom \endgroup
but it does not work. Am I really obliged to use curly braces ?
|
I would like to use other delimiters than
but it does not work. Am I really obliged to use curly braces ? |
|||
| show 1 more comment |
|
TeX will allow you to use implicit
but requires an explicit end-group token (as shown).
|
|||||||||||||
|
\detokenize\begingroup) at some point, initiated by some command, and make it stop (\endgroup) in another command. – nicolas roy Aug 2 '12 at 7:58\detokenizecommands are not expanded until the closing brace is seen so even if\egroupworked you would not be able to have the\egroupinside another definition. You indicate in comments that you want to write to a file in which case you don't need detokenize at all just something like filecontents package to write the contents of an environment verbatim – David Carlisle Aug 2 '12 at 8:46\writeit to the file. – nicolas roy Aug 2 '12 at 9:33