summaryrefslogtreecommitdiff
path: root/tex/context/base/math-ali.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-09-05 13:23:00 +0200
committerHans Hagen <pragma@wxs.nl>2010-09-05 13:23:00 +0200
commit536e4dd4fe2e98c3cefdb9741507c20f4489e2c0 (patch)
treed49d2a223c08240cb83c3d702af8226ee05ff84c /tex/context/base/math-ali.mkiv
parent0da1a7a94f55a5dc0d318f399eb843303d5b62f6 (diff)
downloadcontext-536e4dd4fe2e98c3cefdb9741507c20f4489e2c0.tar.gz
beta 2010.09.05 13:23
Diffstat (limited to 'tex/context/base/math-ali.mkiv')
-rw-r--r--tex/context/base/math-ali.mkiv21
1 files changed, 11 insertions, 10 deletions
diff --git a/tex/context/base/math-ali.mkiv b/tex/context/base/math-ali.mkiv
index 31f71219a..872cc3b82 100644
--- a/tex/context/base/math-ali.mkiv
+++ b/tex/context/base/math-ali.mkiv
@@ -61,7 +61,7 @@
% preamble is scanned for tabskips so we need the span to prevent an error message
-\chardef\eqalignmode\plusone
+\setnewconstant\eqalignmode\plusone
\def\preparereqalignno
{\!!toksa{\strut\firstineqalign\hfil\leftofeqalign\span\mathineqalign{##}\rightofeqalign\tabskip\zeropoint}%
@@ -73,7 +73,7 @@
\else
\!!toksc{\hfil\tabskip\centering&\llap{\span\textineqalign{##}}\tabskip\zeropoint}%
\fi\fi
- \global\chardef\mathnumberstatus\zerocount
+ \global\mathnumberstatus\zerocount
\buildeqalign
\presetdisplaymath
\tabskip\centering}
@@ -89,7 +89,7 @@
\else
\!!toksc{\hfil\tabskip\centering&\kern-\displaywidth\rlap{\span\textineqalign{##}}\tabskip\displaywidth}%
\fi\fi
- \global\chardef\mathnumberstatus\zerocount
+ \global\mathnumberstatus\zerocount
\buildeqalign
\presetdisplaymath
\tabskip\centering}
@@ -109,7 +109,7 @@
\def\dobothaligneqalignno#1%
{\ifmmode
\displ@y
- \global\chardef\mathnumberstatus\plusone
+ \global\mathnumberstatus\plusone
\ifcase\mathraggedstatus
\def\finishalignno{\crcr\egroup}%
\else
@@ -127,12 +127,12 @@
\xdef\mathnumbercorrection{\the\wd\scratchbox}%
\fi
\box\scratchbox
- \global\chardef\mathnumberstatus\plustwo}
+ \global\mathnumberstatus\plustwo}
% \def\dobothaligneqalignno#1%
% {\ifmmode
% \displ@y
-% \global\chardef\mathnumberstatus\plusone
+% \global\mathnumberstatus\plusone
% we're in a mathbox
% \vcenter\bgroup
% \def\finishalignno{\crcr\egroup\egroup}%
@@ -1069,14 +1069,15 @@
\def\mathhbox
{\iftracemath\ruledhbox\else\hbox\fi}
-\chardef\mathraggedstatus=0 % normal left center right
-\chardef\mathnumberstatus=0 % nothing normal shift_right
+\newconstant\mathraggedstatus % normal left center right
+\newconstant\mathnumberstatus % nothing normal shift_right
+
\let\mathnumbercorrection\!!zeropoint
\unexpanded\def\startmathbox#1%
{\hsize\displaywidth
- \global\chardef\mathnumberstatus\plusone
- \chardef\mathraggedstatus#1\relax
+ \global\mathnumberstatus\plusone
+ \mathraggedstatus#1\relax
\let\mathnumbercorrection\!!zeropoint
\global\let\@eqno \empty \def\eqno {\gdef\@eqno }%
\global\let\@leqno\empty \def\leqno{\gdef\@leqno}%