plk / biblatex-apa

APA style for BibLaTeX
90 stars 48 forks source link

Filtering on type=inproceedings produces error #129

Closed kleinschmidt closed 2 years ago

kleinschmidt commented 3 years ago

Using type=inproceedings in \printbibliography should print only those items that are @inproceedings, but it prints nothing and there's an error in the log like Package biblatex Warning: Type 'inproceedings' not found on input line 35.. I think this has to do with treating inproceedings as an alias for inbook because with type=inbook it prints BOTH @inproceedings and @inbook entries. I suspect there's a similar problem with book/proceedings but haven't checked.

Here's MWE

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[babel=true,english=american]{csquotes} 
\usepackage[style = apa, backend = biber, isbn = true, doi = true]{biblatex}

\begin{filecontents*}{lit.bib}
@inproceedings{blah,
title = {Blah blah blah},
author = {No, Body},
booktitle = {My great converence},
date = {2020},
editor = {Some, body},
publisher = {Really anyone},
location = {Nowhere, USA}
}

@inbook{blah2,
title = {Blah blah blah, blah},
author = {Body, No and Body, Any},
booktitle = {My great converence 2},
date = {2020},
editor = {Some, body},
publisher = {Really anyone},
location = {Nowhere, USA}
}
\end{filecontents*}
\addbibresource{lit.bib}

\begin{document}
\nocite{*}
\printbibliography[title={everything}]

\printbibliography[title={inbook},type=inbook]
\printbibliography[title={inproceedings},type=inproceedings]
\end{document}

This prints

image

In contrast, when run without style=apa, I get

image

Edit: this is with 9.13 (on arch linux, via texlive-biblatexextra 2020.55376-1).

plk commented 3 years ago

This is a style issue - inproceedings and inbook are the same in APA and so any attempt to distinguish them will just not really work - can you use another style if you need to do this?