Problem with \leqalignno
Hello All, I am trying to compile the following example (from http://wiki.contextgarden.net/Math/Display) with context: \starttext \placeformula \startformula \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr a^2 + b^2 &= c^2 &\subformulanumber{b} \cr d^2 &= e^2 &\formulanumber\cr} \stopformula \stoptext but I get the following error message: {{{ . . . tex error > tex error on line 7 in file /home/user/math-example.tex: ! Undefined control sequence <argument> ...er {a} \cr a^2 + b^2 &= c^2 &\subformulanumber {b} \cr d^2 &= e^2 &\formu... \math_both_eqalign_no_normal ...ratchtoks \crcr #2 \crcr \egroup \math_finish... l.7 d^2 &= e^2 &\formulanumber\cr} 1 \starttext 2 3 \placeformula 4 \startformula 5 \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr 6 a^2 + b^2 &= c^2 &\subformulanumber{b} \cr 7 >> d^2 &= e^2 &\formulanumber\cr} 8 \stopformula 9 10 \stoptext 11 ? }}} Am I doing something wrong? Any help would be gratefully appreciated. Thanks Mingranina ---------------------- Luatex Version: 0.98.3 ConTeXt Version: 2016.09.06 19:11 MKIV beta fmt: 2016.9.9 int: english/english
On Sun, 11 Sep 2016, Mingranina Gingranina wrote:
Hello All,
I am trying to compile the following example (from http://wiki.contextgarden.net/Math/Display) with context:
\starttext
\placeformula \startformula \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr a^2 + b^2 &= c^2 &\subformulanumber{b} \cr d^2 &= e^2 &\formulanumber\cr} \stopformula
\stoptext
Am I doing something wrong? Any help would be gratefully appreciated.
How about: \setupformulas[location=left] \starttext \startsubformulas \placeformula[+] \startformula \startalign \NC c^2 \EQ a^2 + b^2 \NR[+] \NC a^2 + b^2 \EQ c^2 \NR[+] \NC d^2 \EQ e^2 \NR \stopalign \stopformula \stopsubformulas \stoptext Aditya
Hi Mingranina, For displayed aligned formulas it is better to use \startalign…\stopalign, instead of the plain TeX construction \leqalignno. Please have a look at the following: Best regards: OK %%% begin align-equations.tex \starttext \placeformula \startformula \startalign \NC c^2 \NC= a^2 + b^2 \NR[+] \NC a^2 + b^2 \NC = c^2 \NR[+] \NC d^2 \NC = e^2 \NR[+] \stopalign \stopformula \startsubformulas[eq:Rel] \placeformula \startformula \startalign \NC c^2 \NC= a^2 + b^2 \NR[eq:a] \NC a^2 + b^2 \NC = c^2 \NR[eq:b] \NC d^2 \NC = e^2 \NR[eq:c] \stopalign \stopformula \stopsubformulas The relations (\in[eq:Rel]) are divided into three parts, but (\in[eq:c]) is obvious. \stoptext %%% end align-equations.tex
On 11 Sep 2016, at 03:00, Mingranina Gingranina
wrote: Hello All,
I am trying to compile the following example (from http://wiki.contextgarden.net/Math/Display) with context:
\starttext
\placeformula \startformula \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr a^2 + b^2 &= c^2 &\subformulanumber{b} \cr d^2 &= e^2 &\formulanumber\cr} \stopformula
\stoptext
but I get the following error message: {{{ . . . tex error > tex error on line 7 in file /home/user/math-example.tex: ! Undefined control sequence
<argument> ...er {a} \cr a^2 + b^2 &= c^2 &\subformulanumber {b} \cr d^2 &= e^2 &\formu... \math_both_eqalign_no_normal ...ratchtoks \crcr #2 \crcr \egroup \math_finish... l.7 d^2 &= e^2 &\formulanumber\cr}
1 \starttext 2 3 \placeformula 4 \startformula 5 \leqalignno{c^2 &= a^2 + b^2 &\formulanumber{a} \cr 6 a^2 + b^2 &= c^2 &\subformulanumber{b} \cr 7 >> d^2 &= e^2 &\formulanumber\cr} 8 \stopformula 9 10 \stoptext 11
? }}}
Am I doing something wrong? Any help would be gratefully appreciated.
Thanks Mingranina
---------------------- Luatex Version: 0.98.3 ConTeXt Version: 2016.09.06 19:11 MKIV beta fmt: 2016.9.9 int: english/english ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 9/11/2016 11:28 AM, Otared Kavian wrote:
Hi Mingranina,
For displayed aligned formulas it is better to use \startalign…\stopalign, instead of the plain TeX construction \leqalignno.
indeed, and at some point they might even get nilled .. we can't use them in complex cases anyway 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 -----------------------------------------------------------------
Dear Aditya, Otared, and Hans,
Hello,
Thank you all very much for your help. Your codes work fine. However when I use
\setupformulas[location=right] the equation numbers apperar on the rightmost of
the line, but with \setupformulas[location=left] the equation numbers
appear near
the formulas and not on leftmost of the line. What should I do so
that in both cases
the equation numbers appear near the formulas or with
\setupformulas[location=left]
the equation numbers appear on the leftmost of the line?
Thanks
Mingranina
----------------------
Luatex Version: 0.98.3
ConTeXt Version: 2016.09.06 19:11 MKIV beta fmt: 2016.9.9 int:
english/english
On 9/11/16, Hans Hagen
On 9/11/2016 11:28 AM, Otared Kavian wrote:
Hi Mingranina,
For displayed aligned formulas it is better to use \startalign…\stopalign, instead of the plain TeX construction \leqalignno.
indeed, and at some point they might even get nilled .. we can't use them in complex cases anyway
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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hi Mingranina, Indeed, as of today, ConTeXt version 2016.09.09 08:21 MKIV beta, there is a small bug with the location of equation numbers when one chooses \setupformulas[location=left] and Hans is aware of the problem, which will be solved (he is rebuilding some fundamental fetaures in displayed math formulas). Meanwhile, if you typeset your document with a version such as the one from TeXLive 2016, that is the stable version ConTeXt ver: 2016.05.17 19:20 MKIV current then you get good results. Best regrads: OK
On 11 Sep 2016, at 15:35, Mingranina Gingranina
wrote: Dear Aditya, Otared, and Hans, Hello,
Thank you all very much for your help. Your codes work fine. However when I use \setupformulas[location=right] the equation numbers apperar on the rightmost of the line, but with \setupformulas[location=left] the equation numbers appear near the formulas and not on leftmost of the line. What should I do so that in both cases the equation numbers appear near the formulas or with \setupformulas[location=left] the equation numbers appear on the leftmost of the line?
Thanks Mingranina
---------------------- Luatex Version: 0.98.3 ConTeXt Version: 2016.09.06 19:11 MKIV beta fmt: 2016.9.9 int: english/english
On 9/11/16, Hans Hagen
wrote: On 9/11/2016 11:28 AM, Otared Kavian wrote:
Hi Mingranina,
For displayed aligned formulas it is better to use \startalign…\stopalign, instead of the plain TeX construction \leqalignno.
indeed, and at some point they might even get nilled .. we can't use them in complex cases anyway
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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Dear Otared,
Hello
Thank you so much for your advice on using the stable version of
ConTeXt. I downgraded
to
ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2016.9.6 int:
english/english,
LuaTeX, Version 0.95.0 (TeX Live 2016)
and now everything works just fine.
Thanks
Mingranina
----------------------
ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2016.9.6 int:
english/english
LuaTeX, Version 0.95.0 (TeX Live 2016)
On 9/11/16, Otared Kavian
Hi Mingranina,
Indeed, as of today, ConTeXt version 2016.09.09 08:21 MKIV beta, there is a small bug with the location of equation numbers when one chooses \setupformulas[location=left] and Hans is aware of the problem, which will be solved (he is rebuilding some fundamental fetaures in displayed math formulas).
Meanwhile, if you typeset your document with a version such as the one from TeXLive 2016, that is the stable version ConTeXt ver: 2016.05.17 19:20 MKIV current then you get good results.
Best regrads: OK
On 11 Sep 2016, at 15:35, Mingranina Gingranina
wrote: Dear Aditya, Otared, and Hans, Hello,
Thank you all very much for your help. Your codes work fine. However when I use \setupformulas[location=right] the equation numbers apperar on the rightmost of the line, but with \setupformulas[location=left] the equation numbers appear near the formulas and not on leftmost of the line. What should I do so that in both cases the equation numbers appear near the formulas or with \setupformulas[location=left] the equation numbers appear on the leftmost of the line?
Thanks Mingranina
---------------------- Luatex Version: 0.98.3 ConTeXt Version: 2016.09.06 19:11 MKIV beta fmt: 2016.9.9 int: english/english
On 9/11/16, Hans Hagen
wrote: On 9/11/2016 11:28 AM, Otared Kavian wrote:
Hi Mingranina,
For displayed aligned formulas it is better to use \startalign…\stopalign, instead of the plain TeX construction \leqalignno.
indeed, and at some point they might even get nilled .. we can't use them in complex cases anyway
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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Mingranina Gingranina
-
Otared Kavian