Available for beta testing: Note templates for PDF annotations
In the latest beta, we've added the ability to customize how PDF annotations are added to notes. See Note Templates for more info.
In addition to making it possible to change how annotations are displayed within Zotero notes, this should help with some of the workflows people have requested when using Markdown export. For example, if you adjust the template to place highlighted text within a blockquote, the exported Markdown will include
We'll be making refinements to the default templates and adding additional capabilities in future versions. If there are specific things you'd like to see, let us know.
In addition to making it possible to change how annotations are displayed within Zotero notes, this should help with some of the workflows people have requested when using Markdown export. For example, if you adjust the template to place highlighted text within a blockquote, the exported Markdown will include
> This is a quote
as expected.We'll be making refinements to the default templates and adding additional capabilities in future versions. If there are specific things you'd like to see, let us know.
The only thing I haven't been able to do is to set the note title to be equal to parent item title. As far as I can tell, the {[title}} property is just "Annotations". This is important because when exporting to Markdown default filename is equal to note title.
I will try it and see how it works.
Can this be extended to the way left pane annotations exports by drag and drop ?
Par contre, il y a quelque-chose que je ne comprends pas ou que je ne trouve pas.
Avec Zotfile, on pouvait exporter les métadonnées (type de document, auteur, année..) et les notes.
J'avais pris l'habitude d'exporter les notes et les infos dans deux fichiers .md, puis de les fusionner dans un obsidian.
Je ne retrouve pas la fonction permettant d'exporter les métadonnées. J'ai vu qu'on peut imprimer un rapport, mais je n'ai pas trouvé la fonction pour l'exporter en markdown.
Idée de ce qui faciliterait mon workflow :
- Possibilité de créer un modèle commun qui intègre les métadonnéees en titre (clef de citation, type de document, auteur...)
--> Via le menu "Ajouter une note" -> ajouter une note avec métadonnées
Ou
Exporter le rapport de document en markdown
What I am missing is the possibility to give a formated text to the title as "Heading 4" (nor as h3). Btw, Zotero does not include the /h4 format.
Normally, when creating a new note, and before including annotations, I write a first line to be the title of the note, but it does not apply the format type (Heading 4, in my case). I tried to modify the Template of the title, but it does not work.
annotations.noteTemplates.title
template is used when you create a note from all of an item's annotations, and using h3 or h4 works fine (the latter even though it's not an option in the formatting drop-down). If you're just talking about options when editing a note manually, that's unrelated to this functionality and you should start a new thread.1、『《h2》 {{highlight}}《/h2》』 : the link will be lost
2、『{{if tags}} #{{tags join=' #'}}』:the '#' will be added to the note even though the tag is null
https://www.zotero.org/support/note_templates says that there are {{highlight}}, {{citation}}, {{comment}}, {{color}}, {{tags}}.
If I export markdown, I also get the various item keys:
([...](zotero://select/groups/123/items/AAA)) ([pdf](zotero://open-pdf/groups/123/items/BBB?page=1&annotation=CCC))
It would be amazing to have these as variables: {{group_key}}, {{item_key}} (parent), {{file_key}}, and {{annotation_key}}.
We'd also really like
- {{user}}
- {{created}}
- {{edited}}
- {{physical_page}}
- {{logical_page}}
I am not concerned whether the user is the user who edited last/created - any would be time. Same with time created and time edited: If it's available, we'll have it.
Finally, I do think that some more colours would be good, as well as choice over the colours (that goes for the Zotero tag colours as well) - that's an accessibility thing too, and we'd love to be able to select our own friendly colours.
The other thing that I would find amazing is if the template text could be copied straight from the note in the left panel of the PDF editor, using that template. We'd use that all the time when citing.
@bjohas: We're not planning to add internal things like that as variables. This is an enhanced rich-text editor, and we think the appropriate place for internal keys is in the internal metadata. The built-in Markdown export will include them in the links it creates, and a plugin like zotero-mdnotes could use them to support additional workflows. The logical page is included in the citation, and the physical page is included in the metadata for use in the exported link. That's already supported in the latest beta.
I'm on 6.0-beta.5+8b7afcf24. On the left panel, in the PDF editor, when I right-click on a note (or use the overflow), I get 'add to note', colours, 'edit page number', 'edit highlighted text', 'delete'. Should there be an export there?
I hear what you are saying on {{group_key}}, {{item_key}} (parent), {{file_key}}, and {{annotation_key}}. However, .... we have open libraries, and we would want to change the link from zotero://select/groups/4578719/items/AFHQ3VQL to point to that open library, for example: https://www.zotero.org/groups/4578719/decolonising_edtech/items/AFHQ3VQL. We're also using Kerko (e.g., https://docs.opendeved.net/lib/ and https://docs.edtechhub.org/lib/) and have
https://github.com/edtechhub/zotero-edtechhub to connect our libraries to kerko.
Of course, we could set this up as a zotero-md workflow, but... we're looking at this for the 'average user' and being able to just copy-paste items straight from the note (or even better from the PDF editor) would be really really cool. For most [non-technical] people, exporting the note, then copying the text, is just too much effort for a regular workflow. So for us, being able to customise the template with {{group_key}}, {{item_key}} (parent), {{file_key}}, and {{annotation_key}} would be really really powerful.
<p><font color='{{color}}'>{{highlight}}</font></p>
join
parameter, so, sure — you would set it to]] #[[
and add the appropriate strings before and after.<ul>
<li>
<p>{{highlight quotes='true'}} {{citation}}
{{if tags}} #[[{{tags join=']] #[['}}]] {{endif}}</p>
{{if comment}}
<ul>
<li><blockquote> {{comment}} </blockquote>
</li>
</ul>
{{endif}}
</li>
</ul>
However, when I use quick copy and paste afterwards, the bracket is escaped to \[, like this:
#\[\[tag one\]\] #\[\[tag two\]\] #\[\[tag three\]\]
How to change the setting of quick copy, then get the original string like this, I can then paste into external editors, such as Roam?
#[[tag one]] #[[tag two]] #[[tag three]]