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

2022-01-11 Thread Hans Hagen via ntg-context
On 1/11/2022 5:22 AM, Aditya Mahajan via ntg-context wrote: On Tue, 11 Jan 2022, Henning Hraban Ramm via ntg-context wrote: Am 10.01.22 um 20:21 schrieb Wolfgang Schuster: Henning Hraban Ramm via ntg-context schrieb am 10.01.2022 um 09:52: Would it make more sense, or would it be “cleaner”

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

2022-01-10 Thread Aditya Mahajan via ntg-context
On Tue, 11 Jan 2022, Henning Hraban Ramm via ntg-context wrote: > Am 10.01.22 um 20:21 schrieb Wolfgang Schuster: > > Henning Hraban Ramm via ntg-context schrieb am 10.01.2022 um 09:52: > >> Would it make more sense, or would it be “cleaner” to use a variable? > > > > You can get rid of the temp

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

2022-01-10 Thread Henning Hraban Ramm via ntg-context
Am 10.01.22 um 20:21 schrieb Wolfgang Schuster: Henning Hraban Ramm via ntg-context schrieb am 10.01.2022 um 09:52: Would it make more sense, or would it be “cleaner” to use a variable? You can get rid of the temp variable before the command definition but now you have to access it with a

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

2022-01-10 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 10.01.2022 um 09:52: 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

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

2022-01-10 Thread Henning Hraban Ramm via ntg-context
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

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

2022-01-09 Thread 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? Here is a minimum working example, pretending that `\previousvalue` is equal to #1 from the last time the same macro was called: [...]

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

2022-01-09 Thread Joel via ntg-context
Is there a way for a macro to check the previous value of #1, the last time that same macro was called? Here is a minimum working example, pretending that `\previousvalue` is equal to #1 from the last time the same macro was called:     \define[1]\mymacro{     \if\previousvalue=#1