BibTeX, biblatex and biberIncomprehensible Error Message regarding End of Document

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Rakshasa
Posts: 2
Joined: Thu Nov 10, 2011 4:57 pm

Incomprehensible Error Message regarding End of Document

Post by Rakshasa »

Hi there!

I have a LyX document and it worked well all the time. It includes a BibTeX bibliography I assembled with Zotero. It worked well until a little ago. I added some literature and some text in the LyX file, so I can't really reconstruct what produced the problem.

Now LyX says:
LaTeX Error: \begin{thebibliography} on input line 1 ended by \end{document}.
As far as I found out, this normally states that an end{"something"} is missing, but as far as I got it, bibliographies don't use an \end{} statement. Even if I insert one as LaTeX command it produces an error.

Can someone tell me what I missed? :)

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Incomprehensible Error Message regarding End of Document

Post by kaiserkarl13 »

We can't help you without an example. We're not omniscient, after all.

My suspicion is that you either mixed up \begin{thebibliography} with \bibliography (the former is the environment used to typeset the bibliography; the latter is the command used to tell BibTeX which files to look through when generating the aforementioned environment) or you have an brace in your BibTeX fields that is causing \end{thebibliography} to be absorbed into the braces and thus missed. You must escape all braces as "\{" (not simply "{") or they'll break.

If LyX saves your LaTeX outputs, have a look at the .bbl file. That will tell you for sure what's going wrong.
Rakshasa
Posts: 2
Joined: Thu Nov 10, 2011 4:57 pm

Incomprehensible Error Message regarding End of Document

Post by Rakshasa »

Thanks for your answer!

By now, I deleted the bibliography and re-inserted it and now it says theres a brace to much:
Extra }, or forgotten \endgroup.
And it marks the bibliography.

This is the code of the section, does that help?:

Code: Select all

% Quellcode für Absatz 147 vorschauen

\section*{\bibliographystyle{plainnat}
\bibliography{//fs01/vkohl$/Dokumente/_Management/Zotero/Hauptseminar}
}
Then follows the next section.

I checked the code of the whole document, there is no brace to much, neither opening nor closing. In the text outside of the code are only normal braces like this: ()

When I delete the Bibliography, the document works again, the code of the section is then just:

Code: Select all

% Quellcode für Absatz 147 vorschauen

\section*{}
So there is no difference in the net-number of braces, open braces minus closed braces equals zero both times.
Reinserting the Bibliography again prevents the document from working.
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Incomprehensible Error Message regarding End of Document

Post by kaiserkarl13 »

I meant that the \thebibliography environment created by your \bibliography command (i.e., the contents of your .bbl file) have an unpaired brace somewhere. Check that; if you find one, there's something wrong with your BibTeX database (.bib file).
Post Reply