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

Alphanumeric produce different cite keys in text and bibliography #255

Open
1 task done
tkw1536 opened this issue Dec 8, 2024 · 0 comments
Open
1 task done

Alphanumeric produce different cite keys in text and bibliography #255

tkw1536 opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tkw1536
Copy link

tkw1536 commented Dec 8, 2024

Description

I am using the alphanumeric citation style. When citing two entries from a bib file that would produce the same key (e.g. same author and same year), they render with an a and b suffix where they are cited. However, in the bibliography, they appear without the same suffix.
Without manual tweaking, with #show rules and the like I was expecting the same label to be used in both places.

As a minimal example, consider the following bib file:

@article{first,
  title={First Thing},
  year={2024},
  author={Jane Doe}
}

@article{second,
  title={Second Thing},
  year={2024},
  author={Jane Doe}
}

The alphanumeric cite styles assigns both articles the key Doe24.

Using the following main file:

#set cite(style: "alphanumeric")

I cite the first thing #cite(<first>) and the second thing #cite(<second>). 

#bibliography("example.bib")

The pdf renders as:

Screenshot 2024-12-08 at 12 54 30

Notice how the keys listed in the main body are [Doe24a] and [Doe24b] whereas in the bibliography section they are both shown as [Doe24]. There also appears to be an extra an and b at the end of the entries.

I did find two related issues, but neither of them seem to cover exactly this.

Reproduction URL

https://typst.app/project/rY9ipQQ8EYDQ3hjCEXMy22

Operating system

macOS

Typst version

  • I am using the latest version of Typst
@tkw1536 tkw1536 added the bug Something isn't working label Dec 8, 2024
@PgBiel PgBiel transferred this issue from typst/typst Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant