Does anyone have a solution for ensuring that authors with compound surnames are properly formatted in the typst bibliography from a bib or yaml call?
As an example, I am looking to cite the author Bas van Frassen where “Bas” is his name and “van Fraassen” is his surname.
All of my efforts to format the author field in the bib file have resulted in a typst bibliography that formats the name as: “Fraassen, Bas van”. I was wondering if anyone who has run into a similar problem has found a solution.
You should be able to get this to work with the following yaml code:
vanfraassen:
type: Article # or whatever
author:
name: van Fraassen
given-name: Bas
This uses the sub-field method of specifying a person (check out the hayagriva documentation for all the available fields).
(But I think the author name style might depend on the bibliography style, depending on which you use. So do make sure yours supports prefix-first style.)
One thing I still haven’t figured out is how to make the prefixes get capitalised when only the surname appears, like in (Van Fraassen, n.d.). With the above I can get (van Fraassen, n.d.) with apa style. I suspect that a solution for that will have to involve writing my own .csl template.
I’ve tried the yaml with sub-fields as you provided and it seems to be a citation style problem.
As you said, apa gives the correct “van Fraassen, n.d.”, while the style I have been struggling with, chicago-fullnotes, still outputs “Fraassen, Bas van, n.d”.
I had not considered the capitalisation conventions… I suppose that will be another problem to tackle in the manual post processing.