Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Citation label issues #118

Open
Tracked by #2
ramojus opened this issue Dec 18, 2023 · 2 comments
Open
Tracked by #2

Citation label issues #118

ramojus opened this issue Dec 18, 2023 · 2 comments

Comments

@ramojus
Copy link

ramojus commented Dec 18, 2023

I've noticed two strange things with citation labels:

  1. When there are more than three authors, only the letters of the first author are taken. E.g, if I set year value to 2002 and author value to A. Surname and B. Surname and C. Surname and D. Surname (in .bib format) I get Sur+02 as citation label.
    I think it would make more sense if it would generate the label as SSS+02 (by taking the first surname letter from the first three authors).
  2. If the labels of two citations match, there is no way to distinguish between them. I've seen solutions where unique letter is added at the end: Sur02a, Sur02b.
@DerDrodt
Copy link
Contributor

That depends entirely on your citation style. The style usually also sets how labels are disambiguated. What style are you using?

@ramojus
Copy link
Author

ramojus commented Dec 18, 2023

Sorry, that was misleading. I'm trying to write a custom csl for typst bibliography and csl has builtin variable citation-label. This is what I'm talking about.

Looking into this https://github.com/typst/hayagriva/blob/main/src/csl/citation_label.rs, the first problem should be very easy to fix, but I'm not sure about the second one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants