From 02450f3483743331a02831638b762bd509156626 Mon Sep 17 00:00:00 2001 From: Dane Sabo Date: Mon, 10 Feb 2025 09:49:39 -0500 Subject: [PATCH] vault backup: 2025-02-10 09:49:39 --- 1000s Templates/Literature Note.md | 75 ++++++++++++++++-------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/1000s Templates/Literature Note.md b/1000s Templates/Literature Note.md index c349338e..8e499046 100755 --- a/1000s Templates/Literature Note.md +++ b/1000s Templates/Literature Note.md @@ -4,47 +4,47 @@ dateread: title: "{{ title }}" year: {{ date | format('YYYY') }} authors: -{% for type, creators in creators | groupby('creatorType') %} +{% for type, creators in creators | groupby('creatorType') -%} {% for creator in creators %} - "{% if creator.name %}{{ creator.name }}{% else %}{{ creator.lastName }}, {{ creator.firstName }}{% endif %}" - {% endfor %} -{% endfor %} + {% endfor -%} +{% endfor -%} citekey: "{{ citekey }}" -{% if itemType == "journalArticle" %} +{% if itemType == "journalArticle" -%} journal: "{{ publicationTitle }}" -{% endif %} -{% if volume %} +{% endif -%} +{% if volume -%} volume: {{ volume }} -{% endif %} -{% if issue %} +{% endif -%} +{% if issue -%} issue: {{ issue }} -{% endif %} -{% if itemType == "bookSection" %} +{% endif -%} +{% if itemType == "bookSection" -%} book: "{{ publicationTitle }}" -{% endif %} -{% if publisher %} +{% endif -%} +{% if publisher -%} publisher: "{{ publisher }}" -{% endif %} -{% if place %} +{% endif -%} +{% if place -%} location: "{{ place }}" -{% endif %} -{% if pages %} +{% endif -%} +{% if pages -%} pages: {{ pages }} -{% endif %} +{% endif -%} --- # Indexing Information -{% if DOI %} +{% if DOI -%} ## DOI [{{ DOI }}](https://doi.org/{{ DOI }}) -{% endif %} +{% endif -%} -{% if ISBN %} +{% if ISBN -%} ## ISBN [{{ ISBN }}](https://www.isbnsearch.org/isbn/{{ ISBN }}) -{% endif %} +{% endif -%} ## Tags: -{% for t in tags %}#{{ t.tag +{% for t in tags -%}#{{ t.tag | replace(' ', '-') | replace('&', 'and') | replace('<', '') @@ -55,15 +55,17 @@ pages: {{ pages }} | replace(')', '') | replace('[', '') | replace(']', '') - }}{% if not loop.last %}, {% endif %}{% endfor %} + }}{% if not loop.last -%}, {% endif %}{% endfor %} - ["] {{title}} #Reading +{% if abstractNote -%} >[!Abstract] ->{% if abstractNote %}{{abstractNote}}{% endif %} +>{{abstractNote}}{% endif -%} +{% if markdownNotes -%} >[!note] Markdown Notes ->{% if markdownNotes %}{{markdownNotes}}{% else %}{{ "None!" }}{% endif %} +>{{markdownNotes}}}{% endif -%} >[!seealso] Related Papers >{% for r in relations %}[{{ r.title }}]({{ r.citekey }}){% if not loop.last %}, {% endif %}{% endfor %} @@ -71,24 +73,27 @@ pages: {{ pages }} # Annotations {# Process non-Purple highlights #} {% for a in annotations %} - {% if a.type == "highlight" and a.colorCategory != "Purple" %} - {% if a.colorCategory == "Yellow" %} + {% if a.type == "highlight" and a.colorCategory != "Purple" -%} + {% if a.colorCategory == "Yellow" -%} >[!attention] Highlight - {% elif a.colorCategory == "Green" %} + {% elif a.colorCategory == "Green" -%} >[!done] Quote - {% elif a.colorCategory == "Orange" %} + {% elif a.colorCategory == "Orange" -%} >[!question] Don't Understand - {% elif a.colorCategory == "Red" %} + {% elif a.colorCategory == "Red" -%} >[!fail] Possibly Incorrect - {% else %} + {% else -%} >[!quote] Other Highlight - {% endif %} + {% endif -%} +> ``` > *{{ a.annotatedText }}* -> {% if a.comment %} +> ``` +> {% if a.comment -%} > >[!note] Note > >{{ a.comment }} -> {% endif %} - {% endif %} +> +{% endif -%} +{% endif -%} {% endfor %} ## Tasks