Zotero -> zotfile -> mdnotes -> obsidian -> dataview Workflow

I meant this part specifically:

What kind of sticky notes are you using? If you share a screenshot of that we might be able to tell if Zotfile will recognize it.

This is an example of is what this looks like and what works for me in Linux:

1 Like

it says ‘sticky note’. I can’t find pop up note like what is in your post

It looks like this:

image

image

It’s content is only visible in side pan for comments

Just wanted to refer to my latest posting: pdf.js is integrated in zotero (amazing NEWS!)

Could change workflows…

1 Like

Be careful. Some of the beta is reportedly unstable, and Mdnotes is not quite set up to accept it yet.

I’m patiently waiting, though!

1 Like

@Markus0000 I have replied to your post with my current observations of the beta. For those on this thread, here is what to keep in mind:

1 Like

A post was merged into an existing topic: Zotero with integration of pdf.js - already available in Beta

After a bit of experimentation, I managed to get the Zotero-Zotfile-MdNotes workflow (with a patch-up script that does some regex on the MdNotes export) to do what I needed. A few things that may interest others playing with the workflow described by @Cat (they/them) in the pinned post:

  • the Admonition plugin is helpful to hide metadata and other information by setting the default as “closed”
  • I have assigned a colour to highlight keywords and used some regex to build an index of the topics covered
  • it is possible to add a link in the literature note to the local file as well as any version stored on the cloud by giving it the same name as the bibtex key (and a bit of regex), thus bypassing zotero in accessing the pdf and making it accessible also from the mobile version
  • In addition to presenting the annotations next to the original piece of highlighted text, I find it helpful to gather all the comments in a separate block (created with the same manipulation of the md file)
13 Likes

This is great! I would really like to poach your setup for my own use. Can you expand some regarding at what point you deviated from and/or appended to the setup instructions above?

I’ve mostly followed the setup in the post. The only main difference is that I configured one highlighted colour (Magenta in my case) to identify keywords that I wanted to collect in a separate section. I’ve tweaked the Zotfile setting so that all keywords highlighted in that colour would be given a prefix, which I later removed. Once I have exported the attachment (with zotfile) and created the note (with mdnote), I run a hacky script (written in R because that is the only language I know, but the same can be done in most other programming languages) that edit the md file (e.g. move the comments made on a highlighted section at the beginning of the highgliht rather than at the bottom, gather all the keywords highlighted in magenta in a separate block)

1 Like

@Cat Thank you for sharing this creative workflow! I try to rebuild it, but I still meet one problem just as below.
The blockquote style of annotation note is correct in Zotero, but incorrect in Obisidian, in fact, it has been incorrect since step 3.2.3 all the time…
I would be grateful if you could give me some advice on it :sweat_smile:

Which version of mdnotes are you using? it needs to be the 0.2.0 alpha 4 build (Releases · argenos/zotero-mdnotes · GitHub) for this to work

1 Like

Thank you very much :blush: . my version is 0.1.3, I will try it again :blush:

I tried PDF Expert but found Highlights to bee much much better for me.

I have now set this up, thanks for the useful guide.

Though I cannot seem to get {{yamlbooktitle}} to populate at all. Any ideas?

1 Like

This setup (and mdnotes generally) are a godsend for keeping my research together. As a finishing touch, I set up Zotfile to format extracted annotations in a way that I can pair with the Admonitions plugin. For instance, following the OP, I have cyan highlights tagged as “Important,” and I have a matching custom Admonition so the annotations appear with a nice, colorful icon, and I can use the Admonition copy button to quickly copy quotations as I’m writing.

Really awesome writeup :smiley:

I found that it was slightly confusing for me in regards to the templates, so I think the usual workflow is to extract annotations from the pdf using zotfile, then go to the main zotero item (not the extracted Zotero note item but the parent) then do full export of the note in order to get the metadata to work.
For my Mdnotes Default Template.md file I use:

---
aliases: 
	- {{title}}
	- {{citekey}}
---
type:: #Source #Paper
authors:: {{author}} 
source:: {{pdfAttachments}}
year:: {{year}}

## Abstract

{{abstractNote}}


## Summary


## Notes

{{notes}}

so I usually fill in the summary when I import the note into obsidian, hence it is just an empty field here.

For my Zotero Note Template.md I just have:

{{noteContent}}

In terms of annotations, for me:

  • yellow is the key contribution of the work / findings / key argument
  • cyan is talking about the field of the problem or approach
  • magenta is experimental stuff i might want to look into doing too
  • green is to follow up literature

I followed OP for the rest, so my colorCategories in Zotero are:
{"Black": "", "White": "", "Gray": "[[Argument]]:", "Red": "[[Disagreement]]:", "Orange": "[[Critique]]", "Yellow": "", "Green": "- [ ] #litreview", "Cyan": "[[Field]]", "Blue": "[[Confusion]]:", "Magenta": "[[Useful for Research]]:"}


I have had issues with the exported note having escaped characters like

\[\[Field\]\] and \- \[ \] although I have disabled HTML conversion in obsidian and am using mdnotes 0.2.0-alpha4. Is there a setting I am missing?

2 Likes

Trying to figure out Zotero so I really appreciate this thread. So before I ask anything let me say TY very much for posting all this info

You can also choose to sync your library through a different cloud storage

If I plan to use Dropbox for my storage do I still set up the Zotero Sync as outlined in step 1.2?

  1. Once you have an account, if you don’t plan on using zotero sync, unselect “Sync full-text context” as seen in the screenshot

I do not see the “Sync full-text context” in any screenshot

So if I am wanting Dropbox at some pt I would go to

If you’re not planning on using zotero file storage but want to use another cloud that isn’t WebDAV, go to the “Advanced” Tab, and then to the “Files and Folders” subtab (screenshot 04)

I am just not sure about the steps listed above. I am a noob to zotero & a non academic so forgiveness if these things seem obvious

TY in advance for all the help

Zotero sync is need to sync metadata (the storage is for syncing zotero items (like authors, year and other things), even if you use dropbox for syncing pdf
Here is the tutorial how to set up zotero and zotfile This is how I did it: created the best reference manager set up for research & writing – Natural Resource Ecology Laboratory at Colorado State University

1 Like

In the mdnotes preferences, do you have Wiki Style selected under “Internal Links”?

Thank you so much for the link
I will check it out

Sorry for the delayed response. Seems there is something wrong with my notifications for the forum as I was not aware of the reply till I logged in

Regardless TY for the help :))