书目行为不一致

书目行为不一致

我想知道为什么我的书目没有打印出其中一条条目的出版商。正如您在图片中看到的,第一条和最后一条条目都是书籍,但第二条条目没有显示出版商,即使它在文件中*.bib怪异演技

这是我的文档设置:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
%...
\usepackage[
backend=biber,
natbib=true,
style=apa,
isbn=false,
doi=false,
url=false,
eprint=false
]{biblatex}
\bibliography{MyBibExample}
%...
\begin{document}
\citep{Helber2014}
\citep{Ritzman1979}
\printbibliography
\end{document}

我的bib文件如下所示:

% Encoding: UTF-8

@Book{Helber2014,
  title     = {Operations Management Tutorial},
  publisher = {Helber, Hildesheim},
  year      = {2014},
  author    = {Stefan Helber},
  isbn      = {9783000469183},
}

@Book{Ritzman1979,
  title     = {Disaggregation},
  publisher = {Springer Netherlands},
  year      = {1979},
  editor    = {Larry P. Ritzman and Lee J. Krajewski and William L. Berry and Stephen H. Goodman and Stanley T. Hardy and Lawrence D. Vitt},
  address   = {Dordrecht},
  isbn      = {978-94-015-7638-3},
  doi       = {10.1007/978-94-015-7636-9},
  ean       = {9789401576383},
  pagetotal = {724},
}

@Comment{jabref-meta: databaseType: bibtex;}

此文件中还有更多书籍,它们均正确显示...我遗漏了什么吗?感谢您的帮助!

PS:我正在运行 PdfLaTeX+Bib(la)tex+PdfLaTeX(2x),并且我的 Bib(la)tex 设置为biber % PPS:使用 TeXMaker 5.0.3 和 MiKTeX 2.9

答案1

它会持续删除不相关的内容,直到你只剩下显示错误所需的内容,从而知道问题出在哪里。

我得到了这个:

\documentclass{article}
\usepackage[style=apa,doi=false]{biblatex}
\addbibresource{doi.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

拥有doi.bib

@Book{withdoi,
  title     = {Title},
  year      = 2019,                   
  publisher = {Publisher},
  author    = {Author},                   
  doi     = {10.1007/978-94-015-7636-9},
}
@Book{withoutdoi,
  title     = {Title},
  year      = 2019,                   
  publisher = {Publisher},
  author    = {Author},                   
}

得出的结果为:

Author. (2019a). Title.
Author. (2019b). Title. Publisher.

我无法删除样式apa,但问题仍然存在。事实证明,有代码apa.bbx实现了此 APA 规则:

% (APA 7.02) No LOCATION/PUBLISHER if there is a DOI
%            (Inconsistent in 2nd printing, see 7.04:39 which
%            is incorrect in 2nd printing)

它会测试doi字段是否已定义,如果未定义,则仅打印 location+publisher。您可以通过将以下内容放入文档中来将其改回来:

\newbibmacro*{location+publisher}{%
   \printlist[default][1-1]{location}%
   \setunit*{\addcolon\space}%
   \printlist{publisher}%
   \newunit}

(这可以看作是一个错误apa.bbx。那么它应该有一个测试来测试如果doi=false已给出。或者您可以争辩说,您永远不应该使用 apa 样式将 doi 设置为 false。)

相关内容