diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-02-01 13:51:42 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-02-01 13:51:42 +0100 |
commit | ab4fc27d8b1541b491621e07ab1f40f30aaf50ae (patch) | |
tree | 19bf383dd03c790c37743e7ff283239c0ac07302 /tex/context/base/mkxl/math-fen.mkxl | |
parent | aa03d7a012fdb0a431f95b7b13ffbfea78fb43f3 (diff) | |
download | context-ab4fc27d8b1541b491621e07ab1f40f30aaf50ae.tar.gz |
2021-02-01 13:20:00
Diffstat (limited to 'tex/context/base/mkxl/math-fen.mkxl')
-rw-r--r-- | tex/context/base/mkxl/math-fen.mkxl | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/tex/context/base/mkxl/math-fen.mkxl b/tex/context/base/mkxl/math-fen.mkxl index 2e491f28b..ed680b948 100644 --- a/tex/context/base/mkxl/math-fen.mkxl +++ b/tex/context/base/mkxl/math-fen.mkxl @@ -124,15 +124,17 @@ \fi \orelse\ifx\p_factor\v!none #3% - \s!height\zeropoint - \s!depth\zeropoint + \s!height\zeropoint % redundant with "exact" + \s!depth\zeropoint % redundant with "exact" \ifempty\p_mathclass\else \s!class\p_mathclass \fi \s!axis + \s!exact % new % #2% \else - \scratchdimen\ifx\p_factor\v!fixed\scaledpoint\else\dimexpr\p_factor\bodyfontsize/2\relax\fi + %\scratchdimen\ifx\p_factor\v!fixed\scaledpoint\else\dimexpr\p_factor\bodyfontsize/2\relax\fi + \scratchdimen\ifx\p_factor\v!fixed\zeropoint\else\dimexpr\p_factor\bodyfontsize/2\relax\fi #3% \s!height\scratchdimen \s!depth\scratchdimen @@ -140,6 +142,7 @@ \s!class\p_mathclass \fi \s!axis + \s!exact \fi \Udelimiter#4\fam#1\relax \fi} @@ -223,6 +226,11 @@ {\advance\c_math_fenced_nesting\plusone \begingroup \edef\currentmathfence{#1}% +% under test: +\c_attr_mathsize\attributeunsetvalue +\letmathfenceparameter\c!size\empty +\letmathfenceparameter\c!factor\v!auto +% so far \ifparameter#2\or\setupcurrentmathfence[#2]\fi \math_fenced_fenced_common \edef\p_size{\mathfenceparameter\c!size}% @@ -598,15 +606,20 @@ % 3: htdp * 1.33^n % 4: size * 1.33^n -\setnewconstant\bigmathdelimitermethod \plusone +\setnewconstant\bigmathdelimitermethod \plustwo % \plusone \setnewconstant\bigmathdelimitervariant\plusthree -\protected\def\plainbigdelimiters % traditional method - {\bigmathdelimitermethod\plustwo} +\appendtoks + \bigmathdelimitermethod \mathfenceparameter\c!method\relax + \bigmathdelimitervariant\mathfenceparameter\c!alternative\relax +\to \everysetupmathfence -\plainbigdelimiters % is default for the moment but not so nice +\setupmathfence[\c!method=1,\c!alternative=2] -% \setconstant\bigmathdelimitermethod\plusone +% \protected\def\plainbigdelimiters % traditional method +% {\bigmathdelimitermethod\plustwo} +% +% \plainbigdelimiters % is default for the moment but not so nice \installcorenamespace{mathbig} |