* linking to equations with leqalignno?
@ 2010-09-04 21:06 Pau
2010-09-04 21:29 ` Otared Kavian
0 siblings, 1 reply; 3+ messages in thread
From: Pau @ 2010-09-04 21:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linking to equations with leqalignno?
2010-09-04 21:06 linking to equations with leqalignno? Pau
@ 2010-09-04 21:29 ` Otared Kavian
2010-09-05 14:37 ` Yury G. Kudryashov
0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2010-09-04 21:29 UTC (permalink / raw)
To: vim.unix, mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linking to equations with leqalignno?
2010-09-04 21:29 ` Otared Kavian
@ 2010-09-05 14:37 ` Yury G. Kudryashov
0 siblings, 0 replies; 3+ messages in thread
From: Yury G. Kudryashov @ 2010-09-05 14:37 UTC (permalink / raw)
To: ntg-context
Otared Kavian wrote:
> Hi Pau,
>
> \define[1]\eqref{(\in[#1])} % this definition is optional…
\definereferenceformat[ineq][left=(,right=)]
> It is more handy to use \type{\eqref}: as one sees in equation
\ineq[nohair]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-05 14:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-04 21:06 linking to equations with leqalignno? Pau
2010-09-04 21:29 ` Otared Kavian
2010-09-05 14:37 ` Yury G. Kudryashov
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).