Saturday, December 5, 2009

Convert bibtex entries to \bibitem in Latex

Some journals such as the Royal Society refuse to process .bib files for latex submissions. Seriously guys...get in the game! Instead they require the use of a bibliography command like

\expandafter\ifx\csname urlstyle\endcsname\relax

Anderson, J. 2001 History of high-speed flight and its technical development.
\newblock \emph{AIAA J.}, \textbf{39}(5), 761--771.

Anderson, J. 2003 \emph{Modern compressible flow: with historical perspective}.
\newblock McGraw-Hill.

Stodola, A. 1905 \emph{Steam turbines}.
\newblock D. Van Nostrand.


where all the bibliography entries are listed as \bibitems. Fortunately I found a way to convert all your entries in the .bib file to \bibitems from here.

It says
1) Generate your bibliography with regular bibtex commands first (run latex, bibtex, latex)
2) Open up the new .bbl file
3) Ctrl-A to select all, Ctrl-C to copy
4) Paste over the \bibliography{} command
5) rerun Latex!

Bibtex makes all the \bibitems automatically, but behind the scenes.


Kevin said...

you are a GOD! Thank you so much!

Josh said...

Haha! I'm happy to help. I didn't expect that post to be all that useful for anyone but me. I'm glad I posted it now!

Amit Saha said...

hello josh! saved my night :) Thanks!

Niloy said...

This was very very helpful! Thanks!

alex said...

hi josh, thank you very much. You save my holliday.

SD said...

and How we can go backward ? I mean how to generate .bib file from the list of \bibitem

SD said...

How to conver \bibitem refernces to .bib file ?

Dave said...

You are, in fact, a god. Thanks very much!

Mahmoud Lababidi said...

no really, this is very helpful.
thank you.

ruggero taddei said...

I love you, you saved me a looooot of time :)

Alex said...

Perfect tip ! I was so pissed to think I had used a .bib manual-entry editor for nothing ...

Alex said...

Perfect tip ! I was so pissed to think I had used a .bib manual-entry editor for nothing ...

Rahgozar said...

You saved me a whole day... Thanks :)

Musoro said...

Ok, this was very helpful. Thank you!

407e91c0-246c-11e4-be56-c7f6881a19e6 said...

Awesome!!! But you are indeed right! Those journals should accept bibtex right away.