aidenlx / obsidian-zotero-docs

https://obsidian-zotero-docs.vercel.app
MIT License
5 stars 2 forks source link

Q: Links to PDF pages #7

Open mnov88 opened 1 year ago

mnov88 commented 1 year ago

Hi!

First of all, thanks for an -incredible- plugin! It's truly changed my workflow with Zotero!

One issue (or question) with templating: I have tried editing the default single annotation template to include a link to the page in the PDF document (reading the property on 'it'), but I can't seem to get it right.

Any chance I could get it to work? This feature is super important to me, as I have quite long PDF's and annotations, so I usually need to see some more context when copying from them.

Thank you again!

jmiba commented 1 year ago

Hi!

First of all, thanks for an -incredible- plugin! It's truly changed my workflow with Zotero!

One issue (or question) with templating: I have tried editing the default single annotation template to include a link to the page in the PDF document (reading the property on 'it'), but I can't seem to get it right.

In zt-annot.eta add

[<%= it.pageLabel %>](<%= it.backlink %>)

this opens the Zotero PDF reader at the given page.