[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] LaTeX export with section number, name and page in internal link
From: |
Richard Lawrence |
Subject: |
Re: [O] LaTeX export with section number, name and page in internal links |
Date: |
Wed, 09 Dec 2015 09:47:48 -0800 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) |
John Kitchin <address@hidden> writes:
>> I do something like this with custom link types.
> Aha! I am not the only one ;)
>
>>
>> First of all, have a look at the variable
>>
>> org-latex-prefer-user-labels
>
> Is this a new 8.3 variable? It doesn't seem to be in my 8.2.10 MELPA
> version.
Yes, I believe it is new in 8.3, although it originated in a patch I
wrote quite a while ago (February 2014?) when I needed this behavior.
> I like your idea. I think you could simplify it to just:
>
> (org-add-link-type
> "sec"
> (lambda (path)
> (org-open-link-from-string (format "[[#%s]]" path)))
> ...
Ah, nice, that is way simpler. Thanks!
Best,
Richard