typst / hayagriva

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

Assigning letters for same author and year #179

Open schokofee opened 3 months ago

schokofee commented 3 months ago

Description

Since three days I'm trying to get to the root of this issue and get a basic idea, where / what is causing the problem, though I haven't been able to really pinpoint the problem.

With sources where the author and year is the same, an additional letter is added to the year. That works fine if there are only two occasions (groups) with two or more commbinations sharing the same author and year. It becomes more intresting when there are three or more groups, which share the same author and year; just like in my thesis.

The third group seems not to add the letter anymore. When I tried to recreate the issue in an empty project (the project is attached) I also recognised that the number of groups varry. In the attached example, if I'm only using the _Cite2.typ and _Cite3.typ file, then it will assign the letter to the first three groups, but not the fourth. If all three files are used it will only assign the letter to the first two groups.

_Cite2.typ and _Cite3.typ grafik

_Cite1.typ, _Cite2.typ, and _Cite3.typ grafik

I'm on typst version: typst 0.11.1 (50115102)

As I have to hand in my thesis at the end of the week I'm seeking any kind of support or workaround so that all letters show up in the bibliogrphy and the text references (including #cite(key, form: "prose", style:"harvard-cite-them-right"))

CiteSameAuthorYear.zip

Reproduction URL

No response

Operating system

Windows

Typst version

Enivex commented 3 months ago

@schokofee I notice that you've hard-coded letters in the years of some of the entries, which isn't advisable. Could you remove those and check whether the issue persists?

schokofee commented 3 months ago

@Enivex Thank you for the replay. As I tried many different ways to find my way around the problem I also tried to hard code the years, but without any luck. In order to make sure I didn't miss anything I quickly double checked it and removed any letters from thos years in my bib, though the problem still exists. Is it working on your side?

Enivex commented 3 months ago

Unfortunately not. The root cause seems to be something else.

Enivex commented 3 months ago

Unless you're forced to use this specific bibliography style, you could try another. Worst case scenario there's always the ones relying on numbers instead of author-year, which should work regardless.

Realistically speaking I doubt @reknih is able to fix this in time for when you have to hand in the thesis.

schokofee commented 3 months ago

@Enivex Thanks for looking into it. Yeah, I was also curriouse if it is related to the citation style so I tried it with different CSL files, as well as the default apa style. It seems that the issues is not tied to the citation style / csl file itself.