alex-ball/bathbib

an extra bracket in the references

Closed this issue · 2 comments

there's an extra bracket in the references.
eg:

\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}
}

https://i.stack.imgur.com/O139T.png

Thanks for reporting.

What version are you using? I only ask because the month and day should appear after the empty parentheses.

There are some local issues blocking the next release, but while you wait, there are two workarounds.

Option 1: remove the month and day from your date.

Option 2: add this to your preamble after loading the style:

\renewbibmacro*{issue+date}{%
  \iffieldundef{issue}{}{%
    \ifboolexpr{(
      test {\iffieldundef{volume}}
      and
      test {\iffieldundef{number}}
      ) and
      test {\iffieldundef{eid}}
    }{%
      \newunit
      \printfield{issue}%
    }{%
      \printtext[parens]{%
        \printfield{issue}%
      }%
    }
  }%
  \setunit{\addcomma\space}%
  \printdate
  \newunit
}%

Thanks for reply, It works! The version of the package is 3.2