# Zotero Integration — Multiple articles but single color annotations

**URL:** <https://forum.obsidian.md/t/zotero-integration-multiple-articles-but-single-color-annotations/116818>\
**Category:** Help\
**Created:** [August 3, 2026, 7:38am UTC](https://forum.obsidian.md/t/zotero-integration-multiple-articles-but-single-color-annotations/116818 "2026-08-03T07:38:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hashirama](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/h/9e8a1a/32.png) [@Hashirama](https://forum.obsidian.md/u/Hashirama)\
**Post date:** [August 3, 2026, 7:38am UTC](https://forum.obsidian.md/t/zotero-integration-multiple-articles-but-single-color-annotations/116818/1 "2026-08-03T07:38:30Z")

</div>

### What I’m trying to do

Extract annotations of single color from multiple articles in one import, while excluding other colors.

Purpose :- useful for summarizing findings across dozens of articles w/o going through each individual extracted note.

### Things I have tried

Though I was successful using persist function, and re-running the same import function across multiple zotero articles to append annotations. I am unable to loop articles and so I can just run it once.

What I Noticed : Though the plugin can pull multiple articles when using normal note templates, while using the persist function once causes “_only the last file_” selected in multiple selection to be written in output file.

Code below shows I used Author-Date format to differentiate extracted annotations as well as CSS formatting to reflect their original annotation color.

```markdown
### Yellow Notes

{% persist "notes" %}

# {% if creators | length !=1 %}{{creators[0].lastName}} et al. {{date | format ("YYYY")}}{%else%} {{creators[0].lastName}} {{date | format ("YYYY")}}
{% endif%}

{% for annotation in annotations%}
{%- if annotation.colorCategory == "Yellow" -%}
<span class="customZot-{% if annotation.color %}{{annotation.colorCategory}} {% endif %}">{{annotation.annotatedText | escape}}</span> 

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

```

Below is the final result I want using _ **one run** _ of import function. (Though I can using multiple re-runs to get the same result.)

 ![Screenshot 2026-08-03 at 1.04.01 PM](https://forum.obsidian.md/uploads/default/original/3X/c/b/cb9bede1ccf47dce9acbe032889868afdc2fd8f5.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [November 1, 2026, 7:38am UTC](https://forum.obsidian.md/t/zotero-integration-multiple-articles-but-single-color-annotations/116818/2 "2026-11-01T07:38:48Z")

</div>

Closed on November 1, 2026, 7:38am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
