![如何移除此支架](https://linux22.com/image/423422/%E5%A6%82%E4%BD%95%E7%A7%BB%E9%99%A4%E6%AD%A4%E6%94%AF%E6%9E%B6.png)
我用的是 biblatex bath,但参考文献里多了一个括号。我试过一些方法,但都不管用,
\usepackage[style=bath,backend=biber,sorting=ynt]{biblatex}
\assignrefcontextentries[]{*}
@article{plumbEddyFluxesConserved1979,
title = {Eddy {{Fluxes}} of {{Conserved Quantities}} by {{Small}}-{{Amplitude Waves}}},
author = {Plumb, R. A.},
date = {1979-09-01},
journaltitle = {Journal of the Atmospheric Sciences},
shortjournal = {J. Atmos. Sci.},
volume = {36},
pages = {1699-1704},
publisher = {{American Meteorological Society}},
issn = {0022-4928},
doi = {10.1175/1520-0469(1979)036<1699:EFOCQB>2.0.CO;2},
langid = {english},
number = {9}
}
答案1
这看起来像是一个小疏忽biblatex-bath
你应该向其开发人员报告(例如https://github.com/alex-ball/bathbib/issues)。 (编辑报告于https://github.com/alex-ball/bathbib/issues/9。
当我尝试从你的条目构建 MWE 时,我得到了略有不同的结果,即
空括号后面有一个“9月1日”。
这是一个临时的方法,可以在您等待样式维护者修复时避免出现这个空对。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=bath,backend=biber,sorting=ynt]{biblatex}
\assignrefcontextentries[]{*}
\renewbibmacro*{issue+date}{%
\ifboolexpr{
test {\iffieldundef{issue}}
and
test {\iffieldundef{month}}
}{}{%
\ifboolexpr{(
test {\iffieldundef{volume}}
and
test {\iffieldundef{number}}
) and
test {\iffieldundef{eid}}
}{%
\newunit
\printfield{issue}%
}{%
\printfield[parens]{issue}%
}
\setunit{\addcomma\space}%
\printdate
}%
\newunit
}%
\begin{filecontents}{\jobname.bib}
@article{plumb,
title = {Eddy Fluxes of Conserved Quantities by Small-Amplitude Waves},
author = {Plumb, R. A.},
date = {1979-09-01},
journaltitle = {Journal of the Atmospheric Sciences},
volume = {36},
number = {9},
pages = {1699-1704},
doi = {10.1175/1520-0469(1979)036<1699:EFOCQB>2.0.CO;2},
langid = {english},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson,plumb}
\printbibliography
\end{document}