From: Matt Lundin <mdl@imapmail.org>
To: "Alan E. Davis" <lngndvs@gmail.com>
Cc: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>, emacs-orgmode@gnu.org
Subject: Re: zotero (or mendeley) integration with org
Date: Sat, 02 Apr 2011 09:19:23 -0400 [thread overview]
Message-ID: <87y63s7pus.fsf@fastmail.fm> (raw)
In-Reply-To: <AANLkTi=9VPkkAsM-7vYVBqvGfrE6x4zgBeVNH7SOyBwY@mail.gmail.com> (Alan E. Davis's message of "Sat, 2 Apr 2011 11:40:56 +1000")
"Alan E. Davis" <lngndvs@gmail.com> writes:
> Is it possible to use org babel to extract bibtex entries from file of
> notes to a *.bib file?
>
Yes, you can use babel's tangling facilities to extract bibtex entries
enclosed in source blocks.
#+begin_src bibtex :tangle history.bib
@InCollection{levi2001_microhistory,
author = {Levi, Giovanni},
title = {On Microhistory},
editor = {Peter Burke},
booktitle = {New Perspectives on Historical Writing},
address = {University Park, PA},
publisher = {Penn State Press},
year = 2001,
}
#+end_src
Calling org-babel-tangle-file will put this entry in the file
history.bib.
> The stumbling point for me in saving bibtex sources is I don't see a
> way to use the file as a bibtex *.bib file so as to use that as the
> direct source for the publication. Perhaps this could be automated
> with babel?
There are a few other routes.
1. Bibtex discards anything outside of an entry so you could symlink
your org file to something with a bib extension (e.g., notes.org ->
notes.bib) and simply point latex/bibtex to that file.
2. You could instruct emacs to edit bib files with orgmode and use babel
and source blocks to enter items
(add-to-list 'auto-mode-alist
'("\\.\\(org\\|bib\\)$" . org-mode))
3. AFAICT, reftex is blissfully indifferent to non-bibtex data, so you
could use reftex to query your org files for citation keys. Then, you
could use reftex to generate a proper bib file with all entries cited
in your paper.
Best,
Matt
next prev parent reply other threads:[~2011-04-02 13:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-26 15:47 zotero (or mendeley) integration with org Stephen Eglen
2011-03-26 21:04 ` Cian
2011-03-26 21:06 ` Ramon Diaz-Uriarte
2011-03-28 9:14 ` Stephen Eglen
2011-03-28 14:07 ` brian powell
2011-03-28 17:06 ` Erik Hetzner
2011-03-29 3:32 ` Matt Lundin
2011-03-29 7:21 ` William Gardella
2011-03-29 10:55 ` Rasmus
2011-03-29 11:42 ` William Gardella
2011-03-29 13:14 ` Matt Lundin
2011-03-31 11:39 ` Stephen Eglen
2011-03-31 20:13 ` Matt Lundin
2011-04-02 1:40 ` Alan E. Davis
2011-04-02 13:19 ` Matt Lundin [this message]
2011-04-02 13:37 ` Eric S Fraga
2011-04-02 14:13 ` Alan E. Davis
2011-03-30 0:54 ` Alan E. Davis
2011-03-30 8:26 ` Cian
2011-03-30 14:34 ` Joost Kremers
-- strict thread matches above, loose matches on Subject: below --
2011-03-27 3:12 Rustom Mody
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y63s7pus.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=S.J.Eglen@damtp.cam.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=lngndvs@gmail.com \
/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 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).