
As for the number of arguments, it's my fault because I modified this macro
for another file and forgot to modify it again for the problematic file.* I
almost always use it in text mode.*
I also have a problem with another macro that I haven't modified, but no
works since my update.
##########################################################################################
\protected\def\card#1{\m{\mfunction{Card}\thinspace#1}}
##########################################################################################
tex error > tex error on line 366 in file ./chapter-5.tex: Missing {
inserted
<to be read again>
\endgroup
<macro> \math_m_nop
#1->\relax \ifmmode #1\else \normalstartimath \usemathstyleparameter
\mathematicsparameter \c!mathstyle \expand \everyinsidemathematics \relax
\begingroup #1\endgroup
\normalstopimath \fi
<macro> \vector
#1->\starttikzpicture [thick,baseline=(arg.base),>=stealth] \node
[inner xsep=0pt] (arg) {\m {#1}
}; \draw [->,shorten >=-1pt ] (arg.north west) -- (arg.north east);
\stoptikzpicture
<argument>
\vector {_}
\cdot \vector {k=1}
<macro> \math_m_nop
#1->\relax \ifmmode #1
\else \normalstartimath \usemathstyleparameter \mathematicsparameter
\c!mathstyle \expand \everyinsidemathematics \relax \begingroup #1\endgroup
\normalstopimath \fi
<argument>
\mfunction {Card}\thinspace \prod _{k=1}
^{n}A_k
...
Am 15.03.2025 um 13:52 schrieb Fabrice Couvreur:
Hi, That's true, it's better with a little bit of code. But the file is large and I didn't know what to show.
##################################################################################################
\protected\def\coord#1#2#3{\math{#1\left(#2\,;#3\right)}}
You create your command with 3 argument but pass only 2 arguments and whatever follows it as third argument.
Do you even use it in text mode or can \math be removed from the definition?
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net
___________________________________________________________________________________