The bibfile parser should simply skip any parts it does not understand, like for instance @preamble. I changed it to just skip to the next @ if it gets stuck at some point. Changed: U trunk/Support/lib/LaTeXUtils.rb