From: Aditya Mahajan <adityam@umich.edu>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Help : Unknown references
Date: Wed, 22 Mar 2006 16:57:57 -0500 (EST) [thread overview]
Message-ID: <Pine.GSO.4.63.0603221628320.4164@rrpf4327h07.ratva.hzvpu.rqh> (raw)
In-Reply-To: <44218198.8090202@elvenkind.com>
On Wed, 22 Mar 2006, Taco Hoekwater wrote:
> WN wrote:
>> Hi,
>>
>> I think I am using the latest context version
>
>> I cannot see any difference in the setup. I must be doing something
>> basically wrong ???
>
> There is a bug, and it is caused by the embedded \startalign
> environment. Minimal file:
>
> \starttext
> \placeformula[eqn1]
> \startformula \startalign[n=1] a\\ \stopalign \stopformula
> See \in[eqn1]
> \stoptext
To WN, quick workaround, use \NR construct rather than \\.
\starttext
\placeformula
\startformula \startalign[n=1]
a \NR[eqn1]
\stopalign \stopformula
\stoptext
>From what I understand, Hans said that this loose label was an ugly method
to refer to equations. Consider
\placeformula[eq1]
\startformula \startalign[n=1]
eqn 1 \NR
eqn 2 \NR
\stopalign \stopformula
What should eq1 refer to? The first equation or the second? The "correct"
way is to specify which one you want to be refered, so
\placeformula
\startformula \startalign[n=1]
eqn 1 \NR[eq1]
eqn 2 \NR
\stopalign \stopformula
And this does work correctly.
Actually, there is another problem. Consider this
\placeformula \startformula \startalign
\NC ... \NC ... \NR
\NC ... \NC ....\NR
\NC ... \NC ... \NR
\stopalign \stopformula
vs
\placeformula \startformula \startalign
\NC ..\NC ... \NR
\NC ..\NC ... \NR[+]
\stopalign \stopformula
The second construct should only number the second equation, and it does
exactly that. The first does not number any equation, which is also the
correct and expected behaviour.
Now suppose that I want to number all equations. I am pretty sure that
this used to work (can't check at the moment, as I have upgraded context)
\placeformula[+] \startformula \startalign
\NC ... \NC ... \NR
\NC ... \NR ... \NR
\stopalign \stopformula
However, this is no longer working? How do I number all the equations in a
multiline formula, without doing a \NR[+] at each line?
Aditya
next prev parent reply other threads:[~2006-03-22 21:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-21 19:42 WN
2006-03-21 23:43 ` Aditya Mahajan
2006-03-22 16:33 ` WN
2006-03-22 16:55 ` Taco Hoekwater
2006-03-22 21:57 ` Aditya Mahajan [this message]
2006-03-23 5:43 ` Guide on align (was Help : Unknown references) Aditya Mahajan
2006-03-24 16:54 ` WN
2006-03-24 18:06 ` Aditya Mahajan
2006-03-24 20:45 ` Taco Hoekwater
2006-03-24 21:40 ` Aditya Mahajan
2006-03-27 8:37 ` Taco Hoekwater
2006-03-24 21:41 ` Hans Hagen
2006-03-27 14:24 ` Hans Hagen
2006-03-27 14:40 ` Aditya Mahajan
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=Pine.GSO.4.63.0603221628320.4164@rrpf4327h07.ratva.hzvpu.rqh \
--to=adityam@umich.edu \
--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).