obsidian-citation-plugin icon indicating copy to clipboard operation
obsidian-citation-plugin copied to clipboard

{{title}} output: First letter of title is capitalized, but every other word is in lowercase

Open wjfeeney opened this issue 1 year ago • 2 comments

macOS 12.4 Zotero 6.0.13 Citations 0.4.4

I exported my Zotero library in BibLaTex format. I selected "Citation Insert Markdown citation," and the output for {{title}} is the first letter of the title is capitalized, but every other word is in lowercase. It looks like you fixed this on Jan 15, 2021 with v.0.4.2, but v.0.4.4 contains the same problem. Would you kindly fix this?

wjfeeney avatar Sep 15 '22 00:09 wjfeeney

It seems to be a problem specific to BibLaTeX. When I changed the citation database format to CSL-JSON, the {{title}} template works fine, though the citation key is entirely different from that of BibLaTeX.

bloaryth avatar Oct 02 '22 01:10 bloaryth

This is not a bug with the plugin but a feature of biblatex. See my comment here which explains this. Another article mentioned in that comment is here which explains the reasoning behind this feature in biblatex. If you want to have the capitalization done programmatically, I am guessing that something like the template mentioned in #61 (that splits the keywords) could be modified to do the capitalization.

orionpilot avatar Oct 02 '22 18:10 orionpilot