如標題所示,使用此 MCVE:
\documentclass{article}
\usepackage{filecontents}
\usepackage[style=verbose-ibid,backend=bibtex]{biblatex}
\AtEveryCitekey{
\clearfield{location}
\clearfield{publisher}
}
\begin{filecontents}{the.bib}
@article{label,
title = {Best paper ever},
author = {Best author in universe},
location = {Earth},
publisher = {fiend},
date = {0000},
}
\end{filecontents}
\bibliography{the}
\begin{document}
Why the heck is there a space:\cite{label}?
\end{document}
:
在作者欄位中的「Best」一詞之間產生一個空格。每清理一個字段,該空間就會增加。您可以透過註解掉該ATEveryCitekey
指令來驗證該空間是否已消失。對於數字引用也會發生這種情況 - 方括號內有額外的間距。
我目前的解決方法是手動\hspace
向後引用,但必須對每個引用執行此操作,因為根據書目內容,它們的縮排有點不同!
我怎樣才能\clearfield
停止間隔事物?
答案1
我只是%
在行尾添加\AtEveryCitekey
,以防止引入雜散空格。
\documentclass{article}
\usepackage{filecontents}
\usepackage[style=verbose-ibid,backend=bibtex]{biblatex}
\AtEveryCitekey{%
\clearfield{location}%
\clearfield{publisher}%
}
\begin{filecontents}{the.bib}
@article{label,
title = {Best paper ever},
author = {Best author in universe},
location = {Earth},
publisher = {fiend},
date = {0000},
}
\end{filecontents}
\bibliography{the}
\begin{document}
Why the heck is there a space:\cite{label}?
\end{document}