1

For referencing in my LaTeX documents, I use the thebibliography command. However most of the times I find the information of my citations in BibTeX format. Manually editing BibTeX file to convert them to \bibitem is exhausting. I want to know if there is any method for importing a bibTeX file or a command which could understand the text structure of a BibTeX file in LaTeX?

7
  • 3
    This question is answered in nearly every introduction. One example is here: en.wikibooks.org/wiki/LaTeX/Bibliography_Management -- You should use biblatex to manage your bibliography on LaTeX site. Apr 21, 2013 at 12:59
  • @MarcoDaniel Thank you. But here the only method is to import your .bib file. Is there anyway to do it in the same file without importing anything. To make the tex file process the material of a .bib file by copying it into TeX file.
    – Naji
    Apr 21, 2013 at 13:04
  • Why do you want to avoid biblatex or BibTex? After compiling with bibtex you have file with the extension bbl. This file contains the environment thebibliography. Apr 21, 2013 at 13:07
  • 2
    In my opinion it isn't a good way to provide only one single file. Structuring a document has a lot of benefits: Techniques and packages to keep up with good practices -- Nevertheless you can use the package filecontents. So you can have the contents of your bib-file in your single file and you can edit the entries. Apr 21, 2013 at 13:15
  • 1
    That's correct. But providing a database of bib-entries will help you later. And you can manipulate string global. Apr 21, 2013 at 13:32

1 Answer 1

6

If you really want to follow this way, you can create a new document, let's say test.tex with the following contents:

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

where biblio is the name of your .bib file.

Then run

pdflatex test

bibtex test

pdflatex test

pdflatex test

At this point, open the file test.bbl and copy its contents to your original .tex file

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .