Tim Steenvoorden <mailto:tim.steenvoor...@gmail.com>
10. Februar 2018 um 12:44
Thanks Otared! Works like a charm!
Out of curiosity, could you explain the mechanics behind this? I know
it is a commonly used trick in TeX macro definitions, but I don’t know
how it changes TeX’s understanding of the tokes it parses.
When you create a new commands like this
the brackets are delimiters for the argument of the command, i.e. when
\mycommand it looks for [ and grabs everything intill ] as as argument.
out now a space (or start a new line) after ] in your definition of the
TeX looks now for “] ” (right bracket followed by a space) as delimiter for
the argument of your command.
If your question is of interest to others as well, please add an entry to the
maillist : email@example.com / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net