From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Link descriptions Date: Tue, 14 Dec 2010 08:09:21 -1000 Message-ID: <25BB08A1-CC74-44F6-A939-A57F54B2685B@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSZL2-0000x7-BW for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 13:11:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSZL1-0004Q3-5M for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 13:11:00 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:48274) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PSZL0-0004Os-U2 for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 13:10:59 -0500 Received: from [72.253.144.27] (helo=potofo-ou.westell.com) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1PSZJT-0006f7-IC for emacs-orgmode@gnu.org; Tue, 14 Dec 2010 11:09:23 -0700 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: emacs-orgmode ml 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? All the best, Tom