MiKTeX and proTeXtadding bibliography

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

adding bibliography

Post by me_here_me »

Hi
I am trying to add bibliography to my file and its giving an error. following is the related source:

Code: Select all

\bibliographystyle{plain}
\nocite{*}
\bibliography{VC}
and VC file is:

Code: Select all

\begin{thebibliography}{99}
.. some references
\end{thebibliography}
I am getting an error complaining about a missing \item and referring to "\end{thebibliography}"

whats wrong or missing in the above code?

regards

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

adding bibliography

Post by gmedina »

You are mixing the two standard ways used to create bibliographies. When you use

Code: Select all

\bibliographystyle{plain}
\nocite{*}
\bibliography{VC}
LaTeX (BIBTeX) is expecting your bibliographical items to be in a .bib database. But your VC file is something different; it has the form of a manually created bibliography. So, two possibilities:
1) If your bibliography is in the file VC (with extension .tex), use \include{VC} in your main .tex file and suppress the lines

Code: Select all

\bibliographystyle{plain}
\bibliography{VC}
However, you loose the possibility to use all the power of BIBTeX to, for example, easily change the style of your bibliography.
2) Modify your VC file to convert it to a proper .bib file and then use in your main .tex document

Code: Select all

\nocite{*}
\bibliographystyle{plain}
\bibliography{VC}
Now you must process your document in the following way:
(pdf)latex document.tex
bibtex document
(pdf)latex document.tex
(pdf)latex document.tex
Here you can find information about BIBTeX and examples of .bib databases.

Edit: I think this thread belongs to LaTeX->General since it's about a problem not directly related to MiKTeX
1,1,2,3,5,8,13,21,34,55,89,144,233,...
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

Re: adding bibliography

Post by me_here_me »

thanks for the help :)
Post Reply