From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: exporting org to org with link transforms? Date: Wed, 13 Aug 2014 20:34:20 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHj05-0003Gz-L0 for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 20:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHizz-0006qV-J0 for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 20:34:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:57401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHizz-0006pu-D0 for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 20:34:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XHizw-0001og-Du for emacs-orgmode@gnu.org; Thu, 14 Aug 2014 02:34:32 +0200 Received: from c-24-3-17-30.hsd1.pa.comcast.net ([24.3.17.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Aug 2014 02:34:32 +0200 Received: from jkitchin by c-24-3-17-30.hsd1.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Aug 2014 02:34:32 +0200 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: emacs-orgmode@gnu.org I was playing around with an idea for inserting bibliographies into an exported org file. I thought I could specify a format for the 'org backend that would convert the links like this: cite:some-key -> [[#some-key]] bibliography:test.bib -> * Bibliography ** authors - title :PROPERTIES: :CUSTOM_ID: some-key :END: so, for example the formatting part of the bibliography link looks like: (lambda (keyword desc format) (cond ((eq format 'org) (org-ref-get-org-bibliography)) ((eq format 'ascii) (org-ref-get-ascii-bibliography)) ((eq format 'html) (org-ref-get-html-bibliography)) ((eq format 'latex) ;; write out the latex bibliography command (format "\\bibliography{%s}" (replace-regexp-in-string "\\.bib" "" keyword))))) where (org-ref-get-org-bibliography) returns a string that I want. What I get right now is no change in the links at all in an org-export buffer for org or ascii. The html and latex work fine. Should the org and ascii export work like I expect? Thanks, -- ----------------------------------- John Kitchin http://kitchingroup.cheme.cmu.edu