typst / hayagriva

Rusty bibliography management.
Apache License 2.0
289 stars 44 forks source link

Bibliography `chapter` attribute breaks bibliography entry rendering #166

Open daskol opened 6 months ago

daskol commented 6 months ago

Description

Field chapter of bibliography record breaks bibliography. It seems that kind of bibliography item (inbook or article) does not matter.

image

Issues stays for latest (v0.10.0) on Web and standalone compiler on Linux platform.

Issue typst/typst#1161 seems to be related.

Reproduction URL

https://typst.app/project/ruTfM_JQH5u0j5EqPh7eHE

Operating system

WebApp/Linux.

Typst version

Enivex commented 6 months ago

Which bibliography style, and what does it look like in another CSL-based apps?

daskol commented 6 months ago

The issue exists for APA and IEEE for sure (see reproduction URL). I have no other CSL-based app so can't provide any info here.

To clarify the issue. The field chapter in the bib entry below will be rendered as plain date (e.g. (1981) for APA) but the entry will be rendered properly with this field removed.

@inbook{Newell81,
  author =       "A. Newell and P. S. Rosenbloom",
  title =        "Mechanisms of Skill Acquisition, 
  booktitle =    "Cognitive Skills and Their Acquisition",
  pages =        "1--51",
  publisher =    "Lawrence Erlbaum Associates, Inc.",
  year =         "1981",
  editor =       "J. R. Anderson",
  chapter =      "1", % BUG: This field causes the issue.
  address =      "Hillsdale, NJ"
}
mwoelke commented 4 weeks ago

Facing the same issue. I was trying out typst by porting an exiting latex paper I'm working on, but this bug is a dealbreaker for me.

I'm using IEEE style, no custom CSL.