I would like to be able to link specific figures from other documents. Basically the function of the xr
package in LaTeX where it doesn't necessarily give you an actual link that will take you outside of the document but just takes care of printing the correct figure label automatically.
For example I have my main manuscript.org
and a supplemental_info.org
and I reference the figures in supplemental_info.org
in the manuscript.org
. I define all of them like:
#+NAME: fig:my-fig
[[./figures/figure.pdf]]
I tried referencing them using [[file:supplemental_info.org::fig:my-fig]]
which didn't work.
I also can't use the xr
package directly (i.e. \ref{fig:my-fig}
) because org-mode mangles the labels when it exports!
So is there a way to do this prescribed by org-mode?
Alternatively, is there a way to force org-mode to export the #+NAME:
values as the label values?