Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@incollection not output as expected #32

Closed
andrewdbate opened this issue Feb 1, 2018 · 4 comments
Closed

@incollection not output as expected #32

andrewdbate opened this issue Feb 1, 2018 · 4 comments

Comments

@andrewdbate
Copy link

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 added a commit that referenced this issue Feb 1, 2018
@moewew
Copy link
Owner

moewew commented Feb 1, 2018

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
Copy link
Owner

moewew commented Feb 2, 2018

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

@moewew moewew closed this as completed Feb 2, 2018
@andrewdbate
Copy link
Author

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

@moewew
Copy link
Owner

moewew commented Feb 2, 2018

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants