BibTeX, biblatex and biberEmpty bibliography and ? on citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
alex1993
Posts: 6
Joined: Sat Apr 11, 2020 8:24 pm

Empty bibliography and ? on citations

Post by alex1993 »

Hey,

I am writing my master thesis in TexMaker and in my main file in preamble I tried to add bibliography.

\bibliographystyle{authordate1}
\addto{\captionsenglish}{\renewcommand{\bibname}{References}}
\makeatletter
\renewcommand\@biblabel[1]{}
\makeatother
\newcommand*{\citenumfont}{}
\usepackage{apacite}

then under the chapters I added

\bibliographystyle{apacite}
\bibliography{references}

In the chapters I use \cite{filename} where the filename is taken from the reference bib file (not misspelled).

Even though I get undefined citations, i do produce a pdf.
But in the citations in the pdf i get only (?, ?) and in the text, no references are listed, the page under "references" is empty.

I have googled and tried everything but nothing seems to work, could anyone please try to help?

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
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty bibliography and ? on citations

Post by Johannes_B »

Welcome to the forum.
Why are you using yhe code you are using? Where does it come from? Some template?

You are telling LaTeX/BibTeX twice to use different bibliography styles, that is an error.

Why are you redefining the biblabel? Do you know what it is or does?

Apart from different styles, i bet you did not call bibtex.



But since you are writing a thesis, i suggest to use biblatex with biber instead. Please have a look at https://en.m.wikibooks.org/wiki/LaTeX/B ... _and_biber

And never try to use a new package in your project. Always use a small test document to make yourself familiar with the workflow.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
alex1993
Posts: 6
Joined: Sat Apr 11, 2020 8:24 pm

Empty bibliography and ? on citations

Post by alex1993 »

I have tried many combnations, but ok I used


\usepackage{biblatex}
\addbibresource{references.bib}
in the preamble and



\printbibliography

under the chapters in the document and NOTHING shows up, even the empty "References" is gone
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty bibliography and ? on citations

Post by Johannes_B »

Did you run biber?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
alex1993
Posts: 6
Joined: Sat Apr 11, 2020 8:24 pm

Empty bibliography and ? on citations

Post by alex1993 »

When I run bibtex i get "didnt find database entry" checked my bib file a thousand times don't fine anything wrong with it

@article{andersen2000crustal,
title={Crustal contaminants in the Permian Oslo Rift, South Norway: constraints from Precambrian geochemistry},
author={Andersen, Tom and Knudsen, Trine-Lise},
journal={Lithos},
volume={53},
number={3-4},
pages={247--264},
year={2000},
publisher={Elsevier}
}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty bibliography and ? on citations

Post by Johannes_B »

Bibtex and biber...
Do you see the difference?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
alex1993
Posts: 6
Joined: Sat Apr 11, 2020 8:24 pm

Empty bibliography and ? on citations

Post by alex1993 »

I used Texshop to create bib file with references. That's all I did
Sorry, my latex skills are not advanced. Just did what I was able to google
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Empty bibliography and ? on citations

Post by Johannes_B »

And the page i linked to? You seemed to have read it.

It should be a step by step by step by step walkthrough to getting a bibliography.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
alex1993
Posts: 6
Joined: Sat Apr 11, 2020 8:24 pm

Empty bibliography and ? on citations

Post by alex1993 »

I have followed all the steps and the references and citations still do not show up.
When I run bibtex I get

This is BibTeX, Version 0.99d (TeX Live 2018) The top-level auxiliary file: Maintex.aux I found no \citation commands---while reading file Maintex.aux I found no \bibdata command---while reading file Maintex.aux I found no \bibstyle command---while reading file Maintex.aux (There were 3 error messages)

Process exited with error(s)

and citation undefined
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Empty bibliography and ? on citations

Post by Bartman »

It may be, that you have followed everything else, but you get this message because you have not adjusted the settings of your editor. The default setting of the backend option of the biblatex package does not match the program you are running.
Post Reply