What I’m trying to do
I’m using Zotero (w Better Bibtex) and Obsidian (w Zotero Integration).
When I import an article into Zotero, I would like the name of its associated note to be its APA in text citation.
For example: Smith (1991); Smith & Parker (1992); Smith et al. (1994)
Things I have tried
I have Better Bibtex installed in Zotero, and Zotero Integration installed in Obsidian.
I understand that what I need to do is change the name of the output path in Obsidian. I’ve tried even just getting the author and year like this:
02 Journal Article Notes/{{author}}, {{year}}.md
I’ve also tried this suggestion from ChatGPT:
02 Journal Article Notes/{{authorString}}, {{year}}.md
Neither of these worked. Thanks for any help!
Here’s my template for this:
03 - Source notes/Zotero/{%- if creators -%}{%- set filename = creators[0].lastName %}{%- if creators|length == 2 -%}{% set filename = filename + " & " + creators[1].lastName %}{%- endif -%}{%- if creators|length > 2 -%}{% set filename = filename + " et al." %}{%- endif -%}{%- endif -%}{%- if date -%}{% set filename = filename + " (" + date | format("YYYY") + ")." -%}{%- endif -%}{%- if shortTitle -%}{% set filename = filename + " " + shortTitle %}{%- elif title -%}{% set filename = filename + " " + title %}{%- elif bookTitle -%}{% set filename = filename + " " + bookTitle %}{%- endif -%}{{filename | replace(":"," -")}}.md
Paste that in your output path (adjusting the first part as needed), and give it a go 
system
Closed
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.