0

I have the same problem as, but none of the answers works for me.

I'm using pdfTeX 3.14, Biber 2.7, BibLatex 3.7. I've reinstalled these packages, cleared Biber cache, deleted .bbl file. The same result:

LaTeX Warning: Citation 'doe13' on page 1 undefined on input line 24.
LateX Warning: Empty bibliography on input line 28.

MWE (literally the same at the issue mentioned below):

\documentclass[a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage{csquotes}

\RequirePackage{filecontents}
\begin{filecontents}{refs.bib}
@book{doe13,
    address    = {City},
    title      = {A nice title},
    shorttitle = {Short title},
    publisher  = {Publisher},
    author     = {Doe, John},
    year       = {2013}
}
\end{filecontents}

\usepackage[backend=biber]{biblatex}
\addbibresource{refs.bib}

\begin{document}

Hello. \cite{doe13}.

\nocite{*}

\printbibliography

\end{document}
Amir
  • 133
  • 2
    Would you please post a MWE so that we can see your issue? – TeXnician May 28 '17 at 13:51
  • 1
    Please run this example. Do you succeed? If not, please show the blg file. Or show the blg file of the example you just included. – Johannes_B May 28 '17 at 13:55
  • Recompile with TeX -> Biber -> TeX -> TeX and report any errors from the .log. What does the .blg say? – moewe May 28 '17 at 13:55
  • 1
    Your MWE works brilliantly when compiled properly with pdlfatex, biber, pdflatex, pdlfatex, see Question mark or bold citation key instead of citation number. See also Biblatex with Biber: Configuring my editor to avoid undefined citations. – moewe May 28 '17 at 13:56
  • Thanks for the answers. I'm using R Studio. Is the problem in editor? – Amir May 28 '17 at 13:58
  • 2
    How do you compile TeX documents in R Studio? You certainly need your editor to run Biber for you? If you are not using R in your document, you might want to use an other editor (e.g. one from the list in https://tex.stackexchange.com/q/154751/35864). – moewe May 28 '17 at 14:01
  • Have a look at https://tex.stackexchange.com/q/71565/35864 https://texblog.org/2013/08/20/rknitr-automatic-bibliography-generation-with-biblatex-in-rstudio/ https://support.rstudio.com/hc/en-us/community/posts/200655446-Please-add-support-for-biber-and-package-download-locations- – moewe May 28 '17 at 14:03
  • So while in theory it is possible to run Biber from within RStudio (probably that is easiest with latexmk), I suggest you use another editor that is more TeX-specific if you don't write R code in your TeX document. You can of course also compile your document from the command line directly. – moewe May 28 '17 at 14:06
  • By the way, some feedback on the linked wikipage would be cool, Amir. – Johannes_B May 28 '17 at 14:09
  • 1
    It seems like I've figured out that the problem was in R Studio: the .bbl file generated with it was empty. I installed TexMaker, enabled Biber in it and generated bibliography with it, and that worked. @moewe Thanks for the advice! – Amir May 28 '17 at 14:24
  • I'm voting to close this question as off-topic because the OP didn't run biber. – TeXnician May 28 '17 at 15:06
  • @TeXnician Wouldn't it be better to mark as duplicate for Question mark instead of citation number? – Johannes_B May 28 '17 at 15:13

0 Answers0