Hi, I do not remember where it came from, probably AMS Math or something like that.
Many thanks. It works but I am curious as to why the working code broke. On Tue, Aug 6, 2024 at 9:58 PM Mikael Sundqvist <mic...@gmail.com> wrote: > > Hi, > > On Tue, Aug 6, 2024 at 5:57 PM Shiv Shankar Dayal > <shivshankar.da...@gmail.com> wrote: > > > > I have defined a determinant environment like below: > > > > \definemathmatrix[determinant] > > [matrix:bars] > > [simplecommand=thedeterminant] > > > > and I create a determinant like below: > > > > \startformula \startdeterminant\NC a_{11} \NC a_{12} \NC a_{13} \NC > > \cdots \NC a_{1n}\NR > > \NC a_{21} \NC a_{22} \NC a_{23} \NC \cdots \NC a_{2n}\NR > > \NC a_{31} \NC a_{32} \NC a_{33} \NC \cdots \NC a_{3n}\NR > > \multispan{9}{\dotfill}\NR > > \NC a_{n1} \NC a_{n2} \NC a_{n3} \NC \cdots \NC a_{nn} > > \NR\stopdeterminant > > > > This was working before today but I updated ConTeXt and it has stopped > > working. The error it gives me now is: > > > > tex error > tex error on line 277 in file determinants.tex: You > > can't use '\Ustopmath' in restricted horizontal mode > > > > How can I get it working again? > > > > -- > > Respect, > > Shiv Shankar Dayal > > I never seen \multispan before. But this seems to work: > > \definemathmatrix > [determinant] > [matrix:bars] > [simplecommand=thedeterminant] > > \starttext > > \startformula > \startdeterminant > \NC a_{11} \NC a_{12} \NC a_{13} \NC \cdots \NC a_{1n}\NR > \NC a_{21} \NC a_{22} \NC a_{23} \NC \cdots \NC a_{2n}\NR > \NC a_{31} \NC a_{32} \NC a_{33} \NC \cdots \NC a_{3n}\NR > \HF\NR > % \multispan{9}{\dotfill}\NR > \NC a_{n1} \NC a_{n2} \NC a_{n3} \NC \cdots \NC a_{nn}\NR > \stopdeterminant > \stopformula > > \stoptext > > I hope it gives you what you want. > > /Mikael > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- Respect, Shiv Shankar Dayal ___________________________________________________________________________________ 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 ___________________________________________________________________________________