[dev-context] math-ali.mkiv

Wolfgang Schuster wolfgang.schuster at gmail.com
Wed Apr 10 09:18:30 CEST 2013


Hi,

the redefinition of \startalignment in math-ali.mkiv doesn’t cover \stopalignment.


\ifdefined \startalignment

    \let\align_math_normal_start\startalign
    \let\align_math_normal_stop \stopalign

    \let\align_text_normal_start\startalignment
    \let\align_text_normal_stop \stopalignment

    \unexpanded\def\startalign
      {\ifmmode
-        \let\stopalign\align_math_normal_stop % cannot be an unexpanded def ... lookahead in align
+        \let\stopalign    \align_math_normal_stop % cannot be an unexpanded def ... lookahead in align
+        \let\stopalignment\align_math_normal_stop % cannot be an unexpanded def ... lookahead in align
         \expandafter\align_math_normal_start
       \else
-        \let\stopalign\align_text_normal_stop
+        \let\stopalign    \align_text_normal_stop
+        \let\stopalignment\align_text_normal_stop
         \expandafter\align_text_normal_start
       \fi}

    \let\stopalign    \relax
+   \let\stopalignment\relax

    \let\startalignment\startalign
-   \let\stopalignment \stopalign

\fi


Wolfgang


More information about the dev-context mailing list