iheid-library/iheiddown

geneva syllabus csl renders whole bib entry red instead of just the year

jhollway opened this issue · 4 comments

Since upgrading RStudio to 1.4+ (with citation functionality built in), the geneva-syllabus.csl no longer renders only the year as red, but the whole entry.

Not yet fixed: in this citation style, we still want the year to be in red and ideally contain the DOI or URL link.

For posterity, this is most likely a Pandoc/citeproc issue since a version is bundled with RStudio and changes when updated to RStudio are done. On the problem itself, I have not found a way to alter the citation style to include hyperlinks in the date field. This is can't be done according to this issue via the CSL style and is left to the interpreters. Thus, one lead we could potentially follow is to create our own pandoc filter to add this "hyperlink on date" feature.

For now, due to time constraints, I have decided to use the howpublished attribute in the bibtex file as follows.

@Manual{iheiddown2020,
    title = {iheiddown: A RMarkdown class for IHEID dissertations},
    author = {Hollway, James},
    year = {2020},
    note = {R package version 0.0.1},
    howpublished = "\url{https://github.com/jhollway/iheiddown}",
    url = {https://github.com/jhollway/iheiddown},
  }

Which renders the following citation in the .pdf document with the URL at the end being clickable.
image.png

But howpublished is not an exported field from e.g. Zotero. Either close this issue and open a new one to collect ideas for a future release, or kick this back to someday/maybe.

Kicked back to Someday/Maybe