From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Howto convert a complete bibtex file into an orgmode file? Date: Wed, 26 Dec 2012 08:43:26 -0700 Message-ID: <87zk10iztt.fsf@gmail.com> References: <50D8D2D7.1060807@miszellen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tnt8p-00018w-QQ for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 10:43:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tnt8o-00078l-G9 for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 10:43:35 -0500 Received: from mail-vc0-f171.google.com ([209.85.220.171]:42598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tnt8o-00078g-B4 for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 10:43:34 -0500 Received: by mail-vc0-f171.google.com with SMTP id n11so8842942vch.16 for ; Wed, 26 Dec 2012 07:43:33 -0800 (PST) In-Reply-To: <50D8D2D7.1060807@miszellen.de> (Florian Beck's message of "Mon, 24 Dec 2012 23:10:31 +0100") 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: Florian Beck Cc: emacs-orgmode@gnu.org Florian Beck 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