This is similar to Org export to latex and HTML references, but for equations.
I like to use LaTeX math snippets in my org-files, as in
* The Quadratic Equation
The roots of $ax^2 + bx + c$ are given by
\begin{equation}
\label{eq:1}
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}
\end{equation}
According to Equation \ref{eq:1}, ...
When I export to LaTeX, the \ref{eq:1}
correctly turns into a hyper link to the equation. But I want to achieve the following additional behavior:
Inside the org file, I can click the text
\ref{eq:1}
(the text doesn't have to be\ref{eq:1}
, I just want a hyperlink) and be taken to to the equation. This functionality is present for headers, as in[[The Quadratic Equation]]
becomes clickable in Org mode.When I export to HTML, I want to the references to be kept (actually, the label (1) doesn't even show up in HTML export).
Is there a way to accomplish this?