Louis/Meta/Modèles/ZI_Template.md
2026-06-09 14:45:18 +02:00

3 KiB


categories: [literature note, {% if allTags %}{{allTags}}{% endif %}] title: Note de lecture de {% if title %}{{title | replace(':', '') | replace('[', '') | replace(']', '')}}{% elseif caseName%}{{caseName | replace(':', '') | replace('[', '') | replace(']', '')}}{% elseif subject%}{{subject | replace(':', '') | replace('[', '') | replace(']', '')}}{% endif %} de{% if creators.length > 0 %} {% for creator in creators %}{% if creator.creatorType == "author" %}{% if creator.name %} {{creator.name}} {% else %} {{creator.firstName}} {{creator.lastName}}{% endif %}{% if loop.last %}.{% else %},{% endif %}{% endif %}{% endfor %}{% endif %} bibliography: ../these_ref.bib

::: {.callout-note title="Synthèse"}

Contribution::

Related:: {% for relation in relations | selectattr("citekey") %} @{{relation.citekey}}{% if not loop.last %}, {% endif%} {% endfor %}

:::

::: {.callout-note title="Markdown"}

{% for type, creators in creators | groupby("creatorType") -%}

{%- for creator in creators -%}

{{"First" if loop.first}}{{type | capitalize}}::

{%- if creator.name %} {{creator.name}}
{%- else %} {{creator.lastName}}, {{creator.firstName}}
{%- endif %}
{% endfor %}

{%- endfor %}

Title:: {{title}}

Year:: {{date | format("YYYY")}} Citekey:: {{citekey}} {%- if itemType %} itemType:: {{itemType}}{%- endif %}{%- if itemType == "journalArticle" %} Journal:: {{publicationTitle}} {%- endif %}{%- if volume %} Volume:: {{volume}} {%- endif %}{%- if issue %} Issue:: {{issue}} {%- endif %}{%- if itemType == "bookSection" %}
Book:: {{publicationTitle}} {%- endif %}{%- if publisher %}
Publisher:: {{publisher}} {%- endif %}{%- if place %} Location:: {{place}} {%- endif %}{%- if pages %} Pages:: {{pages}} {%- endif %}{%- if DOI %} DOI:: {{DOI}} {%- endif %}{%- if ISBN %}
ISBN:: {{ISBN}} {%- endif %}
:::

::: {.callout-note title="Pièces-jointes"}

{%- for attachment in attachments | filterby("path", "endswith", ".pdf") %}

  • [{{attachment.title}}](file://{{attachment.path | replace(" ", "%20")}}) {%- endfor -%}. :::

::: {.callout-note title="Abstract"}

{%- if abstractNote %}

{{abstractNote}}

{%- endif %} ::::

Prise de notes

{% raw %}{{< include local_macros.tex.md >}}{% endraw %}

!local_macros.tex

{% persist "user_notes" %}

{% endpersist %}

{%- if markdownNotes %}

Notes importées

{{markdownNotes}}.

{%- endif -%}

{%- if annotations %}

Annotations importées

{% macro calloutHeader(type, color) -%}
{%- if type == "highlight" -%}
Quote

{%- endif -%}

{%- if type == "text" -%}
Note

{%- endif -%}

{%- endmacro -%}

{% persist "annotations" %}

{% set newAnnotations = annotations | filterby("date", "dateafter", lastImportDate) %}

{% if newAnnotations.length > 0 %}

Importées : {{importDate | format("YYYY-MM-DD h:mm a")}}

{% for a in newAnnotations %}

{{calloutHeader(a.type, a.color)}}

{{a.annotatedText}}

{% endfor %}

{% endif %}

{% endpersist %}

{%- endif -%}