typst / hayagriva

Rusty bibliography management.
Apache License 2.0
289 stars 44 forks source link

When using cite and form: "prose" with Chicago notes style, an extraneous parenthesis is added #138

Open tomwestland opened 4 months ago

tomwestland commented 4 months ago

Description

One use case for the form:"prose" feature in cite that I would use often is to create text around the reference in a footnote, particularly before a citation since supplement can only go after the text. I'm using Chicago fullnotes style, but this bug also occurs using the regular Chicago notes. When I use something like this:

#footnote([This is an example of the behaviour: #cite(<madje2022programmable>, form:"prose")])

everything works as it should, except the output puts an unwanted parenthesis before the title of the work:

Screen Shot 2024-02-26 at 12 16 10 am

This also occurs when the full prose citation is in the main text, not a footnote.

Reproduction URL

No response

Operating system

Web app

Typst version

Tom4sCruz commented 4 months ago

Could I contribute towards fixing this bug?

laurmaedje commented 4 months ago

@Tom4sCruz Sure! I've transferred the issue to the hayagriva library as that's where the bug most likely is.

tomwestland commented 4 months ago

Thanks so much—and thanks for everything you've done for Typst!