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”
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
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
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
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
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:
[...]
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