emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* pxref in texinfo export
@ 2013-02-25 17:52 Thomas S. Dye
  2013-02-25 18:32 ` Jonathan Leech-Pepin
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas S. Dye @ 2013-02-25 17:52 UTC (permalink / raw)
  To: Org-mode

Aloha all,

IIUC, there is currently no support for @pxref{} in the texinfo
exporter.  This is a texinfo @-command that does one thing in the info
output and another in the LaTeX output.  

My idea is to create a custom link type, something like this:

(org-add-link-type
   "pxref" nil
   (lambda (path desc format)
     (cond
      ((eq format 'html)
       (format "<span class=\"pxref\">%s</span>" path))
      ((eq format 'latex)
       (format "\\ref{%s}" path))
      ((eq format 'texinfo)
       (format "@pxref{%s,%s}" path desc)))))

I haven't tested this, but it should export approximately correctly and
I'm confident I can get the export part working.

What I can't figure out is how to have Org recognize that a link like
this:

[[pxref:Internal link]]

is really an internal link, rather than an external link.  I'd like to
be able to click on this and end up at <<Internal link>> in the Org
buffer. 

Is this possible?  If so, can you point me to a solution?

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

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

end of thread, other threads:[~2013-02-25 22:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-25 17:52 pxref in texinfo export Thomas S. Dye
2013-02-25 18:32 ` Jonathan Leech-Pepin
2013-02-25 18:40   ` Subhan Tindall
2013-02-25 18:48     ` Jonathan Leech-Pepin
2013-02-25 19:01       ` Subhan Tindall
2013-02-25 20:24         ` Jonathan Leech-Pepin
2013-02-25 20:29           ` Jonathan Leech-Pepin
2013-02-25 21:34             ` Subhan Tindall
2013-02-25 22:01               ` Jonathan Leech-Pepin
2013-02-25 21:38           ` Nicolas Goaziou
2013-02-25 21:48             ` Subhan Tindall
2013-02-25 22:06               ` Jonathan Leech-Pepin
2013-02-25 22:23                 ` Nicolas Goaziou

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).