LaTeX forum ⇒ BibTeX, biblatex and biberInbook/incollection in Biblatex not displaying correctly

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
arnyeisntein
Posts: 2
Joined: Tue Jun 04, 2019 4:53 pm

Inbook/incollection in Biblatex not displaying correctly

Postby arnyeisntein » Tue Jun 04, 2019 4:58 pm

Hi

Using biblatex to cite a chapter in a book or a collection leads to a bibliography that doesn't seem to be correct: Here an example

Jaccard, Mark (2009). “Combining top down and bottom up in energy economy models”. In: ed. by Joanne Evans and Lester C. Hunt. Edward Elgar. Chap. International Handbook on the Economics of Energy, pp. 311–332.

would expect the book/collection title after In: and don't know why there is a "Chap." in the citation.
I updated miktex, but the problem remains.
Here the code that reproduces on my computer the example above.

  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{xpatch}
  4. \usepackage[style=authoryear, isbn=false, url=false,
  5. doi=false, backend=biber,defernumbers=true,uniquename=false, autolang=hyphen,bibencoding=UTF-8]{biblatex}
  6. \usepackage{filecontents}
  7. \begin{filecontents}{sample.bib}
  8. @InCollection{Jaccard2009,
  9. author = {Mark Jaccard},
  10. title = {Combining top down and bottom up in energy economy models},
  11. publisher = {Edward Elgar},
  12. year = {2009},
  13. editor = {Joanne Evans and Hunt, Lester C.},
  14. chapter = {{International Handbook on the Economics of Energy}},
  15. pages = {311-332},
  16. timestamp = {2019-05-28},
  17. }
  18. \end{filecontents}
  19. \addbibresource{sample.bib}
  20.  
  21. \begin{document}
  22. \nocite{*}
  23. \printbibliography
  24.  
  25. \end{document}


Anybody know what is going on here?

Thanks

Renger

User avatar
Ijon Tichy
Posts: 142
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Wed Jun 05, 2019 8:24 am

Usage of wrong fields or wrong entry type. incollection uses either booktitle or crossref as the collection and title as the article title in this collection. So
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{xpatch}
  4. \usepackage[style=authoryear, isbn=false, url=false,
  5. doi=false, backend=biber,defernumbers=true,uniquename=false, autolang=hyphen,bibencoding=UTF-8]{biblatex}
  6. \usepackage{filecontents}
  7. \begin{filecontents}{\jobname.bib}
  8. @InCollection{Jaccard2009,
  9. author = {Mark Jaccard},
  10. booktitle = {Combining top down and bottom up in energy economy models},
  11. publisher = {Edward Elgar},
  12. year = {2009},
  13. editor = {Joanne Evans and Hunt, Lester C.},
  14. title = {International Handbook on the Economics of Energy},
  15. pages = {311-332},
  16. timestamp = {2019-05-28},
  17. }
  18. \end{filecontents}
  19. \addbibresource{\jobname.bib}
  20.  
  21. \begin{document}
  22. \nocite{*}
  23. \printbibliography
  24.  
  25. \end{document}
would give the expected result (as I understand your question). Alternatively you could try
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{xpatch}
  4. \usepackage[style=authoryear, isbn=false, url=false,
  5. doi=false, backend=biber,defernumbers=true,uniquename=false, autolang=hyphen,bibencoding=UTF-8]{biblatex}
  6. \usepackage{filecontents}
  7. \begin{filecontents}{\jobname.bib}
  8. @book{Jaccard2009,
  9. author = {Mark Jaccard},
  10. title = {Combining top down and bottom up in energy economy models},
  11. publisher = {Edward Elgar},
  12. year = {2009},
  13. editor = {Joanne Evans and Hunt, Lester C.},
  14. chapter = {International Handbook on the Economics of Energy},
  15. pages = {311-332},
  16. timestamp = {2019-05-28},
  17. }
  18. \end{filecontents}
  19. \addbibresource{\jobname.bib}
  20.  
  21. \begin{document}
  22. \nocite{*}
  23. \printbibliography
  24.  
  25. \end{document}
with a somehow different result.

arnyeisntein
Posts: 2
Joined: Tue Jun 04, 2019 4:53 pm

Postby arnyeisntein » Thu Jun 06, 2019 3:00 pm

THanks!
Renger


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 1 guest