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: Bug in placeformula with framed text
Date: Wed, 6 Jul 2016 00:05:57 +0200	[thread overview]
Message-ID: <2CDBBC4B-984C-467E-946F-5DF2B0D14AE5@gmail.com> (raw)
In-Reply-To: <49352a4d-b9f4-3e28-d0e5-97c06143c7da@wxs.nl>

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

Hi Hans,

Thanks a lot for having fixed the issue I was reporting.

Unfortunately I found another issue related to placeformula and alignment in math mode. 
In the following example the use of \startalign in a \placeformula triggers a weird behavior in the sense that the following instance of \startformula gets also a number, even though one does not issue a \placeformula command. Moreover the number is placed incorrectly.
In the resulting PDF I am attaching, please look at the numbers (4) and (8) placed incorrectly (and they are not wanted neither…).
When one removes the \placeformula command, the result is correct.

Best regards: OK

%%% begin bug-placeformula-align.tex
\definemathalignment[Lgather][n=1,align=left]

\starttext

\setupformulas[location=left] 
\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) \NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula


\blank
\hairline
\blank

\startformula
\startalign[n=2,align=left]
\NC a_{n} := {n - 1 \over n},\qquad\qquad \NC x_{n} := {n^2 + 1 \over n^2}, \NR
\NC b_{n} := -1 , \NC y_{n} := -1. \NR
\stopalign
\stopformula 

\blank
\hairline
\blank

\setupformulas[location=right] 

\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) \NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula


\blank
\hairline
\blank

\startformula
\startalign[n=2,align=left]
\NC a_{n} := {n - 1 \over n},\qquad\qquad \NC x_{n} := {n^2 + 1 \over n^2}, \NR
\NC b_{n} := -1 , \NC y_{n} := -1. \NR
\stopalign
\stopformula 

\stoptext
%%% end bug-placeformula-align.tex

[-- Attachment #2: bug-placeformula-align.pdf --]
[-- Type: application/pdf, Size: 12828 bytes --]

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



> On 05 Jul 2016, at 13:08, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 7/4/2016 11:11 AM, Otared Kavian wrote:
> 
>> Below is an example (sorry if it is not absolutely minimal: I ran into this bug when updating a lecture notes which uses a left frame around \proclaim stuff). I attach the PDF showing the problem. I wonder whether this is related to the new features introduced recently for math frames.
> 
> fixed in next beta
> 
> 
> -----------------------------------------------------------------
>                                          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
> ___________________________________________________________________________________


[-- 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-07-05 22:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-04  9:11 Otared Kavian
2016-07-05 11:08 ` Hans Hagen
2016-07-05 22:05   ` Otared Kavian [this message]

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=2CDBBC4B-984C-467E-946F-5DF2B0D14AE5@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).