
Am 12.07.2025 um 11:22 schrieb fv leung:
The following code (copied from the math manual) doesn’t produce the intended results with the most recent version of ConTeXt:
\starttext
\startformula \fenced[bracket]{\frac{1 + x}{1 - x}} = \fenced[bracket][size=0]{\frac{1 + x}{1 - x}} = \fenced[bracket][size=1]{\frac{1 + x}{1 - x}} = \fenced[bracket][size=2]{\frac{1 + x}{1 - x}} = \fenced[bracket][size=3]{\frac{1 + x}{1 - x}} = \fenced[bracket][size=4]{\frac{1 + x}{1 - x}} \stopformula
\stoptext
What's the proper way of setting size in \fenced ?
There is a problem with the following command in math-fen.mkxl. The internal parameter \p_factor is used twice for different keys. \protected\def\math_fenced_common#1#2#3#4#5% \Uwhatever class symbol source color {\c_math_fenced_class\math_class_by_parameter\mathfenceparameter#2% ... % \edef\p_factor {\mathfenceparameter\c!factor}% \edef\p_overflow {\mathfenceparameter\c!overflow}% \edef\p_size {\mathfenceparameter\c!size}% \edef\p_mathclass{\mathfenceparameter\c!mathclass}% \edef\p_factor {\ifconditional\indisplaymath\mathfenceparameter\c!displayfactor\else\mathfenceparameter\c!inlinefactor\fi}% \scratchcounter\math_tags_mfunctionlabattribute\plusthree{\currentglobalmathfence}{\mathfenceparameter\c!mathmeaning}\relax \ifempty\p_factor % nothing \orelse\ifx#1\Uleft \push_macro_c_math_factor_fenced \integerdef\c_math_factor_fenced\p_factor\relax \orelse\ifx#1\Uright \pop_macro_c_math_factor_fenced \fi ... \fi} Wolfgang