From 640d447995d07a9090152b0ae85330778a4eb94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 28 Jan 2022 15:48:12 +0100 Subject: [PATCH] symbindex: call symbol lastly to allow for argument catching --- src/utils/symbindex.pysty3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/symbindex.pysty3 b/src/utils/symbindex.pysty3 index e0525da..8aefea5 100644 --- a/src/utils/symbindex.pysty3 +++ b/src/utils/symbindex.pysty3 @@ -33,7 +33,6 @@ __HEADER__(Declaring of math symbols with automatic indexing) \bool_new:c { used_#2 } \cs_new_protected:cn { symbol_#2: } { - #4{#5} \bool_if:cF { used_#2 } { \index[#1] @@ -45,6 +44,7 @@ __HEADER__(Declaring of math symbols with automatic indexing) } \bool_gset_true:c { used_#2 } } + #4{#5} } \expandafter\protected\expandafter\gdef\csname#2\endcsname {