ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: Equation Numbering bug?
Date: Sun, 12 Feb 2006 20:20:31 +0100	[thread overview]
Message-ID: <43EF8A7F.10406@elvenkind.com> (raw)
In-Reply-To: <Pine.WNT.4.63.0602100138130.3900@nqvgln>

Aditya Mahajan wrote:
> I do not understand why the second equation is numbered

It is a bug. \placeformula turns on formula number processing
(\settrue \handleformulanumber), but it never resets it.

I guess this could be done right at the end of each formula,
like so:

\unprotect
\def\dostopformula
   {\doplaceformulanumber
    \getvalue{\e!stop\formulaparameter\c!alternative\v!formula}%
    \resetlastlinewidth
    \nonoindentation
    \dochecknextindentation{\??fm\currentformula}%
    \egroup
    \setfalse\handleformulanumber %TH, new
    \dorechecknextindentation}
\protect

Hans, I am not completely sure this is the right place. Please check!

Cheers, Taco

> \starttext
>    \placeformula \startformula \startalign[n=2]
>      \NC  a \NC = b \NR
>      \NC  c \NC = d \NR[+]
>    \stopalign \stopformula
>    Some text to separate equations
>    \startformula
>      e = f
>    \stopformula
> \stoptext
> 
> I can get rid of the numbering by placing a \placeformula[-] in the 
> begining. But, it should not be numbered by default.

  reply	other threads:[~2006-02-12 19:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10  6:41 Aditya Mahajan
2006-02-12 19:20 ` Taco Hoekwater [this message]
2006-02-13 11:26   ` 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=43EF8A7F.10406@elvenkind.com \
    --to=taco@elvenkind.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).