[NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

Henning Hraban Ramm texml at fiee.net
Mon Jan 10 09:52:07 CET 2022


Am 09.01.22 um 16:03 schrieb Wolfgang Schuster via ntg-context:
> Joel via ntg-context schrieb am 09.01.2022 um 15:16:
>> Is there a way for a macro to check the previous value of #1, the last 
>> time that same macro was called?
> 
> To check is the current value differs from the last one you need a temp 
> macro where you store the current value at the end of your command to 
> check it in the next call.

Would it make more sense, or would it be “cleaner” to use a variable?

Hraban


More information about the ntg-context mailing list