After a few days break I went back to working on a report. When I tried to compile I got the following warning:
Package biblatex Warning: Data encoding is 'utf8'.
(biblatex) Use backend=biber.
I haven't changed a thing since last week, when it worked. I did open the file on someone else's laptop, but didn't touch the code. I am using ShareLaTeX. The relevant code is (I think):
\documentclass[11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[backend=bibtex,style=authoryear,sorting=none]{biblatex}
\addbibresource{references.bib}
\printbibliography
References are in the form of:
@book{griffiths,
author = {D.J. Griffiths},
title = {Introduction to Quantum Mechanics},
year = {2005},
publisher = {Pearson Education Inc.},
location = {USA, New Jersey, Upper Saddle River}
}
EDIT: When I change the backend to biber, the file doesn't recognise any references, and the log says:
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) output
(biblatex) and rerun LaTeX afterwards.
I'm unsure how to do this in ShareLaTeX. Consider me a simple mortal, who is not knowledgeable about much outside of basic report writing.
backend=bibtextobackend=biber.bibtexcan only handle files in ascii encoding. – Guido Jun 09 '14 at 15:20.bibfile) was recognised as being UTF8 encoded (probably due to an UTF8 character),biblatexsuggests you use Biber as this back-end is able to deal with UTF8 while BibTeX is not. So you can either ignore the warning (but keep an eye open for mangled characters and other encoding issues) or make sure your.bibfile at least is 100% ASCII (I'm not sure whether UTF8 in the.texfile also triggers the warning). – moewe Jun 09 '14 at 16:02.bibfileascii-encoded (or similar), but want your document to remain inutf8, you might have to use thebibencodingoption, please refer to §2.4.3.4 Specifying Encodings, pp. 41-43 of thebiblatexdocumentation. Also make sure you properly escape nonascii-chars (see How to write “ä” and other umlauts ... or refer tobiblatex-examples.bib). – moewe Jun 09 '14 at 16:11\usepackage[utf8]{inputenc}is the reason for that, right? I suppose I have no reason to useutf8overascii, at least for now. Removing that line fixed the problem, so thank you! – Timsey Jun 09 '14 at 16:22biblatexneeds t know the encoding of both the.texand the.bibfile (it is good at guessing, but sometimes things can go wrong (see the section in the documentation I linked to above)). Ifbiblatexsuspects you want UTF8 and you use BibTeX you get a warning since BibTeX cannot support UTF8. So removing\usepackage[utf8]{inputenc}and thereby effectively reverting toaciigets rid of the warning. – moewe Jun 09 '14 at 16:28