0

I am using org mode to write documents with math, and then exporting to latex. Consider an unnumbered align environment with two equations:

\begin{align*}
x = 1\\
y = 2
\end{align*}

Now, number the second equation using, for example, \addtocounter{equation}{1}\tag{\theequation}}, and then label it:

\begin{align*}
x = 1\\
y = 2 \addtocounter{equation}{1}\tag{\theequation}} \label{ref_me}
\end{align*}

Question: How can I link to ref_me in org mode so that:

  1. Exporting to latex works
  2. The link is clickable within org mode (just like with a [[]] reference)

In other words: how to reference an equation within the align environment so that it works when exported to latex, and so that anyone viewing the org file can click on the link and be taken to the equation.

Thanks for your help and for your time! :D

1 Answer 1

1

org-ref (https://github.com/jkitchin/org-ref) can make a link for this, e.g. ref:ref_me.

1
  • Hey John, thanks for the suggestion. That looks like a good solution, although I was hoping there would be something more simple that could solve this. Commented Jun 8, 2018 at 11:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.