biblatex 忽略 useeditor=false 选项

biblatex 忽略 useeditor=false 选项

我试图通过设置从参考书目中删除编辑器useeditor=false。但是,此选项似乎不起作用,无论是全局设置还是每个条目设置。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber]{biblatex}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@INBOOK{key4,
  AUTHOR          = {Author},
  TITLE           = {Orig Language Title},
  BOOKTITLE       = {Booktitle},
  LOCATION        = {Location},
  PUBLISHER       = {Publisher2},
  DATE            = {2011-22},
  PAGES           = {33--57}
}
@INPROCEEDINGS{Chunyuan2017,
  author = {Li, Chunyuan and Liu, Hao and Chen, Changyou and Pu, Yuchen and Chen, Liqun and Henao, Ricardo and Carin, Lawrence},
  booktitle = {Advances in Neural Information Processing Systems 30},
  editor = {Guyon, I and Luxburg, U V and Bengio, S and Wallach, H and Fergus, R and Vishwanathan, S and Garnett, R},
  pages = {5495--5503},
  publisher = {Curran Associates, Inc.},
  title = {{ALICE: Towards Understanding Adversarial Learning for Joint Distribution Matching}},
  year = {2017}
}
@ARTICLE{Botta2014,
  author = {Botta, Vincent and Louppe, Gilles and Geurts, Pierre and Wehenkel, Louis},
  title = {{Exploiting SNP Correlations within Random Forest for Genome-Wide Association Studies}},
  doi = {10.1371/journal.pone.0093379},
  editor = {Chen, Lin},
  issn = {1932-6203},
  journal = {PLoS ONE},
  month = APR,
  number = {4},
  pages = {e93379},
  volume = {9},
  year = {2014}
}

\end{filecontents}
\addbibresource{\jobname.bib}

\ExecuteBibliographyOptions{useeditor=false}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

我尝试了 biber 2.11 和 biblatex 3.11 以及最新版本 (biber 2.14 和 biblatex 3.14)。 两者的结果相同:

生成的 PDF

我也尝试过useauthor=false,有效。

知道哪里出了问题吗?

答案1

useeditor=false不会editor从参考书目中删除。如果它确实生效,它只会稍微移动一下,并阻止editor占据author排序和标签生成的位置

文档对该选项的解释如下

[ useeditor] 是否在排序过程中editor替换标签和缺失值author。如果条目包含字段editor但通常不被编辑器引用,则这可能很有用。设置useeditor=false并不意味着编辑器被完全忽略。这意味着不会在排序过程中editor替换标签和缺失值author。然后条目将按字母顺序排列title。使用标准样式,在这种情况下,编辑器打印在标题之后。

useeditor您可以在以下示例中看到效果

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=authoryear, backend=biber]{biblatex}

\begin{filecontents}[force]{\jobname.bib}
@mvcollection{britannica:simplified,
  editor       = {Preece, Warren E.},
  title        = {The {New Encyclop{\ae}dia Britannica}},
  date         = {2003},
  edition      = 15,
  volumes      = 32,
  publisher    = {Encyclop{\ae}dia Britannica},
  location     = {Chicago, Ill.},
  options      = {useeditor=false},
  label        = {EB},
  sorttitle    = {Encyclop{\ae}dia Britannica},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{britannica:simplified}
\nocite{cicero,nussbaum,sigfridsson}
\printbibliography
\end{document}

引用useeditor=false britannica:simplified如下

EB 2003

并排在“E”下(由于sorttitle = {Encyclop{\ae}dia Britannica},),因为editor不能替换缺失的author字段(因此label用作后备)。

useeditor=true引用的是

普里斯 2003

并且该作品被归类为“P”。


如果您想删除编辑器,最好通过 Biber 源图来完成。

\documentclass{article}
\usepackage[backend=biber]{biblatex}

\DeclareSourcemap{
  \maps[datatype=bibtex, overwrite]{
    \map{
      \step[fieldset=editor, null]
    }
  }
}

\begin{filecontents}[force]{\jobname.bib}
@INBOOK{key4,
  AUTHOR     = {Author},
  TITLE      = {Orig Language Title},
  BOOKTITLE  = {Booktitle},
  LOCATION   = {Location},
  PUBLISHER  = {Publisher2},
  DATE       = {2011-22},
  PAGES      = {33--57}
}
@INPROCEEDINGS{Chunyuan2017,
  author    = {Li, Chunyuan and Liu, Hao and Chen, Changyou
               and Pu, Yuchen and Chen, Liqun and Henao, Ricardo
               and Carin, Lawrence},
  booktitle = {Advances in Neural Information Processing Systems 30},
  editor    = {Guyon, I. and Luxburg, U. V. and Bengio, S.
               and Wallach, H. and Fergus, R. and Vishwanathan, S.
               and Garnett, R.},
  pages     = {5495--5503},
  publisher = {Curran Associates, Inc.},
  title     = {{ALICE}: Towards Understanding Adversarial Learning for Joint Distribution Matching},
  year      = {2017},
}
@ARTICLE{Botta2014,
  author  = {Botta, Vincent and Louppe, Gilles and Geurts, Pierre and Wehenkel, Louis},
  title   = {Exploiting {SNP} Correlations within Random Forest for Genome-Wide Association Studies},
  doi     = {10.1371/journal.pone.0093379},
  editor  = {Chen, Lin},
  issn    = {1932-6203},
  journal = {PLoS ONE},
  month   = APR,
  number  = {4},
  pages   = {e93379},
  volume  = {9},
  year    = {2014}
}

\end{filecontents}
\addbibresource{\jobname.bib}

\ExecuteBibliographyOptions{useeditor=false}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

相关内容