From: Richard Lawrence <richard.lawrence@berkeley.edu>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: Ilya <filip83pov@yandex.ru>, emacs-orgmode@gnu.org
Subject: Re: LaTeX export with section number, name and page in internal links
Date: Wed, 09 Dec 2015 09:47:48 -0800 [thread overview]
Message-ID: <87fuzbtsxn.fsf@berkeley.edu> (raw)
In-Reply-To: <m2mvtkiszp.fsf@andrew.cmu.edu>
John Kitchin <jkitchin@andrew.cmu.edu> 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
next prev parent reply other threads:[~2015-12-09 17:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 11:08 LaTeX export with section number, name and page in internal links Ilya
2015-12-03 11:31 ` John Kitchin
2015-12-03 13:30 ` Ilya Filippov
2015-12-08 14:19 ` Ken Mankoff
2015-12-03 14:27 ` Fwd: " Ilya Filippov
2015-12-08 16:48 ` Richard Lawrence
2015-12-08 20:29 ` John Kitchin
2015-12-09 17:47 ` Richard Lawrence [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-12-03 5:36 Ilya Filippov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuzbtsxn.fsf@berkeley.edu \
--to=richard.lawrence@berkeley.edu \
--cc=emacs-orgmode@gnu.org \
--cc=filip83pov@yandex.ru \
--cc=jkitchin@andrew.cmu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.