From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: pxref in texinfo export Date: Mon, 25 Feb 2013 07:52:50 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA2Ez-0008VO-6p for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 12:53:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA2Eu-0007dM-IM for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 12:53:29 -0500 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:43759) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UA2Eu-0007bb-7B for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 12:53:24 -0500 Received: from [98.155.255.145] (port=63855 helo=poto.local) by box472.bluehost.com with esmtpsa (TLSv1:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1UA2EU-00080W-20 for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 10:52:59 -0700 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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 "%s" 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 <> 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