Several math features broke for me in new Debian version
Dear Friends,
I am a regular user of ConTeXt. A recent upgrade of ConTeXt in Debian
broke things for me. The bug report is here:
https://bugs.debian.org/1055233
but I have reproduced the gist here:
Upon upgrading to ConTeXt 2023.05.05.20230730+dfsg-2, several math
features seem to break for me. Here is an example:
\starttext
Hello world!
\startformula
X(f) = \startcases[align={right,left},distance=3pt]
\NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
\NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
\stopcases
\stopformula
\stoptext
The above works very well in 2021.03.05.20230120+dfsg-1+deb12u1 but
gives me this error in 2023.05.05.20230730+dfsg-2:
resolvers | formats | executing runner 'run luametatex format': /usr/bin/luametatex --jobname="./test.tex" --socket --shell-escape --fmt=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.fmt --lua=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/usr/bin"
job > passes > version mismatch: 1.32 <> 1.33
system >
system > ConTeXt ver: 2023.05.05 18:36 LMTX fmt: 2023.11.2 int: english/english
system >
system > 'cont-new.mkxl' loaded
open source > level 1, order 1, name '/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system > beware: some patches loaded from cont-new.mkiv
close source > level 1, order 1, name '/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system > files > jobname './test', input './test.tex', result './test'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts > preloading latin modern fonts (second stage)
mathematics > tweak > 'LatinModernMath-Regular', size 6, math size 3, version 'Version 1.959' found, version 'Version 1.958' expected
fonts > 'fallback modern rm 12pt' is loaded
tex error > tex error on line 5 in file ./test.tex: Missing $ inserted
<inserted text>
$
<to be read again>
\mathatom
<macro> \math_atom_by_parameter_indeed
#1->\mathatom
\s!class \mathcodechecked {#1}
<macro> \math_frac
#1#*[#2]->\beginmathgroup \setlocalmathfractioncurrent {#1}\ifparameter #2\or \setupcurrentmathfraction [#2]\fi \edef \p_math_fraction_fences {\mathfractionparameter \c!fences }\math_atom_by_parameter \mathfractionparameter
\bgroup \ifempty \p_math_f
<to be read again>
{
Kumar Appaiah schrieb am 03.11.2023 um 11:44:
Dear Friends,
I am a regular user of ConTeXt. A recent upgrade of ConTeXt in Debian broke things for me. The bug report is here:
https://bugs.debian.org/1055233
but I have reproduced the gist here:
Upon upgrading to ConTeXt 2023.05.05.20230730+dfsg-2, several math features seem to break for me. Here is an example:
\starttext Hello world! \startformula X(f) = \startcases[align={right,left},distance=3pt] \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR \stopcases \stopformula \stoptext
There has been changes in the math alignment mechanism a while ago and the cases environment use math mode for a column entry when you use the \NC tag at the begin of a cell, to make your example working again remove the $ in the column. \starttext \startformula X(f) = \startcases \NC T, \NC |f| < \frac{1}{2T} \NR \NC 0, \NC |f| \geq \frac{1}{2T} \NR \stopcases \stopformula \stoptext To typeset the content of a column as text replace \NC with \TC at the begin of the cell. Wolfgang
On Fri, Nov 03, 2023 at 01:16:15PM +0100, Wolfgang Schuster wrote:
\starttext Hello world! \startformula X(f) = \startcases[align={right,left},distance=3pt] \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR \stopcases \stopformula \stoptext
There has been changes in the math alignment mechanism a while ago and the cases environment use math mode for a column entry when you use the \NC tag at the begin of a cell, to make your example working again remove the $ in the column.
\starttext
\startformula X(f) = \startcases \NC T, \NC |f| < \frac{1}{2T} \NR \NC 0, \NC |f| \geq \frac{1}{2T} \NR \stopcases \stopformula
\stoptext
To typeset the content of a column as text replace \NC with \TC at the begin of the cell.
Thank you for pointing this out. For now, I shall refrain from upgrading, since this is a backwards incompatible change that affects many files. Eventually, I'll make the required changes. Kumar -- Kumar Appaiah
participants (3)
-
Kumar Appaiah
-
Kumar Appaiah
-
Wolfgang Schuster