Cross reference equations

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cross reference equations

MattPalermo
Is it possible to cross reference equations? I've tried the following with no luck. Also, I can't seem to get the :eqnums: option to make any difference. Here is what I've tried:

= Test eqn cross-ref
:stem: latexmath
:eqnums:

== Let's try

.My equation
[#my-eqn]
[stem]
++++
c^2 = a^2 + b^2 + 5
++++

I refer back to <<my-eqn>>.
Reply | Threaded
Open this post in threaded view
|

Re: Cross reference equations

MattPalermo
After reading the MathJax documentation a second time, I figured out how to use MathJax to achieve the cross referencing and equation numbering:

= Test eqn cross-ref
:stem: latexmath
:eqnums:

== Let's try

\begin{equation}\label{myequation}
c^2 = a^2 + b^2 + 5
\end{equation}

I refer back to \eqref{myequation}.

This will work well for what I need at the moment.
Reply | Threaded
Open this post in threaded view
|

Re: Cross reference equations

MattPalermo
Whoops, it seems that a passthrough block is still necessary:

= Test eqn cross-ref
:stem: latexmath
:eqnums:

== Let's try

[stem]
++++
\begin{equation}\label{myequation}
c^2 = a^2 + b^2 + 5
\end{equation}
++++

I refer back to \eqref{myequation}.

the
[stem]
 label seems optional but I'll include it just in case.
Reply | Threaded
Open this post in threaded view
|

Re: Cross reference equations

YuVV
How did you manage to reference your equation?
I can create numbering with
\begin{equation}\label{myequation}
\end{equation}
syntax, but referencing does not work with \eqref{myequation}