BibTeX, biblatex and biberCan't get bib file working?

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Can't get bib file working?

Post by exutable »

Hey guys,

I am trying to create a bibliography for my report but I can't crack it. I've tried a lot of different things and can't seem to get it to work.


Here is the bib file named referencer.bib:

Code: Select all

@article{sommerhusbranchen,
 author    = {Sommerhuse.dk ApS},
 title     = {Sommerhusbranchen og feriehusudlejningsbranchen i Danmark},
 publisher = {Sommerhuse.dk ApS},
 year      = {2006},
 address   = {http://www.sommerhuse.dk/ferie/sommerhusbranchen.html},
}

@article{kød-vs-grøntsager,
 author    = {Grønt Forum},
 title     = {Gode grønne råd},
 publisher = {Grønt Forum},
 address   = {http://www.groentforum.dk/gronneraad_13.html},
}

@article{oversvømmelser,
 author    = {Grønt Forum},
 title     = {Gode grønne råd},
 publisher = {Grønt Forum},
 address   = {http://www.groentforum.dk/gronneraad_13.html} 
}

@article{ens-dk-forbrug,
 author    = {Energi Styrelsen},
 title     = {Indsats i bygninger},
 publisher = {Energi Styrelsen},
 address   = {http://www.ens.dk/DA-DK/FORBRUGOGBESPARELSER/INDSATSIBYGNINGER/Sider/Forside.aspx} 
}

and my tex:

Code: Select all

\documentclass{report}

\input{../../preamble/preamble.tex}
\title{Problemanalyse for Klimastyring}
\author{B213}

\begin{document}
\maketitle
\tableofcontents
\input{indledning.tex}
\input{hvem.tex}
\bibliographystyle{plain}
\bibliography{referencer} 
\end{document}
Just gives me a blank page, and I can't cite anything.

Any help appreciated, thanks

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't get bib file working?

Post by localghost »

On the basis of the code you provided specific help is not possible. The code of the included files is unknown. Reduce the problem to minimal working example (MWE) that is small, complete and compilable without any irrelevant stuff.


Best regards and welcome to the board
Thorsten¹
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Can't get bib file working?

Post by exutable »

Code: Select all

\documentclass{report}
\usepackage[danish]{babel}
\usepackage[utf8]{inputenc}

\begin{document}
\bibliographystyle{plain}
\bibliography{referencer} 
\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't get bib file working?

Post by localghost »

There should be at least one \cite command in your source. The rest is explained by the BibTeX manual and the document »Tame the beast«.
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Can't get bib file working?

Post by exutable »

Code: Select all

\documentclass{report}

\input{../../preamble/preamble.tex}
\title{Problemanalyse for Klimastyring}
\author{B213}

\begin{document}
\maketitle
\tableofcontents
\input{indledning.tex}
\input{hvem.tex}
\cite{ens-dk-forbrug}
\bibliographystyle{plain}
\bibliography{referencer} 
\end{document}
even if I do, I just get the typical question mark reference and no bib print out.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't get bib file working?

Post by localghost »

You certainly did a bibtex run on the *.aux file and afterwards twice more with (pdf)latex.
exutable
Posts: 10
Joined: Thu Oct 29, 2009 12:47 am

Re: Can't get bib file working?

Post by exutable »

ah that helps, so for a website what is the best bib entry type to use?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Can't get bib file working?

Post by localghost »

I think biblatex could be helpful. It extends the list of entry types. For details refer to its manual. I know from natbib that it offers a »url« field for web documents with a standard entry type.
Post Reply