You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying out Typst for some time and it's such a pleasure to with! There's only been one problem so far:
Description
I'm using a "note" citation style, where citations are put into footnotes. The style should render the word "ibid" when the same citation appears for the second (third, etc.) time in a row (there is some text inbetween those citations, but no other citation). This is achieved using the position property in the CSL file, like so:
<citation>
<layoutdelimiter="; ">
<choose>
<ifposition="ibid-with-locator">
<!-- Same citation as the one before, with a supplement, e.g. #cite(<key>, supplement: "something") -->
</if>
<else-ifposition="ibid">
<!-- Same citation as the one before, without supplement -->
</else-if>
<!-- Other cases... -->
Take this example Typst source using such CSL style:
I've said it before.@mykey
And I'll say it again.@mykey
Life moves fast.#cite(<mykey>, supplement: "p. 42")
This results in three footnotes, the first one containing the citation, the second one being incorrectly empty, and the third one correctly containing "ibid., p.42" as per my style.
When not specifying a supplement in the second citation, I would expect the position="ibid" to be used. Instead, position="ibid-with-locator" is used, but since the locator variable, where Typst normally puts the supplement, is not defined, the evaluation fails. Nothing gets printed out, and my footnote where the text "ibid" should be is instead empty.
Workaround
I have made a simple workaround by modifying my CSL file the following way:
<citation>
<layoutdelimiter="; ">
<choose>
<ifposition="ibid-with-locator">
<choose>
<ifvariable="locator"match="any">
<!-- Put the original contents of <if position="ibid-with-locator"> here. -->
</if>
<else>
<!-- Put the contents of <if position="ibid"> here. -->
</else>
</choose>
</if>
<else-ifposition="ibid">
<!-- This won't be used by Typst -->
</else-if>
<!-- Other cases... -->
Reproduction URL
No response
Operating system
Linux
Typst version
I am using the latest version of Typst
The text was updated successfully, but these errors were encountered:
Description
I've been trying out Typst for some time and it's such a pleasure to with! There's only been one problem so far:
Description
I'm using a "note" citation style, where citations are put into footnotes. The style should render the word "ibid" when the same citation appears for the second (third, etc.) time in a row (there is some text inbetween those citations, but no other citation). This is achieved using the
position
property in the CSL file, like so:Take this example Typst source using such CSL style:
This results in three footnotes, the first one containing the citation, the second one being incorrectly empty, and the third one correctly containing "ibid., p.42" as per my style.
When not specifying a supplement in the second citation, I would expect the
position="ibid"
to be used. Instead,position="ibid-with-locator"
is used, but since thelocator
variable, where Typst normally puts the supplement, is not defined, the evaluation fails. Nothing gets printed out, and my footnote where the text "ibid" should be is instead empty.Workaround
I have made a simple workaround by modifying my CSL file the following way:
Reproduction URL
No response
Operating system
Linux
Typst version
The text was updated successfully, but these errors were encountered: