Flipping "citation" to "bibliography" in get.js might be unclear
See original GitHub issueHi @larsgw This may be more of a feature request than an issue. Plus, a question that I’m not sure where else to ask.
I notice that you detect styles preceded with “citation-” and map this to “bibliography” in the citation-js code:
https://github.com/larsgw/citation.js/blob/master/src/Cite/get.js#L52
This is confusing, since CSL styles use both <citation>
and <bibliography>
sections. For example: https://github.com/citation-style-language/styles/blob/master/harvard-imperial-college-london.csl
I was hunting through the code trying to work out how to use citation.js to produce inline citations, and this threw me off track. I’m happy using it to produce a whole bibliography, but how can it produce a citation like this in the text of an article:
… as recommended by Wallace, Grommit, Tottington et al (2005).
CSL stylesheets provide the formatting instructions, but I’m unclear how to achieve this with citation-js. If this isn’t implement, is there a way I can query a Cite object and pull the relevant stylesheet information from it?
Many thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Excellent, many thanks @larsgw – I’ll have a look at this in a few days’ time. Really appreciate the pointers and explanation.
citation
support is available inv0.4.0-7
and later.