From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Link descriptions Date: Wed, 15 Dec 2010 20:34:17 +0100 Message-ID: <87ipyu6dae.wl%dmaus@ictsoc.de> References: <25BB08A1-CC74-44F6-A939-A57F54B2685B@tsdye.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1899115465==" Return-path: Received: from [140.186.70.92] (port=58976 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSx7Y-0001Rb-MW for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 14:34:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSx7X-0000YJ-Fe for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 14:34:40 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:60072 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSx7X-0000Xv-Ap for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 14:34:39 -0500 In-Reply-To: <25BB08A1-CC74-44F6-A939-A57F54B2685B@tsdye.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode ml --===============1899115465== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Wed_Dec_15_20:34:17_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Wed_Dec_15_20:34:17_2010-1 Content-Type: text/plain; charset=US-ASCII 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.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Wed_Dec_15_20:34:17_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk0JGDkACgkQma24O1pEeOYZZgEAmHIj3Cx0k+7S9jfKp3M89IR0 bUpg/pI2ywsY3suyAgwA/2/ZpWl88vYm3sbf2wYRucPJdn0mvUENRdP8XRD21aYO =vigI -----END PGP SIGNATURE----- --pgp-sign-Multipart_Wed_Dec_15_20:34:17_2010-1-- --===============1899115465== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1899115465==--