ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with \leqalignno
@ 2016-09-11  1:00 Mingranina Gingranina
  2016-09-11  1:19 ` Aditya Mahajan
  2016-09-11  9:28 ` Otared Kavian
  0 siblings, 2 replies; 7+ messages in thread
From: Mingranina Gingranina @ 2016-09-11  1:00 UTC (permalink / raw)
  To: ntg-context

 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problem with \leqalignno
  2016-09-11  1:00 Problem with \leqalignno Mingranina Gingranina
@ 2016-09-11  1:19 ` Aditya Mahajan
  2016-09-11  9:28 ` Otared Kavian
  1 sibling, 0 replies; 7+ messages in thread
From: Aditya Mahajan @ 2016-09-11  1:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problem with \leqalignno
  2016-09-11  1:00 Problem with \leqalignno Mingranina Gingranina
  2016-09-11  1:19 ` Aditya Mahajan
@ 2016-09-11  9:28 ` Otared Kavian
  2016-09-11 10:02   ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2016-09-11  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <mingranina@gmail.com> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problem with \leqalignno
  2016-09-11  9:28 ` Otared Kavian
@ 2016-09-11 10:02   ` Hans Hagen
  2016-09-11 13:35     ` Mingranina Gingranina
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2016-09-11 10:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problem with \leqalignno
  2016-09-11 10:02   ` Hans Hagen
@ 2016-09-11 13:35     ` Mingranina Gingranina
  2016-09-11 14:05       ` Otared Kavian
  0 siblings, 1 reply; 7+ messages in thread
From: Mingranina Gingranina @ 2016-09-11 13:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <pragma@wxs.nl> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problem with \leqalignno
  2016-09-11 13:35     ` Mingranina Gingranina
@ 2016-09-11 14:05       ` Otared Kavian
  2016-09-11 15:57         ` Mingranina Gingranina
  0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2016-09-11 14:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <mingranina@gmail.com> 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 <pragma@wxs.nl> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Problem with \leqalignno
  2016-09-11 14:05       ` Otared Kavian
@ 2016-09-11 15:57         ` Mingranina Gingranina
  0 siblings, 0 replies; 7+ messages in thread
From: Mingranina Gingranina @ 2016-09-11 15:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

 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 <otared@gmail.com> wrote:
> 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 <mingranina@gmail.com>
>> 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 <pragma@wxs.nl> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-09-11 15:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-11  1:00 Problem with \leqalignno Mingranina Gingranina
2016-09-11  1:19 ` Aditya Mahajan
2016-09-11  9:28 ` Otared Kavian
2016-09-11 10:02   ` Hans Hagen
2016-09-11 13:35     ` Mingranina Gingranina
2016-09-11 14:05       ` Otared Kavian
2016-09-11 15:57         ` Mingranina Gingranina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).