本页有简体中文版。

阅读中文版
ZotLit

Add a property to your Obsidian literature notes

Add a property, such as the journal name or the Zotero tags, to the top of every literature note, and bring it into notes you already have.

Open the Properties tab, select Add a property, and link a property to a Zotero field. Then run ZotLit: Update literature note metadata to bring it into a note you already have.

Properties are the block at the top of a note, shown in Obsidian as the Properties list. Each profile keeps its own rules, and edits save by themselves. ZotLit ships four: title, related, collections, and citekey.

Before you start, open the Default profile and choose a paper, as in Customize a template. This page uses zt.publicationTitle, the journal name from Explore template data.

Open the Properties tab

In the profile editor, select Properties.

The Properties tab of the profile editor, outlined in red, with one row for each of title, related, collections, and citekey

The list shows a row for each property, with the value for your paper. The Note preview shows the same properties.

Add a property

Select Add a property under the list.

The Add a property button under the list of properties, outlined in red

A new row opens at the bottom with Property name, Value, and When the note is updated.

Name the property

In Property name, type journal.

The Property name field of the new row with journal typed in, outlined in red

The row's title changes to journal. The name is the key ZotLit writes at the top of the note.

Choose its value

Leave Value on Zotero field · Liquid. In the box under it, replace zt.title with zt.publicationTitle. A list of fields opens as you type; press Escape to close it.

The value box of the journal row holding zt.publicationTitle, outlined in red

The row now shows the paper's journal, PLOS Computational Biology. The other choices for the value are Fixed text and Rule · JSON-e.

Choose what happens on update

Under When the note is updated, keep Replace the existing value.

The When the note is updated choice set to Replace the existing value, outlined in red

ZotLit then overwrites the property each time a note updates. Add to the existing list adds new items and keeps the ones already in the note. Keep the existing value writes the property only while it is empty. See Merge strategies.

Check the preview

Look at the Properties list in the Note preview.

The note preview with the new row journal, PLOS Computational Biology, outlined in red

The preview shows a row journal with PLOS Computational Biology.

Update a note you already have

New notes get the property when ZotLit creates them. A note that already exists changes only when you update it. Open the note, open the command palette, and run ZotLit: Update literature note metadata.

The command palette with ZotLit: Update literature note metadata outlined in red

The note's Properties list gains journal with PLOS Computational Biology.

The Properties list of the literature note, with the journal and tags rows outlined in red

Add Zotero tags to your notes

Add one more property to keep the tags of a paper in Zotero in the note's tags property. Repeat steps 2 and 3 with these values, then update the note.

InputValue
Property nametags
ValueZotero field · Liquid, zt.tags | obsidian_tag
When the note is updatedReplace the existing value

The tags property row with zt.tags piped to obsidian_tag, outlined in red

Choose Add to the existing list instead to keep tags you added by hand in Obsidian. The obsidian_tag filter turns spaces and other characters into what Obsidian allows in a tag. For example, Zotero tags named Methodology and Open Access become:

tags:
  - Methodology
  - Open_Access

See the obsidian_tag filter reference for every rule.

Next

Work through the template recipes in this order.

Last updated on

On this page