summaryrefslogtreecommitdiff
path: root/tex/context/base/math-ini.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/math-ini.tex')
-rw-r--r--tex/context/base/math-ini.tex31
1 files changed, 19 insertions, 12 deletions
diff --git a/tex/context/base/math-ini.tex b/tex/context/base/math-ini.tex
index 26eabe542..8f3960f16 100644
--- a/tex/context/base/math-ini.tex
+++ b/tex/context/base/math-ini.tex
@@ -281,7 +281,7 @@
\endgraf}%
\fi}
-\def\definemathcommand%
+\def\definemathcommand
{\dotripleempty\dodefinemathcommand}
\def\dodefinemathcommand[#1][#2][#3]#4% command class args meaning
@@ -317,10 +317,10 @@
\def\stopmathcollection
{\popmacro\mathcollection}
-\def\startrawmathcollection%
+\def\startrawmathcollection
{\startmathcollection}
-\def\stoprawmathcollection%
+\def\stoprawmathcollection
{\stopmathcollection}
\newtoks\mathtoks
@@ -465,10 +465,11 @@
\setupbodyfont[lbr] \enablemathcollection[lbr] \input math-lbr \page
\setupbodyfont[eul] \enablemathcollection[eul] \input math-eul \stoptext
-% to be checked
+% to be checked, overloads supp-lan !
\def\defineactivecharacter #1 #2%
- {\scratchcounter=\the\uccode`~
+% {\scratchcounter=\the\uccode`~
+ {\scratchcounter\uccode`~\relax
\expandafter\doifnumberelse\expandafter{\string#1}
{\catcode #1=\@@active \uccode`~= #1\relax}
{\catcode`#1=\@@active \uccode`~=`#1\relax}%
@@ -481,19 +482,25 @@
\expandafter\def\next{\dohandleactivecharacter{#1}{#2}}% new
\uccode`~=\scratchcounter}
-\def\dohandleactivecharacter%
+\def\dohandleactivecharacter
{\ifmmode
\expandafter\dohandleactivemathcharacter
\else
\expandafter\secondoftwoarguments
\fi}
-\let\dohandleactivemathcharacter\secondoftwoarguments
-
-\def\dohandleactivemathcharacter#1#2%
- {\ifundefined{@ma@\string#1}
+\def\dohandleactivemathcharacter#1#2#3%
+ {\ifundefined{@ma@\string#2}%
\expandafter\firstofoneargument
\else
- \getvalue{@ma@\string#1}%
+ \getvalue{@ma@\string#2}%
\expandafter\gobbleoneargument
- \fi{#2}}
+ \fi{#3}}
+
+% \def\dohandleactivemathcharacter#1#2%
+% {\ifcsname @ma@\string#1\endcsname
+% \csname @ma@\string#1\expandafter\endcsname
+% \expandafter\gobbleoneargument
+% \else
+% \expandafter\firstofoneargument
+% \fi{#2}}