ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Placement of numbers in numbered equations on the left
Date: Sat, 10 Sep 2016 16:38:12 +0200	[thread overview]
Message-ID: <87694EB3-2BDC-4ECB-BAE7-1D1AEA520E9C@gmail.com> (raw)
In-Reply-To: <67D3019E-92B9-4345-AC0C-73862E94087B@gmail.com>

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

  reply	other threads:[~2016-09-10 14:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-07 18:25 Otared Kavian
2016-09-10 14:38 ` Otared Kavian [this message]
2016-09-11  1:46   ` Aditya Mahajan
2016-09-11  9:27     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87694EB3-2BDC-4ECB-BAE7-1D1AEA520E9C@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).