On 9/4/2024 8:53 PM, Wolfgang Schuster wrote:
Aditya Mahajan schrieb am 04.09.2024 um 05:58:
Hi,
With context 2024.08.16 the following gives an error:
\starttext $A \ldot B$ \stoptext
tex error > tex error on line 2 in file ./test.tex: Control sequence expected instead of undefined
$A \ldot B$ Same error with `\ldotp`.
However
\starttext \show\ldot \show\ldotp \stoptext
gives
\ldot=permanent \Umathchar"02"00"00002E \ldotp=permanent \Umathchar"06"00"00002E
which appears correct.
So, not sure what is going on. Any ideas?
I have no idea what's the cause for the error but I can narrow it down.
When you replace \ldot with it's mathchar version you can reproduce the error when there is *no* space at the end, \ldots on the other hand has no problem without the space.
\starttext
No space at the end of \tex{Umathchar}: $\Umathchar"19"00"002026\Umathchar"19"00"002026 $ % \ldots
Space at the end of \tex{Umathchar}: $\Umathchar"19"00"002026 \Umathchar"19"00"002026 $ % \ldots
No space at the end of \tex{Umathchar}: % $\Umathchar"02"00"00002E\Umathchar"02"00"00002E $ % \ldot
Space at the end of \tex{Umathchar}: $\Umathchar"02"00"00002E \Umathchar"02"00"00002E $ % \ldot
\stoptext
Wolfgang good analysis ... quick hack to get Aditya going ...
\appendtoks \amcode\commaasciicode \zerocount \amcode\periodasciicode \zerocount \amcode\semicolonasciicode\zerocount \to \everymathematics i need to ponder this (too late now) 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 -----------------------------------------------------------------