Citation style APA 7th edition: how to change & to 'und' in running text?

Hi to everybody

We writing our thesis with typst and just now I figured out a problem with the citation in the running text.
How can I replace the & with ‘and’ in a citation in APA style in the body text? For example, “Muller & Openheimer” appears instead of “Muller and Openheimer” in the running text of typst. If I read the APA specs the ‘and’ is the correct way and only in parenthesis it’s the ‘&’ sign.

Thanks for any help
regards
Mike

1 Like

Use any cls you wish Zotero Style Repository, download and use it with bibliography-style: "apa-no-ampersand.csl" within your document definitionj or #set bibliography(style: "apa-no-ampersand.csl") before #bibliography("references.bib") in your body , here are the references Bibliography Function – Typst Documentation

Custom cls will only work for 0.12

1 Like

Hi,

Typst uses Hayagriva for citation stuff, which relies on the Citation Style Language (CSL) citation styles from here.
There is a open issue about your problem here for Typst/Hayagriva and here for CSL (I didn’t check if the problem is with CSL or Hayagriva).
Anyway, @danborek answer works, but with it the ampersand gets changed to ‘and’ in both narrative and parenthetical citations. In the comments on the Typst/Hayagriva issue, the user poopsicles added a workaround which changes it only for narrative citations.

#show cite.where(form: "prose"): it => {
  show "&": "and"
  it
}
1 Like

Welcome to the forum @Mike_Schmid ! Please post questions in Questions in the future, and make sure your title contains a question, per our guidelines: How to post in the Questions category. Thanks! :typstguy:

Thank you very much for this very precisely solution…

regards
Mike

2 Likes