summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/supp-mat.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/supp-mat.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/supp-mat.tex15
1 files changed, 14 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/supp-mat.tex b/Master/texmf-dist/tex/context/base/supp-mat.tex
index 5b2305f8b5f..f21ee6afae9 100644
--- a/Master/texmf-dist/tex/context/base/supp-mat.tex
+++ b/Master/texmf-dist/tex/context/base/supp-mat.tex
@@ -12,7 +12,8 @@
%C details.
%D For practical reasons, I decided to move some math things to
-%D a support module. There is nothing spectacular here.
+%D a support module. There is nothing spectacular here. It may move
+%D back to math-ini.
\writestatus{loading}{Context Support Macros / Math}
@@ -79,6 +80,18 @@
\let\inlinemathematics \mathematics
\def\automathematics {\relax\ifhmode\@EA\inlinemathematics\else\@EA\displaymathematics\fi}
+% better, esp when used in bTABLE ... eTABLE
+
+\def\automathematics
+ {\relax
+ \ifhmode
+ \expandafter\inlinemathematics
+ \else\ifintable
+ \expandafter\expandafter\expandafter\inlinemathematics
+ \else
+ \expandafter\expandafter\expandafter\displaymathematics
+ \fi\fi}
+
%D \macros
%D {dimension, nodimension}
%D