symbindex: call symbol lastly to allow for argument catching

This commit is contained in:
Maximilian Keßler 2022-01-28 15:48:12 +01:00
parent 698e0290ee
commit 640d447995

View file

@ -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
{