Question about linked BibTex file and formatting
Posted: Sun Jan 30, 2022 11:24 pm
Hi all.
Let me start by saying that I'm a little out of my depth here, so apologies if the solution is under my nose.
I've been using the BE function to link, and update via shift-CMD-L, a .bibtex file. Fantastic function, by the way. I love that I was able to customize the output to include notes and short titles via the Format Manger.
If I inspect the BibTex file with a text editor, it shows the title with what looks to me like ordinary title capitalization practices, like:
title = {Paranoid Reading and Reparative Reading}
If I use the same .bibtex file to generate a pandoc-style citation in Zettlr, and convert to Doc (using Pandoc), the formatting is perfect, with the three Rs of Reading, Reparative and Reading capitalized.
However, if I use the Obsidian citations plug-in to make markdown literature note in Obsidian, only the first letter is capitalized in the output, which comes out as "Paranoid reading and reparative reading".
I use the following syntax to obtain the title of the markdown literature note from the .bibtex file that shows [last name], [year], [short title]:
{{#each entry.author}}{{#if @first}}{{#if this.family}}{{this.family}}{{#unless @last}} et al.{{/unless}}{{else}}{{../authorString}}{{/if}}{{/if}}{{/each}}, {{#if year}}{{year}}{{else}}no date{{/if}}, {{#if entry.titleShort}}{{entry.titleShort}}{{else}}{{title}}{{/if}}
If I manually modify the .bibtex file to read:
title = {Paranoid {Reading} and {Reparative} {Reading}}
then the Obsidian plug-in outputs the text in the correct way, with capitals.The Pandoc conversion still works as expected.
This would seem to suggest that if I want proper capitalization I would have to get Bookends to produce a .bibtex file that has each capitalized word surrounded by a set of curly brackets. Is there a way to do that? (I noticed there is an option to do that in the BetterBibTex plugin on Zotero, fwiw)
Alternatively, can anyone with knowledge of the Obsidian plug-in and the system it uses maybe suggest if there is a way to ensure on their end that the formatting is retained?
Or, worst case scenario, does anyone know of a reasonably easy way to automate the adding of curly brackets directly to the text file?
Thank you!
Let me start by saying that I'm a little out of my depth here, so apologies if the solution is under my nose.
I've been using the BE function to link, and update via shift-CMD-L, a .bibtex file. Fantastic function, by the way. I love that I was able to customize the output to include notes and short titles via the Format Manger.
If I inspect the BibTex file with a text editor, it shows the title with what looks to me like ordinary title capitalization practices, like:
title = {Paranoid Reading and Reparative Reading}
If I use the same .bibtex file to generate a pandoc-style citation in Zettlr, and convert to Doc (using Pandoc), the formatting is perfect, with the three Rs of Reading, Reparative and Reading capitalized.
However, if I use the Obsidian citations plug-in to make markdown literature note in Obsidian, only the first letter is capitalized in the output, which comes out as "Paranoid reading and reparative reading".
I use the following syntax to obtain the title of the markdown literature note from the .bibtex file that shows [last name], [year], [short title]:
{{#each entry.author}}{{#if @first}}{{#if this.family}}{{this.family}}{{#unless @last}} et al.{{/unless}}{{else}}{{../authorString}}{{/if}}{{/if}}{{/each}}, {{#if year}}{{year}}{{else}}no date{{/if}}, {{#if entry.titleShort}}{{entry.titleShort}}{{else}}{{title}}{{/if}}
If I manually modify the .bibtex file to read:
title = {Paranoid {Reading} and {Reparative} {Reading}}
then the Obsidian plug-in outputs the text in the correct way, with capitals.The Pandoc conversion still works as expected.
This would seem to suggest that if I want proper capitalization I would have to get Bookends to produce a .bibtex file that has each capitalized word surrounded by a set of curly brackets. Is there a way to do that? (I noticed there is an option to do that in the BetterBibTex plugin on Zotero, fwiw)
Alternatively, can anyone with knowledge of the Obsidian plug-in and the system it uses maybe suggest if there is a way to ensure on their end that the formatting is retained?
Or, worst case scenario, does anyone know of a reasonably easy way to automate the adding of curly brackets directly to the text file?
Thank you!