From: Eric Schulte <schulte.eric@gmail.com>
To: Florian Beck <fb@miszellen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Howto convert a complete bibtex file into an orgmode file?
Date: Wed, 26 Dec 2012 08:43:26 -0700 [thread overview]
Message-ID: <87zk10iztt.fsf@gmail.com> (raw)
In-Reply-To: <50D8D2D7.1060807@miszellen.de> (Florian Beck's message of "Mon, 24 Dec 2012 23:10:31 +0100")
Florian Beck <fb@miszellen.de> writes:
> On 11/24/2012 06:05 PM, michael.zombok@googlemail.com wrote:
>
>> As far as I was able to find out, this is only possible for a single
>> entry via 'org-bibtex-read'.
>
> I think I did something like
>
> M-: (while (re-search-forward "^@.*{" nil t) (org-bibtex-read))
>
> Refine the regular expression, if you have any macros.
>
>
I just added three functions to org-bibtex.el which should help in these
use cases. Form the git log,
import whole bibtex files into Org-mode
* lisp/org-bibtex.el (org-bibtex-read-buffer): Reads all bibtex entries
in a buffer.
(org-bibtex-read-file): Read all bibtex entries in a file.
(org-bibtex-import-from-file): Import all bibtex entries from a file
into the current buffer.
The `org-bibtex-import-from-file' function should be the easiest way to
import whole bibtex files into the current Org-mode file. Be forewarned
that it may create many top level bibtex entries.
Hope this helps,
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2012-12-26 15:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-24 17:05 Howto convert a complete bibtex file into an orgmode file? michael.zombok
2012-12-23 17:58 ` Bastien
2012-12-24 22:10 ` Florian Beck
2012-12-26 15:43 ` Eric Schulte [this message]
2012-12-28 8:56 ` Bastien
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=87zk10iztt.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=fb@miszellen.de \
/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).