10

I'm working with TeXShop 3.61 and I'm currently switching from natbib to biblatex. Despite having tried for hours and read through all other entries, I still can't make it work.

.tex Document:

\documentclass{article}
\usepackage[backend=biber]{biblatex}
\bibliography{Ohne-Titel}
\begin{document}
Test test test \cite{Lee2009a}
\printbibliography
\end{document}

.aux File:

\relax 
\abx@aux@sortscheme{nty}
\abx@aux@cite{Lee2009a}
\@writefile{toc}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }
\@writefile{lof}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }
\@writefile{lot}{\boolfalse {citerequest}\boolfalse {citetracker}\boolfalse {pagetracker}\boolfalse {backtracker}\relax }

.bib Entry:

@article{Lee2009a,
author = {Lee, Geun},
file = {:Users/JulianLeitner/Library/Application Support/Mendeley Desktop/Downloaded/Lee - 2009 - A Theory of Soft Power and Korea's Soft Power Strategy.pdf:pdf},
journal = {The Korean Journal of Defense Analysis},
number = {2},
pages = {205--218},
title = {{A Theory of Soft Power and Korea's Soft Power Strategy}},
volume = {21},
year = {2009}
}

And here the error message:

 LaTeX Warning: Citation 'Lee2009a' on page 1 undefined on input line 5.

 LaTeX Warning: Empty bibliography on input line 6.

 [1{/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
 (./Ohne-Titel.aux)

 LaTeX Warning: There were undefined references.

To compile I simply use the Macro --> applescript --> bibliography.

Any help would be highly appreciated! Julian

5
  • 1
    \addbibresource{Ohne-Titel.bib}, not \bibliography{Ohne-Titel}
    – user31729
    Apr 20, 2016 at 16:51
  • You need to run Biber and not BibTeX. Check out Biblatex with Biber: Configuring my editor to avoid undefined citations for guidance on that. See also Question mark instead of citation number.
    – moewe
    Apr 20, 2016 at 16:53
  • 1
    @ChristianHupfer Works both ways (quite deliberately)
    – Joseph Wright
    Apr 20, 2016 at 16:58
  • 2
    Thank you so much! Changing to Biber in the editor engine did the job!
    – Julian
    Apr 20, 2016 at 17:01
  • I got the same error message when there was a syntax error in my .bib file such that the bibliography did not build correctly. The error log luckily told me which line was wrong. May 3, 2022 at 15:44

1 Answer 1

10

Since biblatex is used, the bib-file should be specified with addbibresource{...}.

\bibliography is 'deprecated` and shouldn't be used any longer.

And use biber after pdflatex, compile twice (or better three times!)

\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{Ohne-Titel.bib}
\begin{document}
Test test test \cite{Lee2009a}
\printbibliography
\end{document}

Ohne-Titel.bib

@article{Lee2009a,
author = {Lee, Geun},
file = {:Users/JulianLeitner/Library/Application Support/Mendeley Desktop/Downloaded/Lee - 2009 - A Theory of Soft Power and Korea's Soft Power Strategy.pdf:pdf},
journal = {The Korean Journal of Defense Analysis},
number = {2},
pages = {205--218},
title = {{A Theory of Soft Power and Korea's Soft Power Strategy}},
volume = {21},
year = {2009}
}

enter image description here

19
  • 2
    While \bibliography{<basename>} is deprecated for \addbibresource{<basname>.<ext>}, it should still work here ... I'd hazard the guess that it's a problem of calling Biber and not BibTeX that is at the heart of the issue here.
    – moewe
    Apr 20, 2016 at 16:54
  • @moewe: You're the bibliography expert here. I think it's still better to refer to \addbibresource, isn't it?
    – user31729
    Apr 20, 2016 at 16:57
  • 1
    I certainly prefer \addbibresource over \bibliography, but there are some that like the old way of doing things. For some of the extra functionality (access to remote locations etc.) \addbibresource is required, but most people can get what they need from \bibliography.
    – moewe
    Apr 20, 2016 at 16:59
  • @moewe: Thanks for explanation -- I changed to shouldn't be used in the post
    – user31729
    Apr 20, 2016 at 17:01
  • 1
    @Nicolas: I am pretty sure it's some TeXWorks configuration issue.
    – user31729
    May 23, 2016 at 15:05

Not the answer you're looking for? Browse other questions tagged .