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.
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
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
}