I'm trying to generate with R Studio a beamer presentation that uses backend=biber option.
Here is my MWE:
\documentclass{beamer}
\usepackage[american]{babel}
\usepackage{csquotes}
%apa requires biber
\usepackage[style=apa, backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
%create file in house
\begin{filecontents}{refs.bib}
@Article{fakecite,
author = {ACME Inc.},
title = {\LaTeX the Destroyer},
journaltitle = {JSS},
date = {2014}}
@Manual{textbook,
author = {Newman Newday},
title = {Rock n Roll},
address = {Reading},
year = {2001}}
\end{filecontents}
\bibliography{refs}
\begin{document}
\being{frame}
\frametitle{Captain America}
A fake citation \parencite{fakecite}.
See also \cite{textbook}.
\end{frame}
\begin{frame}
\printbibliography
\end{frame}
\end{document}
The error message I am receiving is:
LaTeX Warning: File `refs.bib' already exists on the system.
Not generating it from this source.
The output that is displayed is two frames. The first frame only has the keywords to access bib citations in bold font. The second slide is blank.
I have MikTeX v2.9 x64 bit, R Studio 0.98.766, and biblatex-apa v6.5 installed.
So far, what I've done is:
Downloaded biber from http://sourceforge.net/projects/biblatex-biber/, moved it into C:\Program Files\MiKTeX 2.9\miktex\bin\x64 , and ran "Refresh FNDB" in MiKTeX
Settings (Admin)so that MiKTeX knows biber exists.I've used the following R Script to ensure the right directory is acted upon:
setwd("~/Presentation") Sys.setenv(TEXINPUTS=getwd(), BIBINPUTS=getwd(),BSTINPUTS=getwd())
Ran compile to pdf once. The error was then generated. Ran compile to pdf again. Same error. (bibtex's apacite normally required two runs.)
Deleted refs.bib, bibexample.nav, bibexample.bbl, bibexample.bcf, bibexample.run, bibexample.snm, bibexample.syntax, & bibexample.toc. Then run compile to pdf again. Same error is generated.
Read biblatex-apa: undefined references . Noticed that in C:\Program Files\MiKTeX 2.9\tex\latex\biblatex-apa\apa.bbx the command causing errors in previous post was present ( \RequireBiber[3] ). I changed the command based on the responses left on that post to \RequireBiber[2] and then \RequireBiber[1] to no avail.
I've also tried to reproduce the following posts to no avail: APA6 and Beamer and BibLaTex and Problem with APA + biber + biblatex
Any help would be appreciated.
refs.bib? Tryjobname.bibassuming your source file has a suitable name.filecontentsis refusing to writerefs.bibbecause this filename is apparently already known on your system. Or is R studio doing this due to some misguided protection feature? – cfr Jun 03 '14 at 00:10Package biblatex Warning: Patching footnotes failed. (biblatex) Footnote detection will not work.@cfr
– coatless Jun 03 '14 at 00:15bibfrom being overwritten. (Or you have some generic file protection mechanism doing this.) Removing auto-generation will probably work. Those are warnings, not errors. They may or may not be problematic depending on what you are trying to do. – cfr Jun 03 '14 at 00:21`LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file: (biblatex) bibtex (biblatex) and rerun LaTeX afterwards.`
So, it seems as if the compile is only running once?
– coatless Jun 03 '14 at 00:46biberor tell R Studio. Then you have to rerunlatexorpdflatex. Or tell R Studio to run everything. – cfr Jun 03 '14 at 00:58latexmkor arara), but that is a matter for an RStudio feature request. – moewe Jun 03 '14 at 07:04