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.04k stars 77 forks source link

Capitalization not updated in Obisidian for non-existing notes. #183

Closed dhatereki closed 1 year ago

dhatereki commented 1 year ago

OS: Windows 11 Obisidian Version: 0.15.9 Citations Plugin Version: 0.4.4

While fixing my bibtex output from EndNote I noticed that even for notes/references not yet created or linked in Obsidian, the plugin does not follow updated title capitalizations. Example:

Bibtex export:

title = {A Short History of Silence: The Epistemological Politics of Architectural Historiography}

After saving bib file, restarting Obsidian, reference shows up as follows (this reference has not been linked or added as a note before but only bib file updated to fix titles):

image

Title after creating new note using plugin:

Title:: A short history of silence: The epistemological politics of architectural historiography

I have re-exported bib file, restarted Obisidian, checked all fields in bib file manually, and even relinked file in citation plugin settings so it reads the file again. It has the newer references but with older title names with wrong capitalization.

orionpilot commented 1 year ago

This isn't a bug from Obsidian or the plugin but how the bibtex file is setup and read in the first place. Only the first word is automatically capitalized. If you want to force capitalization in the titles, specific words, or just the letter you want the case to be kept, they need to be {wrapped} in curly braces. There is more about this online that you can look but here is one example.

In your example that would mean: {A {S}hort {H}istory of {S}ilence: The {E}pistemological {Politics} of {Architectural} {Historiography}} would keep the capitalization of the words/letters in curly braces.

dhatereki commented 1 year ago

This isn't a bug from Obsidian or the plugin but how the bibtex file is setup and read in the first place. Only the first word is automatically capitalized. If you want to force capitalization in the titles, specific words, or just the letter you want the case to be kept, they need to be {wrapped} in curly braces. There is more about this online that you can look but here is one example.

In your example that would mean: {A {S}hort {H}istory of {S}ilence: The {E}pistemological {Politics} of {Architectural} {Historiography}} would keep the capitalization of the words/letters in curly braces.

Thank you, looking at other imported names this makes sense. Since even phrases within quotes are treated different (with exact capitalization). Will try seeing how to better export bibtex export from Endnote.