typst / hayagriva

Rusty bibliography management.
Apache License 2.0
319 stars 48 forks source link

Crossref "incollection" items don't render entire entry #203

Open siainbuletin opened 1 month ago

siainbuletin commented 1 month ago

I have a few entries in my BibLaTeX file that are individual articles enclosed in collections that have a different author. When I cite those individually in Typst, the entry in the 'Bibliography' section renders improperly.

Take this entry: @rubinoff1991introducti

In my .bib file it contains this data:

@incollection{rubinoff1991introducti,
    author = {Rubinoff, Lionel},
    chapter = {1},
    crossref = {van-der-dussen1991objectivit},
    keywords = {historical objectivity},
    pages = {1-11},
    title = {Introduction: W.H. Dray and the Critique of Historical Thinking}}

The crossref'ed entry has all necessary information:

@book{van-der-dussen1991objectivit,
    booktitle = {Objectivity, Method and Point of View: Essays in the Philosophy of History},
    editor = {Van Der Dussen, W.J. and Rubinoff, Lionel},
    keywords = {historical objectivity},
    publisher = {E.J. Brill},
    series = {Philosophy of History and Culture},
    title = {Objectivity, Method and Point of View: Essays in the Philosophy of History},
    year = {1991}}

Which renders as such when cited:

Hempel considera că acest refuz de a dezindividualiza cunoașterea istorică duce la explicații incomplete ale trecutului @rubinoff1991introducti.

Screenshot 2024-08-15 at 18 52 39

Screenshot 2024-08-15 at 18 54 38

As can be seen in the second screenshot multiple entries have this issue. The rest of the entries render as expected, after these empty ones.

ironupiwada commented 1 month ago

[Disclaimer: Quick tip from a Typst beginner] In parent entries, there should not be two titles. The chapter title should stay in the child entry, and the booktitle in the parent book should be title. Also, the chapter argument additionally breaks the citation, so if you need to include a number before the chapter, simply put it into the chapter title. Consider this bibliography:

@incollection{rubinoff1991introducti,
    author = {Rubinoff, Lionel},
    crossref = {van-der-dussen1991objectivit},
    keywords = {historical objectivity},
    pages = {1-11},
    title = {1. Introduction: W.H. Dray and the Critique of Historical Thinking}}

@book{van-der-dussen1991objectivit,
    title = {Objectivity, Method and Point of View: Essays in the Philosophy of History},
    editor = {Van Der Dussen, W.J. and Rubinoff, Lionel},
    keywords = {historical objectivity},
    publisher = {E.J. Brill},
    series = {Philosophy of History and Culture},
    year = {1991}}

and the output in APA style:

obraz