Wouldn't it be slow for larger documents? I will try anyway. By the way, I've seen Lua(La)TeX users recurring to callbacks (process input buffer) to make string replacements and I've done so myself sometimes. Does ConTeXt do preprocessing the same way or is a better alternative possible? Thank you very much.

Jairo :)

El lun., 29 de jun. de 2020 a la(s) 02:50, luigi scarso (luigi.scarso@gmail.com) escribió:


On Sun, Jun 28, 2020 at 10:48 PM Jairo A. del Rio <jairoadelrio6@gmail.com> wrote:
I've read the following is not possible in TeX

\def#1\macro{blabla#1}

where arguments come before. The only partial exceptions are commands like \atop or \over, which are in fact primitives. Is there a way to do this in ConTeXt?


you can build a lpeg and parse the your "extended tex" source, obtaining a valid tex source.
 

--
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________