Skip to content

Example workflow: Zotero integration

Ryota Ushio edited this page Feb 26, 2024 · 3 revisions

My Template (note: I'm using the ZotFile addon)

You can ignore all the properties but PDF and citet.

Title template: Literature notes/{% set n_authors = 0 -%}{%- for creator in creators -%}{%- if creator.creatorType == "author" -%}{%- set n_authors = n_authors + 1 -%}{%- endif -%}{%- endfor -%}{%- if n_authors == 1-%}{%- set authorString = creators[0].lastName -%}{%- elif n_authors == 2 -%}{%- set authorString = creators[0].lastName + " & " + creators[1].lastName -%}{%- else -%}{%- set authorString = creators[0].lastName + " et al." -%}{%- endif -%}{{title}} ({{authorString}}, {{date | format("YYYY")}})/{{title}} ({{authorString}}, {{date | format("YYYY")}}).md

Then I set up PDF++'s display text format like this:

image

with the PDF property set here:

image