使用 pdflatex 1.14.16(Miktex)编译以下源:
\documentclass[11pt,a4paper,english]{memoir}
\usepackage[english]{babel}
\usepackage{biolinum}
\usepackage{XCharter}
\usepackage[autostyle]{csquotes}
\usepackage[style=authoryear,backend=biber]{biblatex}
\urlstyle{sf}
\usepackage[babel]{microtype}
\isopage[12]
\addbibresource{bug.bib}
\nocite{*}
\begin{document}
\printbibliography
\end{document}
使用以下内容bug.bib
(与真实的稍有不同):
@Article{Zwaan2004,
Title = {Moving words: Dynamic representations in language comprehension},
Author = {Zwaan, Rolf A. and Madden, Carol J. and Yaxley, Richard H. and Aveyard, Mark E.},
Date = {2004},
Journaltitle = {Cognitive Science Xxx Xxx Xxx Xxx},
Doi = {10.1207/s15516709cog2804_5},
Number = {4},
Pages = {611--619},
Volume = {28}
}
除最后一条外,论文的其余部分和参考书目格式正确。我尝试了各种microtype
选项,但都无济于事。
唯一能让最后一行不出现 5 的方法是将 替换_
为另一个字母,例如W
。但这不是一个合适的解决方案。
我的问题是:如何强制不在后面加连字符,_
或者如何强制行更好地压缩空格。谢谢!
答案1
您可以使用执行键重置 bib-entry 中的 url-Breaks:
@Article{Zwaan2004,
Title = {Moving words: Dynamic representations in language comprehension},
Author = {Zwaan, Rolf A. and Madden, Carol J. and Yaxley, Richard H. and Aveyard, Mark E.},
Date = {2004},
Journaltitle = {Cognitive Science Xxx Xxx Xxx Xxx},
Doi = {10.1207/s15516709cog2804_5},
Number = {4},
Pages = {611--619},
Volume = {28},
execute= {\def\UrlBreaks{}}
}