Florian Beck <f...@miszellen.de> writes:

> On 11/24/2012 06:05 PM, michael.zom...@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

Reply via email to