emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Howto convert a complete bibtex file into an orgmode file?


From: Eric Schulte
Subject: Re: [O] Howto convert a complete bibtex file into an orgmode file?
Date: Wed, 26 Dec 2012 08:43:26 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Florian Beck <address@hidden> writes:

> On 11/24/2012 06:05 PM, address@hidden 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 "address@hidden" 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

[Prev in Thread] Current Thread [Next in Thread]