[Tex/LaTex] Converting to bibitem in LaTeX

bibliographiesbibtex

For a conference I have to put the references in \bibitem format. After, Googling I came up with this solution by Web page:

Create a refs.bib file with all the BibTeX entries, which are easily available from Google Scholar or similar

Create a “dummy” .tex file with the following entries:

\documentclass{article}
\begin{document}
\nocite{*}
\bibliography{refs}
\bibliographystyle{plain}
\end{document}

Now, do the following:

$ latex dummy
$ bibtex dummy
$ bibtex dummy
$ latex dummy

You will see a dummy.bbl file containing all your BibTeX entries in \bibitem format.

but, the expected results was not observed for me. Any other solution or the problem with the mentioned process.

Best Answer

I agree whith the general process explained in the comments, but i think that they don't fully address the final task that you must do you for the conference, which very likely want a single self contained .tex file.

Let's assume that you have mypaper.tex which is your text with some \cite{<key>} and a refs.bib file. Then :

  1. Firstly, put in mypaper.tex the two lines :

    \bibliography{refs} \bibliographystyle{plain}

  2. Secondly run (instead of using the \nocite which has two drawbacks: (1) ordering as in refs.bib and (2) cites refs. that are not \cite-d in your paper) :

    (pdf)latex mypaper bibtex mypaper

    If this step is successful you will get mypaper.bbl containing the bibitem-s and a mypaper.blg which is BiBTeX's log file. (Nota : latex reads the mypaper.tex -- and when present the mypaper.bbl file -- but bibtex reads the mypaper.aux created by latex).

  3. Thirdly, (optional but recommended) make sure that all the reference are correctly inserted and displayed in the file with :

    (pdf)latex mypaper

  4. Fourthly, open mypaper.tex, comment out or discard the two \biblio... lines and paste the whole content of mypaper.bbl at the place where you want to get the bibliography. You then have the final self-contained file.

    You can run (pdf)latex mypaper at least two times to get the final .dvi or .pdf.

Edit: This copy-paste holds if he .bbl file content start with the regular \begin{thebibliography}. If it starts by loading packages with \usepackage{<name>} or even by \input{<name>.sty} (where <name>= csquote, url, etc.) you must move them in your preamble. If it starts by defining commands, your can keep them at this place or move them to the preamble.

Note for the OP: you use plain as the format, which looks strange for me. Actually each conference/organization generally has its own .bst style file which produces \bibitem formated accordingly to their editorial rules. More specifically, make sure that you need an alphabetical-ordered or a citation-ordered bibliography. In the later case, you must use the unsrt.bst (or a variant) in place of plain.bst.

Related Question