Bibdesk 附带 apalike 作为可用样式。它不是 APA 第 6 版样式。我尝试在首选项窗格中将其更改为 apa6,但渲染生成错误。在阅读 apa6 文档时,似乎需要 biber。因此,我将路径从 bibtex 更改为 biber,但仍然出现渲染错误。然后似乎模板是问题所在 - 使用 apa6 时,它似乎需要不同的参考书目语法。我对模板进行了一些更改,但我的更改失败了,并且出现了渲染错误。我在这里提供模板和下面的错误,以防有人知道问题是什么并提出建议让它工作:
\documentclass[doc]{apa6}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\pagestyle{empty}
\textwidth = 6.5in
\voffset = -105pt
\hoffset = -120pt
\renewcommand{\refname}{}
% The following command is provided for LaTeX2RTF compatibility with amslatex.
\newif\iflatextortf
\iflatextortf
\providecommand{\bysame}{\_\_\_\_\_}
\fi
\addbibresource{<<File>>}
\begin{document}
\nocite{<<CiteKeys>>}
\printbibliography
\end{document}
错误是:
---------- BibTeX log file -------
File: "/var/folders/vr/fwjbwhb160l3qmz99dzy70th0000gn/T/bibdesk.s5ktTv/bibpreview/bibpreview.blg"
[0] Config.pm:354> INFO - This is Biber 2.7
[0] Config.pm:357> INFO - Logfile is 'bibpreview.blg'
[47] biber-darwin:303> INFO - === Sun Sep 24, 2017, 00:22:00
[71] Biber.pm:359> INFO - Reading 'bibpreview.bcf'
[181] Biber.pm:835> INFO - Found 1 citekeys in bib section 0
[198] Biber.pm:3670> INFO - Processing section 0
[217] Biber.pm:3840> INFO - Looking for bibtex format file 'bibpreview' for section 0
[330] bibtex.pm:1435> INFO - Decoding LaTeX character macros into UTF-8
[335] bibtex.pm:1292> INFO - Found BibTeX data source './bibpreview.tex'
[336] Utils.pm:180> ERROR - BibTeX subsystem: /var/folders/vr/fwjbwhb160l3qmz99dzy70th0000gn/T/GsV72aJ0Om/bibpreview.tex_43038.utf8, line 24, syntax error: at end of input, expected "@"
[336] Biber.pm:113> INFO - ERRORS: 1
答案1
问题是biber
需要 bibtex 文件的全名,包括扩展名。所以你必须使用
\addbibresource{<<File>>.bib}
代替
\addbibresource{<<File>>}
另外,偏移量对我来说看起来不对