[NTG-context] Commands with arguments before in ConTeXt

Hans Hagen j.hagen at xs4all.nl
Mon Jun 29 16:45:15 CEST 2020


On 6/29/2020 3:48 PM, Jairo A. del Rio wrote:
> |Oh, I was just asking about
> 
> luatexbase.add_to_callback("process_input_buffer", blabla, "blabla" )|
> |
> |
> 
> |and
> |
> 
> |
> luatexbase.remove_from_callback("process_input_buffer", "blabla" )
> 
> |

We always had such things but I never advertise their usage.
> |LuaLaTeX users do that way and I want to be sure it won't interfere 
> with ConTeXt way of doing things so I can play with the suggestion made 
> by Luigi.
Well, good luck with that as it will never be robust (apart from 
possible performance issues) ... make sure you also parse macros and 
included styles and everything that can contain some nested funny 
syntax. (Read: when there are issues with that kind of parsing and 
interference with other preprocessing etc etc users are on their own i 
guess.)

hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list