BibTeX, biblatex and biberUsing the "\cite{test_article}" with the following tex and bib file, throws up a compilation error.

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
mcsentas
Posts: 7
Joined: Thu Nov 23, 2017 5:53 pm

Using the "\cite{test_article}" with the following tex and bib file, throws up a compilation error.

Post by mcsentas »

Using the "\cite{test_article}" with the following tex and bib file, throws up a compilation error.
This is BibTeX, Version 0.99d (TeX Live 2016)
The top-level auxiliary file: document.aux
I found no \citation commands---while reading file document.aux
I found no \bibdata command---while reading file document.aux
I found no \bibstyle command---while reading file document.aux
(There were 3 error messages)
Any suggestions.?

\documentclass[man, 12pt]{apa6}
\usepackage{setspace}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex} 
 
\AtEveryBibitem{
  \clearfield{month}
}
\DeclareLanguageMapping{english}{american-apa}

 
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=url,
notmatch=\regexp{wiki},
final=1]
\step[fieldset=urldate, null]
}
}
}
 
\addbibresource{document.bib}
 
%\usepackage[l2tabu]{nag}

% title, etc.
\title{Usability Evaluation }
\shorttitle{User Evaluation}
\author{TU}
 
\affiliation{University}
%\abstract{}
%\keywords{}
%\authornote{}

\begin{document}
\begin{spacing}{1.5}
\maketitle
Test \cite{article}
 
\printbibliography
 
%\appendix 
\end{spacing}
\end{document}
This is the sample BIB file (document.bib)
@test_article{article,
  author  = {Peter Adams}, 
  title   = {The title of the work},
  journal = {The name of the journal},
  year    = 1993,
  number  = 2,
  pages   = {201-213},
  month   = 7,
  note    = {An optional note}, 
  volume  = 4
}

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

Using the "\cite{test_article}" with the following tex and bib file, throws up a compilation error.

Post by Johannes_B »

You are telling package biblatex that program biber should be used to get the info from the bib database, but you are actually using program bibtex to get the info. That won't work.
Please have a look at the following link: https://en.wikibooks.org/wiki/LaTeX/Bib ... g_up_biber
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: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Using the "\cite{test_article}" with the following tex and bib file, throws up a compilation error.

Post by Stefan Kottwitz »

Yes, use biber instead of bibtex. Ths can be a setting in your editor, if you don't use the command line.

Stefan
LaTeX.org admin
Post Reply