Open gtritchie opened 2 months ago
CSL doesn't have a "Manual" type, but perhaps "report" would be a better substitute than "article"?
report A technical report, government report, white paper, brief, or similar work distributed by an institution; Also used for manuals and similar technical documentation (e.g. a software, instrument, or test manual);
from https://docs.citationstyles.org/en/stable/specification.html#appendix-iii-types
UPDATE: The code, as currently written, intended to map BibTeX "manual" to CSL "book", but it is case-sensitive and is messed up by "Manual", falling back to the default of "article". So that part, at least, should be a simple fix.
This was reported against the RStudio IDE, see https://github.com/rstudio/rstudio/issues/12768 for full details.
The problems start when the citation returned from R is converted to CSL (Citation Style Language) here:
https://github.com/quarto-dev/quarto/blob/06678d55143a7d6de6c7f0232db0c5dcf8392ca6/packages/editor/src/behaviors/insert_citation/source_panels/insert_citation-source-panel-packages.tsx#L163
The
citeInfo
for the "devtools" example is:It is transformed to the following, changing the
type
and losing thenote
as described in the issue. The type mapping happens in types.ts:bibtextTypeToCSLType()
.