Obsidian Zotero Integration
GitHub mgmeyers/obsidian-zotero-integration
Plugin to create literature notes from your Zotero database. Annotations can be fetched from the highlights of your PDF.
Zotero Import Template File
- Docs obsidian-zotero-integration/docs/Templating.md at main · mgmeyers/obsidian-zotero-integration
- The Template File I use: GitLab Snippet: Obsidian Zotero Integration Template File ($3679541)
- I added a basic example file below
- Example: Advanced Template Zotero import template for the Zotero integration plugin for Obsidian
Example Template File
Heres a template you can start using.
# {{title}}
Authors:: {{authors}}
Zotero: {{pdfZoteroLink}}
PDF: {{pdfLink}}
### Formatted Bibliography
{{bibliography}}
{% if abstractNote %}
### Abstract
{{abstractNote}}{% endif %}
### Notes
{% persist "notes" %}
{% endpersist %}
### Annotations
{% for annotation in annotations -%}
>[!Annotation|{{annotation.color}}]
>
> {%- if annotation.annotatedText -%}{{annotation.annotatedText}}
> [Page {{annotation.page}}](zotero://open-pdf/library/items/{{annotation.attachment.itemKey}}?page={{annotation.page}}&annotation={{annotation.id}}){% endif %}{% if annotation.imageRelativePath %}{{annotation.imageRelativePath}}{% endif %}{% if annotation.comment %}
>{{annotation.comment}}{%- endif %}
{% endfor %}
Persisting Personal Notes
Note that by using the persist
tag like above you can reserve a section in your template which is not deleted when reimporting the same reference.
Just include this in the imported file.
### Notes
{% persist "notes" %}
{% endpersist %}