ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Placement of numbers in numbered equations on the left
@ 2016-09-07 18:25 Otared Kavian
  2016-09-10 14:38 ` Otared Kavian
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2016-09-07 18:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Hans,

Thank you for having fixed the issue with numbered equations in math aligned environment, noticed and reported by Mikael Sundqvist. 
However the problem is solved only when the numbers are on the right: when the numbers are on the left, there is still a discrepancy between the location of numbers in equations numbered in an aligned environment and those which are by themselves.
Please have a look at the attached PDF which is the result of the following example (using ConTeXt  ver: 2016.09.06 19:11 MKIV beta).
Best regards: OK

%%% begin math-align.tex
\starttext
\placeformula
\startformula
\startalign
\NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR
\NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
\stopalign
\stopformula

\placeformula
\startformula
1+1=2
\stopformula

\setupformulas[location=left]
with \type{\setupformulas[location=left]}

\placeformula
\startformula
\startalign
\NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR
\NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
\stopalign
\stopformula

\placeformula
\startformula
2+3=5
\stopformula
\stoptext
%%% end math-align.tex


[-- Attachment #2: math-align.pdf --]
[-- Type: application/pdf, Size: 13820 bytes --]

[-- Attachment #3: Type: text/plain, Size: 3 bytes --]





[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 4+ messages in thread

* Re: Placement of numbers in numbered equations on the left
  2016-09-07 18:25 Placement of numbers in numbered equations on the left Otared Kavian
@ 2016-09-10 14:38 ` Otared Kavian
  2016-09-11  1:46   ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2016-09-10 14:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1590 bytes --]

Hi Hans,

Following up the previous bug report, I tried the latest version, ConTeXt  ver: 2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the problem with the placement of equation numbers on the left, when using \startalign.
Actually the location of those equation numbers is correct as far as the horizontal distance is concerned, but it is not vertically.
In the attached PDF (which is the result of the following example) one can see that equation number (5) is placed on the grid line 10, while it shoul dbe placed on line 11 in alignment with the corresponding formula. Moreover equation number (4) does not show up at all (that number should be placed a little bit below line 9 of the grid).

Thanks in advance for your time.
Best regards: OK

%%% begin example bug-mathalign.tex
\showgrid

\starttext
With the default setting, that is \type{\setupformulas[location=right]} one gets:
\placeformula
\startformula
\startalign
\NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR[eq:explag0]
\NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
\stopalign
\stopformula

\placeformula
\startformula
1+1=2
\stopformula

\setupformulas[location=left]
While with \type{\setupformulas[location=left]} one gets:

\placeformula
\startformula
\startalign
\NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR[eq:explag0]
\NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
\stopalign
\stopformula

\placeformula
\startformula
2+3=5
\stopformula
\stoptext
%%% begin example bug-mathalign.tex


[-- Attachment #2: bug-mathalign-left.pdf --]
[-- Type: application/pdf, Size: 31214 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1383 bytes --]




> On 7 Sep 2016, at 20:25, Otared Kavian <otared@gmail.com> wrote:
> 
> Hi Hans,
> 
> Thank you for having fixed the issue with numbered equations in math aligned environment, noticed and reported by Mikael Sundqvist. 
> However the problem is solved only when the numbers are on the right: when the numbers are on the left, there is still a discrepancy between the location of numbers in equations numbered in an aligned environment and those which are by themselves.
> Please have a look at the attached PDF which is the result of the following example (using ConTeXt  ver: 2016.09.06 19:11 MKIV beta).
> Best regards: OK
> 
> %%% begin math-align.tex
> \starttext
> \placeformula
> \startformula
> \startalign
> \NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR
> \NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
> \stopalign
> \stopformula
> 
> \placeformula
> \startformula
> 1+1=2
> \stopformula
> 
> \setupformulas[location=left]
> with \type{\setupformulas[location=left]}
> 
> \placeformula
> \startformula
> \startalign
> \NC \exp(t_1)\exp(t_2)\NC = x_1x_2=\exp(\log(x_1x_2))\NR
> \NC \NC =\exp(\log x_1+\log x_2) = \exp(t_1+t_2).\NR[eq:explag1]
> \stopalign
> \stopformula
> 
> \placeformula
> \startformula
> 2+3=5
> \stopformula
> \stoptext
> %%% end math-align.tex
> 
> <math-align.pdf>
> 
> 


[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 4+ messages in thread

* Re: Placement of numbers in numbered equations on the left
  2016-09-10 14:38 ` Otared Kavian
@ 2016-09-11  1:46   ` Aditya Mahajan
  2016-09-11  9:27     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2016-09-11  1:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 10 Sep 2016, Otared Kavian wrote:

> Hi Hans,
>
> Following up the previous bug report, I tried the latest version, ConTeXt  ver: 2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the problem with the placement of equation numbers on the left, when using \startalign.
> Actually the location of those equation numbers is correct as far as the horizontal distance is concerned, but it is not vertically.
> In the attached PDF (which is the result of the following example) one can see that equation number (5) is placed on the grid line 10, while it shoul dbe placed on line 11 in alignment with the corresponding formula. Moreover equation number (4) does not show up at all (that number should be placed a little bit below line 9 of the grid).

I think that we need to create a test suite for math alignment. The 
sources for my old article on math alignment could be the initial source 
of examples.

Unfortunately, these days I mostly use ConTeXt for presentations only (and 
use LaTeX for articles). So, my own documents no longer serve as a test 
suite for the math features.

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] 4+ messages in thread

* Re: Placement of numbers in numbered equations on the left
  2016-09-11  1:46   ` Aditya Mahajan
@ 2016-09-11  9:27     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2016-09-11  9:27 UTC (permalink / raw)
  To: ntg-context

On 9/11/2016 3:46 AM, Aditya Mahajan wrote:
> On Sat, 10 Sep 2016, Otared Kavian wrote:
>
>> Hi Hans,
>>
>> Following up the previous bug report, I tried the latest version,
>> ConTeXt  ver: 2016.09.09 08:21 MKIV beta, and noticed that you have
>> solved one part of the problem with the placement of equation numbers
>> on the left, when using \startalign.
>> Actually the location of those equation numbers is correct as far as
>> the horizontal distance is concerned, but it is not vertically.
>> In the attached PDF (which is the result of the following example) one
>> can see that equation number (5) is placed on the grid line 10, while
>> it shoul dbe placed on line 11 in alignment with the corresponding
>> formula. Moreover equation number (4) does not show up at all (that
>> number should be placed a little bit below line 9 of the grid).
>
> I think that we need to create a test suite for math alignment. The
> sources for my old article on math alignment could be the initial source
> of examples.

fyi: one reason for 'issues' is that i try to simply these alignment 
mechanisms so that they can be controlled better for use in framed and 
such (local vs page stream usage) and spacing and so .. we'll get there 
eventually

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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 18:25 Placement of numbers in numbered equations on the left Otared Kavian
2016-09-10 14:38 ` Otared Kavian
2016-09-11  1:46   ` Aditya Mahajan
2016-09-11  9:27     ` Hans Hagen

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).