Hi I basically want to use biblatex instead of apacite. When I try run the following code, it just doesn't run:
\begin{filecontents}{myref.bib}
@ARTICLE{ref1,
author = "A. E. Gill",
title = "Some Simple Solutions for Heat-Induced Tropical Circulation",
journal = "Quart. J. R. Met. Soc.",
volume = 106,
year = 1980,
pages = "447-462",
}
@BOOK{TeX,
author = "D. E. Knuth",
title = "The \tex/book",
publisher = "Addison-Wesley",
year = 1984,
note = "Describes \tex/ in detail",
}
\end{filecontents}
\documentclass{article}
\usepackage[style=apa, backend=bibtex]{biblatex}
%\usepackage[american]{babel}
%\DeclareLanguageMapping{american}{american-apa}
\bibliography{myref}
\title{Example Title}
\author{Author Name}
\begin{document}
\maketitle
First line.
Reference is \textcite{ref1} and \cite{TeX}.
\printbibliography
\end{document}
When I delete backend=bibtex, it gives an output but instead of "Reference is Gill (1980) ..." it writes: "Reference is ref1 ...". What can be possibly wrong here?
UPDATE: After fiddling around, I discovered that (with the help of comments of course) the problem is with my system and I guess biber is still buggy. Here is what I did to solve my problem:
- Previously I had Miktex 2.9 64 bit version. It turns out that biber is not included in that version (Source). I reinstall Miktex 32 bit version and it worked.
- I had to change default bibliography engine in TexStudio from
bibtextobiber. - Also, running TexStudio in administrator mode helped. Check here.
biberhas problems with special characters, i.e.%sign (Check here). It is buggy even though they claim to solve it (Check here). Check the URL's and abstracts whether there is a special character. Delete them (what a bummer)..
biberinstead ofbibtexto compile the references. – Guido Apr 29 '14 at 18:33biblatex-aparequires Biber. So you cannot usebackend=bibtex, you have to specifybackend=biber(or delete thebackendoption altogether, thenbackend=biberwill be assumed) and run Biber. Maybe Biblatex with Biber: Configuring my editor to avoid undefined citations and How to use biber can help you. – moewe Apr 29 '14 at 18:39TexStudio. Because, even though I used the same code as the first comment here, I failed. Also, I tried to addbackend=biberto the same code I wrote above with abiberlibrary I downloaded from here. Failed again. Anyway thanks for help.. – HBat Apr 29 '14 at 21:20pdflatex trial.tex). Same thing. There might be a problem with my Miktex 2.9. Butapaciteworked fine. – HBat Apr 30 '14 at 00:57pdflatex trial.tex,biber trial.bcf,pdflatex trial.tex(this is the normal LaTeX+biber sequence). If you still have problems, make sure your versions ofbiberandbiblatexmatch by adding a\listfilesin your preamble, runningpdflatexagain, and then checking the version of biblatex you get at the end of your.logfile against the version of biber (not sure how on windows, but maybebiber -v..?). Thebiblatexmanual will tell you which version ofbiberit needs in order to run properly. And before you do any of that, maybe try to update your installation. – jon Apr 30 '14 at 02:25biberis not included in that version(source). I reinstall Miktex 32 bit version and it worked. Also I need to mention that I had to change default bibliography engine in TexStudio from bibtex to biber.. Thanks for advice.. – HBat Apr 30 '14 at 14:46%sign. In other fields - such as theabstractfield - special characters do have to be escaped - just like normal text in LaTeX. Note that the bug report above says you can ignore theabstractfield (and other fields), so that a faulty entry does not cause problems - this is not done automatically and not an option if you need the information stored in theabstractfield. – moewe May 04 '14 at 20:12\DeclareSourcemap{\maps[datatype=bibtex]{\map[overwrite]{\step[fieldset=abstract, null]}}}clears theabstractfield and thus ignores any faulty entries therein with Biber. – moewe May 04 '14 at 20:16