BibTeX, biblatex and biberConvert Bibliography Item to BibTeX Format

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
User avatar
CDbile
Posts: 19
Joined: Mon Jan 31, 2011 6:48 pm

Convert Bibliography Item to BibTeX Format

Post by CDbile »

Hello all,

I'd like to know if there is some tool (script/program/package/whatever) to convert a raw bibliography in LaTeX (with \bibitem entries) to a more usable BibTeX format?
CDbile

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Convert Bibliography Item to BibTeX Format

Post by kaiserkarl13 »

That's actually a pretty difficult thing to tell a computer how to do---it's essentially a BibTeX decompiler (or de-interpreter, as it were). Here's why: Let's say I have an entry like this:
2. Smith, H. Francis. The Worst Ever. J. Stupid Sayings 36 (1-2): 1-8 (2013).
This could, to a computer, be interpreted in the following two ways:

Code: Select all

  author = "Smith, H. Francis",
  title = "The Worst Ever",
  journal = "J. Stupid Sayings",
  volume = 36,
  number = "1--2",
  pages = "1--8",
  year = 2013
OR

Code: Select all

  author = "Smith, H.",
  title = "Francis",
  journal = "The Worst Ever. J. Stupid Sayings",
  volume = 36,
  number = "1--2",
  pages = "1--8",
  year = 2013
Also, the translation depends on your bibliography style, and there are hundreds of different styles if you only include the ones that don't include information you're not expecting.

You are well-advised to edit them manually. I know it takes a long time, but you're going to have to edit them anyway to make sure the computer didn't do something like the above, so you won't lose that much time. For a very simple bibliography (e.g., a properly formatted bibliography with consistent information presented about every entry and all entries of the same type, such as article), you might be able to write a script to do most of the work for you. However, even the "automatic" export programs such as those found on Web of Science do a pretty mediocre job of exporting BibTeX entries---the journal names are often in all caps, for example, forcing you to edit them and change the case.
Post Reply