michal-h21 / biblatex-iso690

ISO 690 style for biblatex.
LaTeX Project Public License v1.3c
93 stars 31 forks source link

Volume is omitted on book entry types #82

Open wynksaiddestroy opened 4 years ago

wynksaiddestroy commented 4 years ago

I want to cite the well-known book "The Art of Computer Programming":

@book{knuth1998,
  title={The Art of Computer Programming},
  subtitle={Sorting and Searching},
  author={Knuth, Donald E.},
  volume={3},
  edition={2},
  publisher={Addison–Wesley},
  isbn={9780201896855},
  year={1998}
}

Unfortunately the volume is omitted in the bibliography:

Screenshot 2020-03-27 at 13 27 30

If I use authoryear instead of iso-authoryear the volume will be there:

Screenshot 2020-03-27 at 13 28 35

I have created a minimal working example. There I tried using both @book and @mvbook entry types.

How can I display the volume? Have I overlooked a configuration option?

Thanks in advance ❤️

moewew commented 4 years ago

The missing volume probably still needs looking at, but for the entry in question it is better to use maintitle+title instead of title+subtitle. Then the volume is shown:

\documentclass[ngerman]{article}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=iso-authoryear, backend=biber]{biblatex}

\begin{filecontents}{\jobname.bib}
@book{knuth1998,
  author    = {Knuth, Donald E.},
  maintitle = {The Art of Computer Programming},
  title     = {Sorting and Searching},
  volume    = {3},
  edition   = {2},
  publisher = {Addison–Wesley},
  isbn      = {9780201896855},
  year      = {1998},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\cite{knuth1998}
\printbibliography
\end{document}

For future bug reports you may want to keep in mind that it is more convenient to have the minimal working example in the post directly instead of a separate repository. (filecontents can be extremely handy here, because it can make the .tex file self-contained.)

wynksaiddestroy commented 4 years ago

That was easy. Thank you very much! Thanks for the hint as well. Maybe you should include a short notice in the README.md file on how to report an issue with a minimal working example. So others won't make the mistake as myself. Should I close the issue or do you want me keep it open?

moewew commented 4 years ago

I think the issue should stay open until someone with access to the standard has checked what should happen with the volume field in case there is no way to use maintitle.

MWE with examples from biblatex-examples.bib. Both volume and volumes field are dropped.

\documentclass[ngerman]{article}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=iso-authoryear, backend=biber]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{matuz:doody,aristotle:rhetoric,vazques-de-parga}
\printbibliography
\end{document}

I also get

Package biblatex Warning: No driver for entry type 'mvbook'.
(biblatex)                Using fallback driver on input line 12.

which probably shouldn't be there. The standard styles have

\DeclareBibliographyAlias{mvbook}{book}

for that.