summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-mat.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2016-11-28 14:23:17 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-11-28 14:23:17 +0100
commitb8a38bef2eaacea0dd17897dc99f1ef09b46a7e3 (patch)
treee53017157648c5d4abab9b14ddfd23db0e43de38 /tex/context/base/mkiv/strc-mat.mkiv
parentf4d0ad2ba2c4ca5bfae469650e535fd46749b3f4 (diff)
downloadcontext-b8a38bef2eaacea0dd17897dc99f1ef09b46a7e3.tar.gz
2016-11-28 13:36:00
Diffstat (limited to 'tex/context/base/mkiv/strc-mat.mkiv')
-rw-r--r--tex/context/base/mkiv/strc-mat.mkiv12
1 files changed, 8 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/strc-mat.mkiv b/tex/context/base/mkiv/strc-mat.mkiv
index 0062948a5..52ab811b0 100644
--- a/tex/context/base/mkiv/strc-mat.mkiv
+++ b/tex/context/base/mkiv/strc-mat.mkiv
@@ -33,7 +33,7 @@
%\c!margin=,
%\c!align=,
%\c!separator=,
- %\c!grid=,
+ \c!grid=\v!math,
\c!location=\v!right,
\c!left=(,
\c!right=),
@@ -625,8 +625,12 @@
\def\strc_math_obey_depth
{\ifvmode\ifdim\prevdepth<\zeropoint\else\ifdim\prevdepth<\strutdp
% maybe add a tracing option here
- \kern\dimexpr\strutdp-\prevdepth\relax
- \prevdepth\strutdp
+ \ifgridsnapping
+ \directvspacing\v!depth
+ \else
+ \kern\dimexpr\strutdp-\prevdepth\relax
+ \prevdepth\strutdp
+ \fi
\fi\fi\fi}
\setvalue{\??mathdisplayspacemodel\v!before:3}%
@@ -646,7 +650,7 @@
\fi\fi}
\setvalue{\??mathdisplayspacemodel\v!after:3}%
- {\prevdepth\strutdp
+ {\prevdepth\strutdp % \directvspacing\v!depth
\ifx\p_spaceafter\v!none
% nothing
\else\ifx\p_spaceafter\empty