I have noticed some hard to predict behavior when working with multiple citation styles in adjacent citations. See for example:
#let bibtex-file = bytes("
@article{Smith2023,
author = {Smith, John and Doe, Jane},
title = {The Art of Mock Bibtex Entries},
journal = {Journal of Fictional Research},
volume = {10},
number = {2},
pages = {123--145},
year = {2023},
publisher = {Imaginary Press}
}
@book{Jones2022,
author = {Jones, Emily},
title = {A Guide to Non-Existent Citations},
publisher = {Scholarly Dreams Publishing},
year = {2022},
address = {New York, NY},
edition = {1}
}")
A citation @Smith2023, another one @Jones2022,
and a prose citation: #cite(<Jones2022>, form: "prose"). \
This works fine.
Now for the weird part... \
Why is the second citation below "year" instead of "normal"? \
Why are there brackets? \
#cite(<Smith2023>, style: "springer-basic-author-date") #cite(<Smith2023>)
Another example, the second citation is "prose" instead of "normal", \
and a comma is added automatically:\
#cite(<Smith2023>, style: "springer-basic-author-date", form: "prose")
#cite(<Smith2023>, form: "normal")
#bibliography(bibtex-file, style: "nature")
This outputs:
A citation¹, another one², and a prose citation: Jones, E. ².
This works fine.
Now for the weird part…
Why is the second citation below “year” instead of “normal”?
Why are there brackets?
(Smith and Doe 2023, 2023)
Another example, the second citation is “prose” instead of “normal”,
and a comma is added automatically:
Smith and Doe (2023), Smith and Doe 2023
I’ve seen that depending on which citations styles you put next to each other, you get different results. I can’t really infer a consistent set of rules by playing with it.
What is happening here?
Side note…
Why am I doing this? I wanted to slightly tweak the “nature” citation style such that the “prose” form includes the year as well. I’ve managed to break this behavior by putting an invisible box[]
in between:
#{cite(<Smith2023>, style: "springer-basic-author-date", form: "prose")
box[]
cite(<Smith2023>)}
Which produces: Smith and Doe (2023)¹