* exporting org to org with link transforms?
@ 2014-08-14 0:34 John Kitchin
0 siblings, 0 replies; only message in thread
From: John Kitchin @ 2014-08-14 0:34 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-14 0:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 0:34 exporting org to org with link transforms? John Kitchin
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.