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

CSL: et-al-subsequent-min and et-al-subsequent-use-first not respected #111

Open
1 task done
ignitedPotato opened this issue Dec 6, 2023 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@ignitedPotato
Copy link

Description

When using CSL files that specify usage of "et al" only for subsequent citations, shortening of citations never happens.

Example bib:

@book{baduraZeitenwendeArbeitGesund2023,
  title = {{Zeitenwende - Arbeit gesund gestalten}},
  editor = {Badura, Bernhard and Ducki, Antje and Meyer, Markus and Baumgardt, Johanna and Schr{\"o}der, Helmut},
  year = {2023},
  series = {{Fehlzeiten-Report}},
  number = {2023},
  publisher = {{Springer Berlin}},
  address = {{Berlin}},
  isbn = {978-3-662-67514-4 978-3-662-67513-7},
  langid = {german}
}

Example Text:

#lorem(20) @baduraZeitenwendeArbeitGesund2023[S. 437]
#v(1em)
#lorem(30) @baduraZeitenwendeArbeitGesund2023[S. 437]

Bib style is deutsche-gesellschaft-fur-psychologie.csl which includes et-al-subsequent-min and et-al-subsequent-use-first directives:

citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1"

But output is:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat. (Badura, Ducki, Meyer, Baumgardt & Schröder, 2023, S. 437)

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri. (Badura, Ducki, Meyer, Baumgardt & Schröder, 2023, S. 437)

Expected output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat. (Badura, Ducki, Meyer, Baumgardt & Schröder, 2023, S. 437)

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri. (Badura et al., 2023, S. 437)

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst
@ignitedPotato ignitedPotato added the bug Something isn't working label Dec 6, 2023
DerDrodt referenced this issue in DerDrodt/citationberg Dec 8, 2023
Will be used to fix typst/typst#2874
@laurmaedje laurmaedje transferred this issue from typst/typst Dec 15, 2023
@nps1ngh
Copy link

nps1ngh commented May 11, 2024

Hi,

what else needs to be done to fix this? It seems that typst/citationberg#3 alone is insufficient.
Would love to help, where I can 😃

I checked as follows:
typst/citationberg#3 is included in citationberg 0.3.0 (corresponding commit)
hayagriva 0.5.2 depends on citationberg 0.3.0 (Cargo.toml)
typst 0.11.0 depends on hayagriva 0.5.2 (Cargo.toml)

EDIT: Seems to work in typst 0.11.1 😄

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

2 participants