梅威瑟:

梅威瑟:

refsegment当不使用 时defernumbers,我收到一条警告,提示我应启用defernumbers。当我启用它时,编号变得一团糟:

问题

具体来说,参考书目的编号从 开始x+1而不是1,其中x是所有 s 中排版的参考书目条目(唯一或其他)的数量refsegment

奇怪的是,使用 egrefsegment=section本身不会引起问题。如果\printbibliography[segment=x]命令被注释掉,则编号将从1预期开始。

我也resetnumbers第一次尝试过\printbibliography,但没有任何变化。

我也发了一个问题这里昨天,此事引起了一些评论defernumbers。我不确定这两者是否有关联,或者如何关联。

梅威瑟:

\documentclass{article}

\usepackage{filecontents}
\begin{filecontents}{bibliography.bib}
@Article{gob,
  title           = {I've Made a Huge Mistake},
  author          = {Bluth, Gob},
  journal         = {Journal of Magicians},
  year            = {2003},
  volume          = {1},
  number          = {1},
  pages           = {1--10},
}

@Article{michael,
  title           = {Her?},
  author          = {Bluth, Michael},
  journal         = {Sudden Valley},
  year            = {2003},
  volume          = {1},
  number          = {1},
  pages           = {1--10},
}

@Article{tobias,
  title           = {Never-nudism},
  author          = {F{\"u}nke, Tobias},
  journal         = {Blue Man Group},
  year            = {2003},
  volume          = {1},
  number          = {1},
  pages           = {1--10},
}
\end{filecontents}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[%
  backend=biber,
  refsegment=section,
  defernumbers=true,
  sorting=none,
]{biblatex}
\addbibresource{bibliography.bib}

\begin{document}
\section{First section}
Check this out~\cite{gob,tobias}.
\printbibliography[heading=subbibliography,segment=1,]

\section{Second section}
Check this out~\cite{michael}.
\printbibliography[heading=subbibliography,segment=2,]

\nocite{tobias}
\printbibliography
\end{document}

答案1

这是 biblatex 中的一个错误。Sourceforge 上的 3.0 DEV 版本应该会修复此问题。无需更新 biber - 1.9 目前可与 biblatex 3.0 DEV 配合使用。

相关内容