Skip to content

recreating pandoc [@citation] and @citation style with typst (ideally using the citation with brackets) #4833

Answered by EpicEricEE
danieltomasz asked this question in Q&A
Discussion options

You must be logged in to vote

You can set the cite.form parameter. To render the citation as (Jones et al, 2024), you can set it to "normal" (or don't set it at all as it's the default) and to render it as Jones et al. (2024), set it to "prose". You can't use the @citation syntax though when you want to specify the form, but have to explicitly write #cite(<citation>, form: ...) (or create a custom function to simplify it).

To change the default behavior, you can apply the set rule #set cite(form: "prose"), then you have to specify it each time you want the normal behavior back, e.g.

#set cite(form: "prose")

This citation @jones2024 shows as Jones et al. (2024),
but this #cite(<jones2024>, form: "normal") shows as (Jo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@danieltomasz
Comment options

@danieltomasz
Comment options

@EpicEricEE
Comment options

Answer selected by danieltomasz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants