hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.09k stars 81 forks source link

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

Open wjfeeney opened 2 years ago

wjfeeney commented 2 years ago

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?

bloaryth commented 2 years ago

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.

orionpilot commented 2 years ago

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.