Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

no \bibdata, \citation commands ??

3,090 views
Skip to first unread message

h e hocutt

unread,
May 1, 1996, 3:00:00 AM5/1/96
to

I'm having difficulty getting off the ground with bibtex. I've read
Lamport, the FAQ, Patashnik but haven't found (or have overlooked) what
I need.

I wrote a trivial bibtest.tex file:

\documentclass{report}
\bibliography{bibtest}
\bibliographystyle{plain}
\begin{document}
This is the first citation \ref{cite}.
\end{document}

and a trivial bibtest.bib file:

@book{cite,
author = "H. E. Hocutt",
title = "An exercise in bibtex",
publisher = "Samizdat",
address = "OKC" }

When I run latex, it's just fine except, of course, for the unknown
reference. But when I then run bibtex, I get the two error messages:

I found no \citation commands---while reading file bibtest.aux
I found no \bibdata commands---while reading file bibtest.aux

I haven't spotted any references to \citation or \bibdata commands. Am
I blind? Is there another reference I should check out? Could you
point me in the right direction?

Thanks very much.

Herb Hocutt
hoc...@casady.pvt.k12.ok.us

Boris Veytsman (MatSci)

unread,
May 2, 1996, 3:00:00 AM5/2/96
to h e hocutt


I'm having difficulty getting off the ground with bibtex. I've read
Lamport, the FAQ, Patashnik but haven't found (or have overlooked) what
I need.

I wrote a trivial bibtest.tex file:

\documentclass{report}
\bibliography{bibtest}
\bibliographystyle{plain}
\begin{document}
This is the first citation \ref{cite}.

^^^^^^^^^^^^^^
\end{document}

and a trivial bibtest.bib file:

@book{cite,
author = "H. E. Hocutt",
title = "An exercise in bibtex",
publisher = "Samizdat",
address = "OKC" }


Your error is in the underlined command. It should be \cite{cite}.
\ref{} is used in LaTeX ref-label mechanism; bibliography entries
are references through \cite.

By the way, an interesting distinction, rarely mentioned. If you reference
several equations, you must write \ref{equationA}, \ref{equationB}. However,
\cite allows multiple arguments: \cite{book1,book2,article3} is quite legal.
--
Good luck

-Boris

<a href="http://planck.psu.edu/~boris">Home page</a>

Eyal Doron

unread,
May 2, 1996, 3:00:00 AM5/2/96
to

h e hocutt (hoc...@casady.pvt.k12.ok.us) wrote:
: I'm having difficulty getting off the ground with bibtex. I've read
: Lamport, the FAQ, Patashnik but haven't found (or have overlooked) what
: I need.

: I wrote a trivial bibtest.tex file:

: \documentclass{report}
: \bibliography{bibtest}
: \bibliographystyle{plain}
: \begin{document}
: This is the first citation \ref{cite}.

: \end{document}

Try putting the \bibliography and \bibliographystyle commands in the
body of the document, rather than in the preamble. After all, they
produce printed output, so they should not be in the preamble. Also,
the positioning of these commands determines the position on the
bibliography in the document. So:

\documentclass{report}


\begin{document}
This is the first citation \ref{cite}.

\bibliography{bibtest}
\bibliographystyle{plain}
\end{document}

Hope this helps,

Eyal Doron


0 new messages