[Tex/LaTex] Convert .bbl file to .bib file

bibtex

How can I convert a .bbl file to a .bib file. I lost my .bib file but I still have my .bbl file. Now , I need to add more references to my .bbl file according to a specific format which I need to produce using Bibtex, so how can I convert my .bbl file to a .bib file so I can add the new references according to the format.

Thanks for any insight.

Best Answer

I don't see how you're going to get around a lot of hand-editing to recreate a .bib file from the .bbl file. A lot of essential meta information is embedded in bib files that's not contained in bbl files:

  • For each and every entry, somebody competent has to decide the appropriate entry type: @article, @book, something else?

  • You'll have to assign a key to each entry. If you have the full bbl file, the keys (aka labels) of the entries should be available as the argument to each \bibitem. If you still have the tex file, you could (should, really) use the arguments of the \cite commands to come up with the keys.

  • Within each author field, replace , between authors (but not between surnames and first names...) with the reserved word and. Replace any and all & symbols between authors with and. Or, if the author is a "corporate" author, surround the entire name with an extra set of curly braces.

  • Within each title field (for entries of type @article, @techreport, @unpublished, and @misc), find the words that need to stay capitalized even if so-called sentence style is in effect; surround these words with curly braces.

  • Any remaining & symbols (probably in the entries' titles) will need to be escaped, i.e., written as \&.

  • Etc.

The ordering of the entries inside a bib file is of no relevance to BibTeX. Well, crossref-ed entries should be placed last, but you're not likely to construct entries with crossref fields, right?