如果这个问题已经在其他地方被问到,我很抱歉;我还没有找到一个能准确解决这个问题的问题。
我正在使用 Biblatex 和 Oscola 样式以及脚注引文。当我引用 @report 样式的文档时,引文的最后一个标点符号前会出现一个额外的小空格。其他类型的文档不会出现这种情况。如果可以的话,我想去掉这个空格。
这是一个例子。脚注 1 是 @book - 这没有问题。脚注 2 是带有尴尬空格的 @report。脚注 3 有一个有问题的 @report,后面跟着一个没有问题的 @article。
以下是产生该结果的 MWE:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[style=oscola]{biblatex}
\addbibresource{main.bib}
\title{Footnote punctuation test}
\author{}
\date{August 2017}
\begin{document}
\maketitle
Here's a citation that works normally.\autocite{hajer_deliberative_2003}
Here's one with an awkward
space.\autocite{joint_committee_on_human_rights_human_2006}
Here are multiple citations (the first one shows the problem; the second is
fine).\autocite{2014strategy,barrett_implementation_2004}
\end{document}
这是我的 .bib 文件:
@report{joint_committee_on_human_rights_human_2006,
title = {Human {{Trafficking}}, {{Twenty}}-Sixth {{Report}} of {{Session}}
2005-6, {{Volume}} 1},
number = {HL Paper 245-I / HC 1127-I},
author = {{{Joint Committee on Human Rights}}},
date = {2006-10-13},
}
@report{2014strategy,
title = {Modern {{Slavery Strategy}}},
author = {{Home Office}},
date = {2014-11},
}
@book{hajer_deliberative_2003,
title = {Deliberative Policy Analysis: Understanding Governance in the Network Society},
shorttitle = {Deliberative Policy Analysis},
publisher = {Cambridge University Press},
editor = {Hajer, Maarten A. and Wagenaar, Hendrik},
date = {2003}
}
@article{barrett_implementation_2004,
title = {Implementation Studies: Time for a Revival? Personal Reflections on 20 Years of Implementation Studies},
volume = {82},
issn = {1467-9299},
doi = {10.1111/j.0033-3298.2004.00393.x},
shorttitle = {Implementation Studies},
pages = {249-262},
number = {2},
journaltitle = {Public Administration},
author = {Barrett, Susan M.},
date = {2004-06-01},
langid = {english},
}
在此先感谢您的帮助。
答案1
据我所知,这个问题是由于缺少%
宏定义引起的report:standard
。
\renewbibmacro*{report:standard}{%
\usebibmacro{author/editor/institution}%
\setunit*{\addcomma\space}\newblock
\usebibmacro{title}%
\usebibmacro{reportinfo}%<--- % was missing here
\newunit\newblock
\usebibmacro{revisedbookvolume}%
\newunit\newblock}%
不再存在虚假空间。
我已通过向 GitHub 存储库提交包含必要更改的拉取请求来通知作者:https://github.com/PaulStanley/oscola-biblatex/pull/6