biblatex \volcite 导致的双倍空格

biblatex \volcite 导致的双倍空格

今天,我在 BibLaTeX 参考文献前面发现了一些双空格(即太宽),事实证明,只有\volcite在使用后记时才会出现这种情况。请考虑以下示例:

\documentclass[a4paper]{article}

\usepackage[english, UKenglish]{babel}
\usepackage[style=british,english=british]{csquotes}
\selectlanguage{UKenglish}

\usepackage[backend=biber,style=verbose-ibid]{biblatex}
\bibliography{test}

\begin{document}

There are various opinions on this matter.
A very silly one is given by \pvolcite{1}[45]{Book1}.

A more clever approach has been suggested in \volcite{2}[45]{Book2}.

I propose to follow a middle course, as suggested by \volcite{2}[45]{Book3}.

\end{document}

在我的系统上,此示例在作者姓名前产生了难看的宽空格。一旦我删除附注,这些空格就会消失[45]

我推测某个地方缺少注释%,但我在示例中使用的是标准样式。您知道问题出在哪里吗?

我目前正在使用 MikTeX 2.9、BibLaTeX 1.6 和 Biber 0.9.4。

答案1

您的推测是正确的—— 的定义中缺少注释符号\blx@volcitecmd@iii。请将此错误报告至sourceforge.biblatex

\documentclass[12pt]{article}

\usepackage[backend=biber,style=verbose-ibid]{biblatex}

\makeatletter
\def\blx@volcitecmd@iii#1[#2]{%
  \blx@getformat\blx@tempc{ffd}{}{volcitepages}%
  \edef\blx@tempa{\expandonce\blx@tempa[{%
    \expandonce{\blx@tempb{#1}}%
    \noexpand\addcomma\noexpand\space
    \expandonce{\blx@tempc{#2}}}]}% <--- THIS COMMENT SIGN WAS MISSING
  \blx@tempa}
\makeatother

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

I propose to follow a middle course, as suggested by \volcite{2}[45]{A01}.

\end{document}

biblatex编辑:此错误已在 2011 年 11 月 13 日发布的 v1.7中修复。

相关内容