The size keyword in \fenced seems not working

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 ? Thanks in advance. FV Leung

Dear FV Leung, In the manual, it uses “factor= “ instead of “size=“. However, all the size of the bracket in the output are same as you said even though I replaced ’size’ with ‘factor’. I am using Mac and my ConTeXt version is ConTeXt ver: 2025.07.08 17:48 LMTX fmt: 2025.7.10 int: English/english We may wait for expert’s checking. Best regards, Dalyoung
\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 ?
Thanks in advance.
FV Leung ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________

On 7/12/2025 1:00 PM, Jeong Dal via ntg-context wrote:
Dear FV Leung,
In the manual, it uses “factor= “ instead of “size=“.
However, all the size of the bracket in the output are same as you said even though I replaced ’size’ with ‘factor’.
I am using Mac and my ConTeXt version is
ConTeXt ver: 2025.07.08 17:48 LMTX fmt: 2025.7.10 int: English/english
We may wait for expert’s checking.
The expert is back mid next week and I'm reluctang to touch anything without his advices etc, Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

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
participants (4)
-
fv leung
-
Hans Hagen
-
Jeong Dal
-
Wolfgang Schuster