Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter: use Pandoc's citeproc for processing references #166

Open
cagix opened this issue Sep 1, 2023 · 0 comments
Open

Filter: use Pandoc's citeproc for processing references #166

cagix opened this issue Sep 1, 2023 · 0 comments

Comments

@cagix
Copy link
Owner

cagix commented Sep 1, 2023

Currently we have a metadata field readings to add recommended reading to a lecture:

readings:
  - key: "Russell2020"
    comment: "Problemlösen: Kapitel 3.1 - 3.3"

During conversion by Hugo we use a custom partial bib.html to translate this into something like

{{ partial "shortcodes/notice.html" (dict
        "page" .
        "style" "info"
        "icon" "fas fa-book-reader"
        "title" "Quellen"
        "content" $c
    )}}

Idea: Let's use Pandoc's citeproc for this and skip the custom partial. We could use a metadata field readings containing "normal" text plus citations, which will be translated in out Pandoc template into a section and afterwards Pandoc+citeproc could do their work ...

<!-- document -->
--- 
readings: |
  Bitte lesen Sie in @Russell2020 das Kapitel "Problemlösen" (Kap. 3.1 - 3.3).
---
$-- template

...

$if(readings)$
## Literatur
$readings$
$end$

## Quellen {#refs .allowframebreaks}

or even

$-- template

...

$if(readings)$
`{{% notice style="info" title="Literatur" icon="fas fa-book-reader" %}}`{=markdown}
$readings$
`{{% /notice %}}`{=markdown}
$end$

## Quellen {#refs .allowframebreaks}

related to #165 and #52 and #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant