emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Link descriptions
@ 2010-12-14 18:09 Thomas S. Dye
  2010-12-15 19:34 ` David Maus
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas S. Dye @ 2010-12-14 18:09 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-19 16:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14 18:09 Link descriptions Thomas S. Dye
2010-12-15 19:34 ` David Maus
2010-12-16  3:33   ` Thomas S. Dye
2010-12-16  5:18     ` Alan L Tyree
2010-12-19 14:00     ` David Maus
2010-12-19 16:18       ` Thomas S. Dye

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).