Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeCitation with citationsPre and citationsPost arguments in v.3 #105

Open
StefanHagel opened this issue May 6, 2021 · 2 comments
Open
Assignees
Labels

Comments

@StefanHagel
Copy link
Contributor

Citations in document context used to be created by

List<Citation> makeCitation(CSLCitation citation, List<CitationIDIndexPair> citationsPre, List<CitationIDIndexPair> citationsPost)

Will this be included in v.3 or am I misunderstanding something essential about how it now works?

Thanks and all best,
S.

@michel-kraemer
Copy link
Owner

Are you talking about the makeCitation method itself or only about the variant that accepts citationPre and citationPost? There will be a makeCitation method in v3, but I have to admit that I didn't fully understand the purpose of citationPre and citationPost and don't know how to correctly implement them in the new pure Java processor. That's the reason why I deprecated these parameters for the time being.

I would be very happy if you could send me an example where these parameters are used, so I can understand them and correctly implement them. Thanks!

@StefanHagel
Copy link
Contributor Author

I'm talking about the variant with citationPre and citationPost.
These are indispensable for correctly formatting the references in the context of a document. E.g., some styles (I guess mainly in the Humanities) use backward references such as 'op. cit.' and therefore each reference needs to know which references came before (and often in which footnote, information the software might have to supply). I think this is done in CSL (mainly?) with the position attribute within the clauses in a choose element. That' also where near-note-distance comes into play.
Does this help?

Here's how CSL developers noticed this would be required: https://discourse.citationstyles.org/t/op-cit/456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants