I'm trying to compile a short essay with its bibliography. I'm in AUCTeX under Win 7. This is the route to follow, isn't it?
- compile
main.tex
withpdflatex
- launch BibTex on main.tex (this generates
main.aux
) - compile main.tex with pdflatex twice
I'm getting this error message
This is BibTeX, Version 0.99d (TeX Live 2015/W32TeX) The top-level auxiliary file: main.aux I found no \citation commands---while reading file main.aux I found no \bibdata command---while reading file main.aux I found no \bibstyle command---while reading file main.aux (There were 3 error messages)
TeX Output exited abnormally with code 2 at Sat Sep 24
Here's a MWE. Where am I going wrong?
\documentclass[11pt, a4paper, twoside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[margin=2.5cm,]{geometry}
\usepackage[english]{babel}
\usepackage[babel]{csquotes}
\usepackage[useprefix, style=numeric-comp, sorting=nyt, backend=biber, hyperref=true]{biblatex}
\bibliography{articles}
\usepackage{fancyhdr} %with "twoside" \documentclass option!!
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\thepage} % Left if Even, Right if Odd pg
\fancyhead[RE,LO]{Urban Gardens}
\fancyfoot[]{} %
\fancyfoot[]{}
% FONT CHOICE
% Palatino for serif & math, Helvetica for ss, Courier for tt
\usepackage{mathpazo} % math & rm
\linespread{1.50} % Palatino needs more leading (space between lines)
\usepackage[scaled]{helvet} % ss
\usepackage{courier} % tt
\normalfont
\usepackage{graphicx}
\usepackage{booktabs}
% \usepackage{subcaption} % \begin{subfigure} within 'figure' environment
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\usepackage[capitalize, italian]{cleveref}
\usepackage{lipsum}
\usepackage{keyval}
\usepackage{subfig}
\usepackage{caption}
\frenchspacing
% \graphicspath{{./img/}}
\title{My Essay}
\author{WW}
\date{}
\begin{document}
\maketitle{}
% \tableofcontents
\lipsum[2]
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{\bibname}
\nocite{*}
\printbibliography
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
The bibliography articles.bib
has only 2 records. Can you please help me detect errors?
\usepackage[..., backend=biber,...]{biblatex}
, why are you running bibtex? You should be running biber instead. Also, consider changing\bibliography{articles}
to\addbibresource{articles.bib}
.biblatex
(especially withbackend=biber
) you need to run Biber and not BibTeX. See Biblatex with Biber: Configuring my editor to avoid undefined citations for help with your editor.