From: John Kitchin <jkitchin@andrew.cmu.edu>
To: emacs-orgmode@gnu.org
Subject: exporting org to org with link transforms?
Date: Wed, 13 Aug 2014 20:34:20 -0400 [thread overview]
Message-ID: <m28umrhptf.fsf@andrew.cmu.edu> (raw)
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
reply other threads:[~2014-08-14 0:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28umrhptf.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.