Suvayu Ali <[email protected]> writes:
> Okay I see it now, in your last email I got a bit confused, but now I
> follow. With your solution I use both label and reference using LaTeX,
> bypassing Org. Of course this leaves me with links not working inside
> Org. I was eventually going to use filters to transform the ref
> commands to the alternate ones from refstyle and varioref to get both
> LaTeX and Org side working as I wanted. Something like this:
>
> <<sec:interesting>>
>
> [[sec:interesting]]
>
> Then transform \ref{sec:interesting} → \secref{sec:interesting} with a
> filter; that way I would have my cake and eat it too! I see your point
> though.
You can do that with a non-nil `org-latex-prefer-user-labels'.
Otherwise, <<sec:interesting>> becomes \label{whatever}, defeating your
filter.
Regards,