[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] using vref in latex export, and normal links in html export
From: |
Alan Schmitt |
Subject: |
Re: [O] using vref in latex export, and normal links in html export |
Date: |
Fri, 11 Mar 2016 16:20:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
On 2016-03-11 16:05, Alan Schmitt <address@hidden> writes:
> On 2016-03-11 15:02, John Kitchin <address@hidden> 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
signature.asc
Description: PGP signature
- [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, Eric S Fraga, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, John Kitchin, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/11
- Re: [O] using vref in latex export, and normal links in html export,
Alan Schmitt <=
- Re: [O] using vref in latex export, and normal links in html export, John Kitchin, 2016/03/12
- Re: [O] using vref in latex export, and normal links in html export, Alan Schmitt, 2016/03/14
Re: [O] using vref in latex export, and normal links in html export, Stefan Nobis, 2016/03/12