On 2016-03-11 16:05, Alan Schmitt <alan.schm...@polytechnique.org> writes:

> On 2016-03-11 15:02, John Kitchin <jkitc...@andrew.cmu.edu> writes:
>
>> Try:
>>
>> (setq org-latex-prefer-user-labels t)
>>
>> I think this does what you want for org 8.3.4 at least.
>
> Thank you! This is what I was missing.

As a followup question, I read the documentation for `org-add-link-type`
which says "Org mode has a built-in default for exporting links." What
is the name of that function? I would like to change Eric's function to
something like:

#+begin_src elisp
  (org-add-link-type "vref" nil
                     (lambda (path desc format)
                       (cond
                        ((eq format 'latex)
                         (format "\\vref{%s}" path))
                        (t (call org default)))))
#+end_src

I searched through ox.el but could not find that function.

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02

Attachment: signature.asc
Description: PGP signature

Reply via email to