经过几天的搜索,我越来越接近目标了,但仍然无法在 Latex 文档中获得参考书目 (APA)。我在 mac os 10.8.4 上的 texworks 中使用 biber。运行 pdflatex - biber - pdflatex 后,生成的 pdf 中没有参考书目,只重现了引用键。
这是我的文档的简短版本:
\documentclass[12pt, a4paper]{book}
\usepackage{fancyhdr, graphicx, color}
\usepackage[dutch]{babel}
\usepackage[backend=biber, style=apa, sortcites=true]{biblatex}
\DeclareLanguageMapping{dutch}{dutch-apa}
\addbibresource{database-nl-orig.bib}
\usepackage{csquotes}
\begin{document}
loewie \textcite{PoA}
\printbibliography
\end{document}
这是我的.bib 文件:
@online{PoA,
author = {{Port~of~Antwerp}},
title = {De haven natuurlijker: beeldbank},
date = {2007-03-15},
url = {http://www.havenvanantwerpen.be/beeldbank},
urldate = {2010-09-20},
}
有人发现我的代码有什么问题吗?可能是什么问题?我在文件夹中也找不到 .blg 文件。
这是 biber 告诉我的:
Use of uninitialized value $bcf in substitution (s///) at script/biber-darwin line 235.
Use of uninitialized value $filename in -e at /var/folders /42/cj12320j365bfxqs05tt4wjr0000gn/T/par-6c6f657769656d6168696575/cache- 2169e3f0bedf1bef28697a8d0c819f68e31dab72/inc/lib/Biber/Utils.pm line 116.
Use of uninitialized value $filename in concatenation (.) or string at /var/folder/42/cj12320j365bfxqs05tt4wjr0000gn/T/par-6c6f657769656d6168696575/cache-2169e3f0bedf1bef28697a8d0c819f68e31dab72/inc/lib/Biber/Utils.pm line 137.
INFO - This is Biber 1.6
INFO - Logfile is '.blg'
Use of uninitialized value $filename in concatenation (.) or string at /var/folders/42/cj12320j365bfxqs05tt4wjr0000gn/T/par-6c6f657769656d6168696575/cache- 2169e3f0bedf1bef28697a8d0c819f68e31dab72/inc/lib/Biber/Utils.pm line 146.
Entity: line 1: parser error : Document is empty
%%
^
INFO - Reading '/usr/local/texlive/2012/texmf-dist/tex/latex/tools/.tex'
答案1
使用以下 MWE,Biber 1.7 或 MiKTeX 2.9 不会出现任何问题(没有错误或警告)。我这里有 biblatex 版本 2013/07/15 v2.7a。
梅威瑟:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{author2000,
author = {AuthorA},
title = {Title of Article},
journal = {Name of Journal},
year = {2000},
}
@online{PoA,
author = {{Port~of~Antwerp}},
title = {De haven natuurlijker: beeldbank},
date = {2007-03-15},
url = {http://www.havenvanantwerpen.be/beeldbank},
urldate = {2010-09-20},
}
\end{filecontents*}
\documentclass[12pt, a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[dutch]{babel}
\usepackage{csquotes}
\usepackage[%
% style=authoryear
style=apa,
,sortcites=true
,backend=biber % to force biblatex to use biber
]{biblatex}
\addbibresource{\jobname.bib}
\DeclareLanguageMapping{dutch}{dutch-apa}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
你能在你的系统上运行它吗?如果你遇到问题,请检查你电脑上的 LaTeX、Biber、Biblatex 版本并告诉我们...
不要忘记编译 LaTeX、Biber、LaTeX、LaTeX、LaTeX。