# Zotero Integration – Import Templates?

**URL:** <https://forum.obsidian.md/t/zotero-integration-import-templates/36310>\
**Category:** Workflows & Templates\
**Tags:** templates\
**Created:** [April 22, 2022, 12:59pm UTC](https://forum.obsidian.md/t/zotero-integration-import-templates/36310 "2022-04-22T12:59:55Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Zocahontas](https://forum.obsidian.md/user_avatar/forum.obsidian.md/zocahontas/32/21657_2.png) [@Zocahontas](https://forum.obsidian.md/u/Zocahontas)\
**Post date:** [July 25, 2022, 7:59pm UTC](https://forum.obsidian.md/t/zotero-integration-import-templates/36310/12 "2022-07-25T19:59:04Z")

</div>

Here is the section I use specifically for annotations, it is pretty much @mgmeyers template but with the added benefit of working with @Chetachi [Highlightr](https://github.com/chetachiezikeuzor/Highlightr-Plugin) plugin:

```auto
## Annotations
{% persist "annotations" %}

{% set annots = annotations | filterby("date", "dateafter", lastImportDate) -%}

{% if annots.length > 0 %}
{% for annot in annots -%}
{%- if annot.annotatedText %}
- <mark style="background: {{annot.color}}">{{annot.annotatedText | nl2br}} </mark>
{%- endif -%}

{%- if annot.imageRelativePath %}
![[{{annot.imageRelativePath}}]]
{%- endif %}

{%- if annot.comment %}
>[!annot] Comment
>{{annot.comment | nl2br}}
 {%- endif %}

{%- endfor %}
{%- endif %}
{%- endpersist %}

```

It pulls the color hex code from the annotation data and uses that to determine the highlight color. I think you need css-inline enabled in Highlightr to use this.

So you get something that looks like this:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/0/5/05a4e58bdc4140c853735835a96abb7c3eea4afa.jpeg)

Sidenote: I noticed that any document with pen annotations, like handwritten notes from using an apple pencil on the zotero ios app, will completely fail to import. Is this a known issue? If not, is there somewhere I should post about this?

---

_[View the full topic](https://forum.obsidian.md/t/zotero-integration-import-templates/36310)._
