A possible inconsistency in the Typst writer #9309
-
First of all, I am happy to see Pandoc Discuss reemerge after its demise in Google Discussions. I probably noticed an inconsistency in the Typst writer, which does not occur with citeproc Lua filterfunction Pandoc (doc)
return pandoc.utils.citeproc(doc)
end Source document## Heading
Text [@AristOp].
---
references:
- author:
- family: Aristotle
edition: 1
editor:
- family: Bekker
given: Immanuel
id: AristOp
issued: 1831
number-of-volumes: 4
publisher: Reimer
publisher-place: Berlim
title: Aristotelis opera
type: book
--- to HTML<section id="heading" class="level2">
<h2 class="anchored" data-anchor-id="heading">Heading</h2>
<p>This filter adds formatting to heading text <span class="citation" data-cites="AristOp">(<a href="#ref-AristOp" role="doc-biblioref">Aristotle 1831</a>)</span>.</p>
<div id="refs" class="references csl-bib-body hanging-indent" data-entry-spacing="0" role="list">
<div id="ref-AristOp" class="csl-entry" role="listitem">
Aristotle. 1831. <em>Aristotelis Opera</em>. Edited by Immanuel Bekker. 1st ed. 4 vols. Berlim: Reimer.
</div>
</div>
</section> to Typst== Heading
<heading>
This filter adds formatting to heading text #cite(<AristOp>);.
#block[
#block[
Aristotle. 1831. #emph[Aristotelis Opera];. Edited by Immanuel Bekker. 1st ed. 4 vols. Berlim: Reimer.
] <ref-AristOp>
] <refs> Notice how the inline citation gets rendered in the HTML, but does not in the Typst output. I can't think of any reason for this being the case. Am I overlooking something here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
If the |
Beta Was this translation helpful? Give feedback.
-
@bcdavasconcelos I made a pull request to have this documented: #9127 — I wasn't sure the best place for this information... |
Beta Was this translation helpful? Give feedback.
If the
citations
extension is enabled (default for typst), typst will emit#cite(..)
; otherwise, it will emit the formatted citations. So, try-t typst-citations
.