typst/hayagriva

Name prefixes are not displayed in citations

Opened this issue · 1 comments

Description

The biblatex extended name format supports name prefixes which are supposed to be attached to the family name ("de" within the name "de Vreese" in the case below).

steps to reproduce

The reference file is: references.bib

@article{devreesePopulismExpressionPolitical2018,
  title = {Populism as an Expression of Political Communication Content and Style: A New Perspective},
  author = {family=Vreese, given=Claes H., prefix=de, useprefix=true and Esser, Frank and Aalberg, Toril and Reinemann, Carsten and Stanyer, James},
  date = {2018-10},
  journaltitle = {The International Journal of Press/Politics},
  volume = {23},
  number = {4},
  pages = {423--438},
  issn = {1940-1612, 1940-1620},
  doi = {10/gf3gnj},
}

The .typ file is

@devreesePopulismExpressionPolitical2018

#bibliography("references.bib", style: "apa")

This results in the output:

image

expected output

whereas the expected output would be (according to the CSL style APA 7th edition english in Zotero):

(de Vreese et al., 2018)

de Vreese, C. H., Esser, F., Aalberg, T., Reinemann, C., & Stanyer, J. (2018). Populism as an expression of political communication content and style: A new perspective. The International Journal of Press/Politics, 23(4), 423–438. https://doi.org/10/gf3gnj

notes

  • This behavior is not APA specific but also happens in other citation styles like mla or american-anthropological-association
  • The .bib code above is the result of a "Better Biblatex" export from Zotero. The behavior does not change if the traditional "Biblatex" export is used. The biblatex export would change the author names to:
author = {de Vreese, Claes H. and Esser, Frank and Aalberg, Toril and Reinemann, Carsten and Stanyer, James},

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Hey, since I think this is an important problem, is there anything I can do to get a solution going?

I don't know Rust so unfortunately I can't create a PR. Otherwise, is there perhaps a “workaround” way to change the names in Typst itself? (For example, simply replacing “Vreese” with “de Vreese” in the citations)? This is my first article with Typst and I really like the language, but this problem is currently preventing me from actually using it.