[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Link descriptions
From: |
David Maus |
Subject: |
Re: [Orgmode] Link descriptions |
Date: |
Wed, 15 Dec 2010 20:34:17 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
At Tue, 14 Dec 2010 08:09:21 -1000,
Thomas S. Dye wrote:
>
> Aloha all,
>
> After reading through the documentation fairly carefully, link
> descriptions are yielding unexpected results. Perhaps I missed
> something?
>
> I have a link defined for citep:
>
> #+source: define-citep-link
> #+begin_src emacs-lisp
> (org-add-link-type
> "citep" 'ebib
> (lambda (path desc format)
> (cond
> ((eq format 'latex)
> (format "\\citep[%s]{%s}" desc path)))))
> #+end_src
>
> With input like [[citep:jones][Jones]], it works fine, yielding
> \citep[Jones]{jones}.
>
> My hope, however, is to pass page numbers in the description so with
> [[citep:jones][123]] I get \citep[123]{jones}. When I have a
> description like this, I get [[citep:jones]$^{123}$] instead.
>
> This looks like a bug to me (at least I wish it would work to pass
> page numbers to the \citep command). Have I overlooked a restriction
> on link descriptions?
This is a bug, but not related to links: The LaTeX exporter turns a
sequence like:
][\d+]
into
]$^{\d+}$
Where \d+ is a placeholder for one or more numbers.
The question I cannot answer (yet?) is: Why?
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgp7b9PC4reD2.pgp
Description: PGP signature