Possible to extract annotations without quotations?

edited July 12, 2022
Is it possible to format the Config Editor in such a way that quotations do not appear around the extracted text from my annotations?

I followed some of the steps from the following link to format my extracted annotations:
https://www.zotero.org/support/note_templates

But noticed that quotations appear around every highlight. I reread the above link more closely and noticed this line under the "Variables" subheader:
"quotes — if “true”, add quotation marks around text; if “false” or omitted, a highlight must be placed within a blockquote to remain as an active annotation"

So is it not possible to extract highlights without quotations or have them appear within a blockquote?


For reference, my present config editor settings are as follows:

{{if color == '#2ea8e5'}}
<h2>{{highlight}}</h2>
{{elseif color == '##5fb236'}}
{{if comment}}<p>{{comment}}:</p>{{endif}}<blockquote>{{highlight}}</blockquote><p>{{citation}}</p>
{{else}}
<p>{{highlight quotes='true'}} {{comment}}</p>


Many thanks in advance.
  • There's a bug in your code — you have two #s in the condition that creates the blockquote. If you fix that you'll get a blockquote without quotes for green highlights.
  • I appreciate that, thank you!

    But when I highlight with yellow the extracted annotations still appear between quotations in the exported note. Is it possible to amend the code in a way that removes the quotations? So highlighted annotations would appear as follows:

    This was highlighted in yellow ([pdf](link))


    Instead of:
    "This was highlighted in yellow" ([pdf](link))



    Thanks again!
  • If you remove quotations in paragraph text they won't be treated as annotations.
  • edited July 12, 2022
    Thank you! As a final question... how would I go about amending the following syntax so that a separate paragraph is created for comments to Green and Other (Yellow, Purple) highlights.

    I appreciate the help.


    {{if color == '#2ea8e5'}}
    <h2>{{highlight}}</h2>
    {{elseif color == '#ff6666'}}
    <blockquote>{{highlight}}</blockquote><p> {{comment}}</p>
    {{elseif color == '#5fb236'}}
    <p>{{highlight quotes='true'}} {{comment}}</p>
    {{else}}
    <p>{{highlight quotes='false'}} {{comment}}</p>
Sign In or Register to comment.