如何移除此支架

如何移除此支架

我用的是 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 时,我得到了略有不同的结果,即

Plumb, RA,1979 年。小振幅波的守恒量涡旋通量。《大气科学杂志》[在线],36(9) (),9 月 1 日,第 1699-1704 页。可从以下网址获取:https://doi.org/10.1175/1520-0469(1979)036<1699:EFOCQB>2.0.CO;2。

空括号后面有一个“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}

Plumb, RA,1979 年。小振幅波的守恒量涡旋通量。《大气科学杂志》[在线],36(9),9 月 1 日,第 1699-1704 页。可从以下网址获取:https://doi.org/10.1175/1520-0469(1979)036<1699:EFOCQB>2.0.CO;2。

相关内容