@PedroSilva In Zotfile’s documentation it mentions which option to use to format the colours, i.e. you need to add the wildcards to formatAnnotationHighlight
:
For example, change
formatAnnotationHighlight
to<p style="background-color:%(color);">"%(content)" (%(cite))</p>
. The wildcard%(color)
is replaced by the annotation color (you can also use %(color_category) for the color category—reddish is red etc). This styling has the same effect but looks a little better:<p><span style="background-color:%(color);">"%(content)"</span> (%(cite))</p>
(b) To create separate notes for color categories: The hidden optionpdfExtraction.colorNotes
allows you to create a separate note for each color category (yellow, red, green etc annotations).
For that to work you need extensions.zotfile.pdfExtraction.colorNotes
set to false
and extensions.zotfile.pdfExtraction.colorAnnotations
set to true
. If you have them the other way around, the wildcards will sort of work (you can use them to color things, but it doesn’t get the color name properly). See here, I added the wildcards %(color)
and %(color_category)
respectively at the top:
@Archie after setting the colorAnnotations
to true, you should right click the PDF, then select Manage attachments > Extract annotations
. I don’t think you need anything else unless you want to customize how the annotations look.