summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/math-fen.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/math-fen.mkxl')
-rw-r--r--tex/context/base/mkxl/math-fen.mkxl17
1 files changed, 17 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/math-fen.mkxl b/tex/context/base/mkxl/math-fen.mkxl
index b3c85070f..d8cbf4e76 100644
--- a/tex/context/base/mkxl/math-fen.mkxl
+++ b/tex/context/base/mkxl/math-fen.mkxl
@@ -54,6 +54,8 @@
\c!height=\zeropoint,
\c!depth=\zeropoint,
\c!distance=\zerocount,
+ \c!topspace=\zeropoint,
+ \c!bottomspace=\zeropoint,
\c!factor=\v!auto]
\appendtoks
@@ -83,6 +85,17 @@
%D $ a + \fenced[bar] {\frac {b} {c}} + d $
%D \stoptyping
+% \startbuffer
+% $ \left( \frac{1}{x}^{2} \right)$
+% $ \left( x \right)$
+% $ \left( x^2 \right)$
+% $ \left( \frac{1}{x} \right)$
+% $ \left( \frac{1}{x}^2 \right)$
+% \stopbuffer
+%
+% \getbuffer\blank
+% {\setupmathfence[topspace=-2pt,bottomspace=-1pt]\getbuffer\blank}
+
% todo : class -> number
\newconditional\c_math_fenced_mirror \settrue \c_math_fenced_mirror
@@ -205,6 +218,10 @@
\fi
\s!source
\numexpr\namedboxanchor{\mathfenceparameter#4}\relax
+ %
+ \s!top \mathfenceparameter\c!topspace
+ \s!bottom \mathfenceparameter\c!bottomspace
+ %
\math_fenced_trace
\ifx\p_fence\v!none
\Udelimiter\mathghostcode\fam\zerocount