Is there a way of defining a command that can be executed only once and is then redefined to be a no-op?
Related:
|
Is there a way of defining a command that can be executed only once and is then redefined to be a no-op? Related: |
||||
|
|
|
An easy way is to just nullify the macro within the body so that the next time it does not have an effect if it is called again via either
or
As per David Carlisle's comment, we need to add a References:
Code:
|
||||
|