BibTeX, biblatex and biberMissing \begin{document} - error converting

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
User avatar
Choughed
Posts: 6
Joined: Sun Sep 04, 2016 7:34 am

Missing \begin{document} - error converting

Post by Choughed »

Hi folks 

How can I separately convert .bib files into .blb?

Ta
John

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Missing \begin{document} - error converting

Post by Johannes_B »

I guess you are looking for BibTeX to generate a bbl. You will also need a bibliographystyle that defines the visual output.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Missing \begin{document} - error converting

Post by Stefan Kottwitz »

Hi John,

welcome to the forum!

I'm sure you need at least a small .tex document with a bibliography style, as Johannes said. It may contain just a short dummy text with \printbibliography. You can use \nocite{*} to include all bib entries.

Stefan
LaTeX.org admin
User avatar
Choughed
Posts: 6
Joined: Sun Sep 04, 2016 7:34 am

Re: .BIB TO .BLB?

Post by Choughed »

Many thanks, folks.

Okay, I pasted \bibliographystyle{harvard} and \bibliography{sage_harvard} into the .bib document.

I then asked TeXShop to typeset using BibTeX. It refused to typeset and instead asked for a .aux file, which I don’t have.

There is a sage.cls file and a natbib.sty file, but I think they go to the overall format.

Any thoughts?

Cheers
John
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: .BIB TO .BLB?

Post by Stefan Kottwitz »

Hi John,

you need to typeset via LaTeX or pdfLaTeX first. That produces the .aux file.
BibTeX actually works on the .aux file.

Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Missing \begin{document} - error converting

Post by Johannes_B »

It seems you don't know yet how LaTeX works. You can have a look at LaTeX for complete novices, a free e-book.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Choughed
Posts: 6
Joined: Sun Sep 04, 2016 7:34 am

Missing \begin{document} - error converting

Post by Choughed »

Hi Stefan

I typeset in LaTex. However, instead of an .aux file this error came up:
Missing \begin{document}
John
User avatar
Choughed
Posts: 6
Joined: Sun Sep 04, 2016 7:34 am

Re: .BIB TO .BLB?

Post by Choughed »

Many thanks, Johannes

I’ll give it a go.

John
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Missing \begin{document} - error converting

Post by Johannes_B »

You cannot just convert a bib-database to a bbl-file. You need to set up a full and working document and include your bibliography in there, including a matching style.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: .BIB TO .BLB?

Post by Stefan Kottwitz »

I'm just curious - for what do you need that file, if not for processing with LaTeX?

Stefan
LaTeX.org admin
Post Reply