ConTeXt:未定义控制序列 \math_fenced_x_middle

ConTeXt:未定义控制序列 \math_fenced_x_middle

此代码示例

\startformula
  E=\fenced[brace]{x\in\naturalnumbers \mid 0<x<\infty}
\stopformula

应该产生

在此处输入图片描述

不幸的是,使用 ConTeXt LMTX (2022.08.25) 时我只收到以下错误

Undefined control sequence \math_fenced_x_middle

<recently read>
    \math_fenced_x_middle
<macro> \p_mathclass
    \ifcase \c_math_fence_nesting \normalmid \else \middle \vert
    \fi
<argument>
    x\in \naturalnumbers \mid
    0<x<\infty
<macro> \math_fenced_fenced_indeed_adapt
    #1->\setfalse \c_math_fenced_sized \math_fenced_left #1
    \setfalse \c_math_fenced_sized \math_fenced_right \math_fenced_fenced_indeed_finish
<line 3.3>
      E=\fenced[brace]{x\in \naturalnumbers \mid 0<x<\infty}

1     \startTEXpage
2     \startformula
3 >>    E=\fenced[brace]{x\in \naturalnumbers \mid 0<x<\infty}
4     \stopformula
5     \stopTEXpage
6
The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context     | fatal error: return code: 1

这里有什么问题?

答案1

尝试

\definemathfence[Set][brace][command=yes,middle=|]

进而

\startformula
  E=\Set{x\in\naturalnumbers \fence 0<x<\infty}
\stopformula

事实上,我们上周尝试了不同的东西,很快就可以使用这些设置。

\definemathfence[Set][brace][command=yes,middle=|,setups=math:fence:set]

\starttext
\startformula
\Set{a \suchthat b \where c \and d}
\stopformula
\stoptext

\suchthat使用中产阶级。\where\and将设置逗号,希望间距合适(可以在设置中更改)。可以说这是实验。欢迎反馈。

(事实上​​,我有点想知道这\mid应该是什么。)

相关内容