hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Assigning letters for same author and year

Open schokofee opened this issue 1 year ago • 5 comments

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 Cite_2.typ and Cite_3.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.

Cite_2.typ and Cite_3.typ grafik

Cite_1.typ, Cite_2.typ, and Cite_3.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

  • [X] I am using the latest version of Typst

schokofee avatar Jun 09 '24 07:06 schokofee

@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?

Enivex avatar Jun 13 '24 18:06 Enivex

@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?

schokofee avatar Jun 14 '24 04:06 schokofee

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

Enivex avatar Jun 15 '24 00:06 Enivex

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.

Enivex avatar Jun 15 '24 12:06 Enivex

@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.

schokofee avatar Jun 15 '24 20:06 schokofee