Possible Duplicate:
Using BibTeX with letter class
My goal is to write a letter using the g-brief package including some references using the \cite{} and the \bibliography{} commands. For this, I've written a .bib file which contains the necessary bibtex entries. After compiling the file with latex file.tex the following error message occurs:
! LaTeX Error: Environment thebibliography undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 \begin{thebibliography}
{}
This is the content of the file:
\documentclass[11pt,ngerman,latin1]{g-brief}
\bibliographystyle{plain}
\begin{document}
\begin{g-brief}
...some text...
\bibliography{bib}{}
\end{g-brief}
\end{document}
I tried to do the following steps without success:
- including the cite package via
\usepackage{cite} - to put the
\bibligraphystyle{}command inside the document (I think this does not work anyways) - to put the
\bibligraphy{}command outside theg-briefenvironment
It would be nice if someone could help with including references in a g-brief.
I tried the scrlttr2 documentclass but without success. The first compilation with pdflatex or latex works fine. The bibtex compilation also works fine. But then, by compiling again using pdflatex or latex I get the same error like in my first post.
So it seems to me that the scrlttr2 documentclass does not help me either. But as g-brief is outdated I will use scrlttr2 in future.
– Jakob Wenzel Oct 24 '12 at 15:49