summaryrefslogtreecommitdiff
path: root/tex/context/base/supp-mat.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/supp-mat.tex')
-rw-r--r--tex/context/base/supp-mat.tex15
1 files changed, 14 insertions, 1 deletions
diff --git a/tex/context/base/supp-mat.tex b/tex/context/base/supp-mat.tex
index 5b2305f8b..f21ee6afa 100644
--- a/tex/context/base/supp-mat.tex
+++ b/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