In the org-mode example below, I would like to be able to specify the label name to be used by the latex export back-end. Is there such a way?
I have two reasons:
To be able to mix org-style references [[fig:label]] and latex-style references \ref{fig:label} in the same document. This is not necessary (in fact, probably bad practice) if I have everything in the org document. However, sometimes I \input{} an external latex block with a \ref{} somewhere, so I need to control the named reference.
Whenever I export my document, I will get a different latex label (here: orgee8497f). This will have my git back-end think that the document has changed, when in fact it hasn't.
Org source:
This is some text. Here I can refer to Figure [[fig:label]]. However,
if I try to refer to \ref{fig:label}, I get an undefined reference.
#+CAPTION: This is a caption to the figure.
#+NAME: fig:label
\begin{figure}
figure stuff goes here
\end{figure}
Latex export:
This is some text. Here I can refer to Figure \ref{orgee8497f}. However,
if I try to refer to \ref{fig:label}, I get an undefined reference.
\begin{figure}
figure stuff goes here
\caption{\label{orgee8497f}
This is a caption to the figure.}
\end{figure}