moewew / biblatex-trad

traditional bibliography styles with biblatex
LaTeX Project Public License v1.3c
31 stars 7 forks source link

@incollection not output as expected #32

Closed andrewdbate closed 6 years ago

andrewdbate commented 6 years ago

The output I am getting when citing a chapter from a book (at least when using trad-alpha) is different to what I was expecting (i.e. it is different to BibTeX alpha).

When citing a book chapter, the biblography says part instead of chapter.

For example, for the BibTeX entry in references.bib

@incollection{TestKey,
    author       = {Joe Bloggs},  
    title        = {The Interesting Chapter Title},
    chapter      = {9},
    pages        = {100--207},
    booktitle    = {The Best Book Title},
    editor       = {John Mann and Peter Person},
    publisher    = {Cambridge University Press},
    year         = {1997},
}

with the LaTeX document document.tex using BibTeX

\documentclass{article}
\begin{document}
\bibliographystyle{alpha}
\cite{TestKey}
\bibliography{references}
\end{document}

the reference is printed as

bug-report-1

whereas with the LaTeX document document2.tex using BibLaTeX and trad-alpha

\documentclass{article}
\usepackage[backend=biber,style=trad-alpha]{biblatex}
\addbibresource{references.bib}
\begin{document}
\cite{TestKey}
\printbibliography
\end{document}

this is the (incorrect output) that I am getting:

bug-report-2

The string "part" should instead be "chapter".

moewew commented 6 years ago

Thank you for reporting this.

The issue should be fixed with commit 368a07a. I'm currently looking at a few other things and hope to release a fixed version soon.

moewew commented 6 years ago

Version v0.4 with the fix has been sent off to CTAN.

andrewdbate commented 6 years ago

Do you know roughly how long it takes to appear on CTAN from experience?

moewew commented 6 years ago

Normally things are up on CTAN within a day, but then it takes another day to propagate through to all mirrors. TeX live regularly pulls from CTAN, so you can expect it there in the next two to three days. MikTeX does the updates manually, so it could take a bit longer.

If you need a fix now you can simply add

\DeclareFieldFormat{chapter}{\bibstring{chapter}~#1}

to your preamble. Or get the files from GitHub and place them in the same directory as your .tex file (but then don't forget to delete the local files as soon as the update has arrived.)