From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: Re: Link descriptions Date: Thu, 16 Dec 2010 16:18:05 +1100 Message-ID: <20101216161805.52882264.alantyree@gmail.com> References: <25BB08A1-CC74-44F6-A939-A57F54B2685B@tsdye.com> <87ipyu6dae.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PT6EG-00035G-QO for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 00:18:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PT6EF-00020y-BC for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 00:18:12 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:49085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PT6EF-00020j-7o for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 00:18:11 -0500 Received: by iyj17 with SMTP id 17so1446112iyj.0 for ; Wed, 15 Dec 2010 21:18:10 -0800 (PST) In-Reply-To: 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@gnu.org On Wed, 15 Dec 2010 17:33:38 -1000 Thomas S.Dye wrote: > > On Dec 15, 2010, at 9:34 AM, David Maus wrote: > > > 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 > > Perhaps it has to do with footnotes? That's an org-mode environment > with square brackets and, in some instances, a superscript > number. Whether or not to set the footnote number superscript or some > other way would ideally be handled by the LaTeX class, so shouldn't > be something the org-mode LaTeX exporter worries about. > > In my LaTeX experience, directly set superscripts outside of math > are found in area measurements, e.g. 10~m$^[2}$, but not much else. > > These musings are my way of saying that I can't think of a reason ] > [\d +] should set a superscript in the LaTeX export. Sometime back I had a problem with [2010] type references. Jan Bocker made a disable-plain-footnotes-hack function that put a non-printing space between the [ and the 2. Will the same trick work here? Cheers, Alan > > All the best, > Tom > All the best, > Tom > > _______________________________________________ > 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 > -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206