diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-06-18 16:51:50 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-06-18 16:51:50 +0200 |
commit | 22e02504c253153b4e57030334989a95c5b62a46 (patch) | |
tree | 8400bc7ca7e5db6b67b6c67aff23321ff385189b /tex/context/base/mkiv/strc-mat.mkiv | |
parent | eefbee47c0b7ac3a179e1e7fcd2e6ea1af990676 (diff) | |
download | context-22e02504c253153b4e57030334989a95c5b62a46.tar.gz |
2016-06-18 16:33:00
Diffstat (limited to 'tex/context/base/mkiv/strc-mat.mkiv')
-rw-r--r-- | tex/context/base/mkiv/strc-mat.mkiv | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/tex/context/base/mkiv/strc-mat.mkiv b/tex/context/base/mkiv/strc-mat.mkiv index 0fb609e45..554dc84ca 100644 --- a/tex/context/base/mkiv/strc-mat.mkiv +++ b/tex/context/base/mkiv/strc-mat.mkiv @@ -48,6 +48,12 @@ \c!strut=\v!no, \c!distance=2\emwidth] +\setupformulaframed + [%c!location=<auto set>, + %c!width=<auto set>, + %c!align=<auto set>, + \c!offset=.5\exheight] + \ifdefined\matheqnogapstep % we're ok, now we have that quad in the distance which is % more consistent and not depending on the text font in math @@ -620,11 +626,19 @@ \directvspacing\p_spaceafter \fi} +\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 + \fi\fi\fi} + \setvalue{\??mathdisplayspacemodel\v!before:3}% - {\ifdim\lastskip>\zeropoint + {% not ok, try \stopformula\par\startformula vs \stopformula\startformula + \ifdim\lastskip>\zeropoint % bah \else - \obeydepth + \strc_math_obey_depth \nointerlineskip \fi \ifx\p_spacebefore\v!none @@ -702,15 +716,6 @@ %D %D \typebuffer \getbuffer -\installcorenamespace{formulaoption} - -\def\strc_formulas_option#1% - {\ifcsname\??formulaoption#1\endcsname - \lastnamedcs - \else - \font_basics_switchtobodyfont{#1}% for old time sake, might go away, only pt so maybe dimension and small test - \fi} - \setvalue{\??formulaoption\v!packed}% {\c_strc_formulas_space_model\zerocount} |