ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: vim.unix@gmail.com, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: linking to equations with leqalignno?
Date: Sat, 4 Sep 2010 23:29:11 +0200	[thread overview]
Message-ID: <CC177907-5C04-4137-9DEF-17EA0F4E11BA@gmail.com> (raw)
In-Reply-To: <AANLkTi=4EMBZ9d2hMq4Lr-YmE5gR5V-Z_KWzZaY8i3GA@mail.gmail.com>

Hi Pau,

You should not use \leqaligno, but rather setup the location of the formulas' numbers to the left and then use \eqalign: the following works fine:

%%-------------
\setupformulas[location=left]

\define[1]\eqref{(\in[#1])} % this definition is optional…

\starttext

\placeformula[nohair]
\startformula
\eqalign{
- M^{}_{\bullet}a^{2}_{\bullet} = & M^{}_{2} = -
\frac{J^{2}_{1}}{M^{}_{0}} \,, \cr
- M^{}_{\bullet}a^{3}_{\bullet} = & J^{}_{3} =
\frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr
          }
\stopformula
As one may see from equation (\in[nohair]), we have\dots

It is more handy to use \type{\eqref}: as one sees in equation \eqref{nohair}, we have\dots
\stoptext
%%-------------
Consider also using the ConTeXt math alignment commands for which Aditya has written a very nice My Way:
http://dl.contextgarden.net/myway/mathalign.pdf

See also:
http://dl.contextgarden.net/myway/context-latex-math.pdf
Best regards: OK

On 4 sept. 2010, at 23:06, Pau wrote:

> Hello,
> 
> I am a bit lost. I am using this format for an equation:
> 
> -----------------------------------------------------------------
> \placeformula[nohair]
> \startformula
> \leqalignno{
> - M^{}_{\bullet}a^{2}_{\bullet} = & M^{}_{2} = -
> \frac{J^{2}_{1}}{M^{}_{0}} \,, \cr
> - M^{}_{\bullet}a^{3}_{\bullet} = & J^{}_{3} =
> \frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr
>           }
> \stopformula
> -----------------------------------------------------------------
> 
> but then,using  \in[nohair] to link to the equation in the text of the
> document does not work.
> 
> I get a [??]
> 
> I think this is related to leqalignno, because \in[] works fine without it.
> 
> What should I do in this case?
> 
> thanks,
> 
> Pau


___________________________________________________________________________________
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:[~2010-09-04 21:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-04 21:06 Pau
2010-09-04 21:29 ` Otared Kavian [this message]
2010-09-05 14:37   ` Yury G. Kudryashov

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=CC177907-5C04-4137-9DEF-17EA0F4E11BA@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=vim.unix@gmail.com \
    /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).