Sylvain Hubert schrieb am 08.11.2020 um 17:56:
Hi Wolfgang,

I'm sorry that the question was not clear enough. Let me ask in this way:
how to define a \dorecurse, such that \dorecurse{10}{\type{a    b c}} does not squash the spaces?

Verbatim in arguments of other commands is tricky because in case with \dorecurse the loop reads the content before it is passed to type, as a result of this process all spaces are collapsed.

One way to work around this is to use a buffer for the content of the loop.

\startbuffer[type]
\type{a    b c}
\stopbuffer

\starttext
\dorecurse{10}{\inlinebuffer[type]\par}
\stoptext

Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to