#Superfluous comma
42 messages · Page 1 of 1 (latest)
Adjacent citations are merged together. This is really a misuse of cite, and the correct way would be to pick a citation style that already looks like what you want (or edit the CSL).
But @tranquil obsidian may want to weigh in
Thanks! What if my regular citation style is (Author Year) and I explicitly want (vgl. Author Year) in the Text?
You can set the citation style in the cite call
So, can I define my own style, e.g. "vgl" in a CSL and use #cite(<harry>, form="vgl")?
Arguably it's a bit clunky that customization has to happen in CSL, but it is what it is.
Yes
Good to know, thanks. It might make sense to not only have supplement (which is basically a suffix) but also something like prefix
agreed
Also, stating in the docs that the possible form values are defined in the CSL might be helpful, though it might seem obvious to some people.
The form isn't defined in the CSL actually
CSL doesn't really have a concept that maps 1-1 on this
The forms are built into hayagriva, our CSL processor
Huh, then what would be the most idiomatic solution for my use case?
I think maybe the terms form and style are intermingled here?
You can define your own CSL style and do #set cite(style: "mystyle.csl")
Sorry for mixing up the terms. However, the point still stands: How can I have a regular #cite which outputs (Author Year) and a nice way to get (vgl. Author Year)?
By doing what was described in the last message
But @tranquil obsidian just wrote that form is not defined in the CSL? I'm confused
The default form is what the CSL spits out
What you want to change is the style, not the form
(I didn't notice that you wrote form earlier)
I still don't see how I can have both version of citation in one CSL file (since form is apparently not customizable) and use them convienently in the text
You can't have them both in one CSL file. You would use two different ones
So everytime I want vgl. in my text I have to switch the entire cite style?
You could also let vgl(..args) = [vgl. #cite(..args)]
Well, it would be as easy as #let citev = cite.with(style: "vgl.csl")
That wouldn't work because of parentheses
oh, well then yeah I guess
(I meant to add an extra letter at the end)
Thanks, that would kind of work. I'm still surprised that I actually have to maintain two CSL files for such a seemingly insignificant requirement.
Like I said, it's clunky right now. But it'll almost definitely improve over time
I can't type today
Alright. Thank you very much everyone 🙂
(The automatic comma between adjacent cites still bugs me for some reason)
If I want a comma, I write a comma
This is also controlled by the CSL
Ooh, that is interesting!
Its to be able to merge them like [1-3, 6, 9] etc