RefTeX doesn't support Org #+LABEL:
syntax by default, but can it be customized to do so? For example, if I have #+LABEL: foo
, I'd like to be able to insert a reference to that label using RefTeX.
I've been browsing the customize options, and it appears like it may be possible to set some preferences and gain better Org support. I've played around with the following:
(setq reftex-try-all-extensions)
(setq reftex-file-extensions
'(("org" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
(setq TeX-file-extensions
'( "org" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
And then found
(setq reftex-label-regexps
'("\\\\label{\\(?1:[^}]*\\)}"
"\\[[^]]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?"))
To which I tried adding the regexp:
"\\\#\\\+LABEL:\\(?1:*\\)"
But have had no success. It seems like reftex-label-alist
may also be needed.