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
Expected reference output: v0. v1. v2. v3
Actual reference output in Typst: v0. v1. v2v3
I noticed that when <group> contains <choose>, the group delimiter is not applied to elements inside <choose>. Instead, <choose> is treated as a group without a delimiter.
This behavior is inconsistent with reference management software like Zotero. In the CSL 1.0.2 documentation, it is stated:
Delimiters from the nearest delimiting element are applied within the output of cs:choose (i.e., the output of the matching cs:if, cs:else-if, or cs:else; see delimiter).
P.S. Currently, this issue can be mitigated by nesting <group delimiter=". "> inside <choose>. However, this means that additional modifications to the CSL are required for it to work with Typst.
Example
<groupdelimiter=". ">
<textvalue="v0"/>
<textvalue="v1"/>
<choose>
<iftype="book">
<groupdelimiter=". "> <!-- Add a nested group -->
<textvalue="v2"/>
<textvalue="v3"/>
</group> <!-- Add a nested group -->
</if>
</choose>
</group>
The text was updated successfully, but these errors were encountered:
Consider the following CSL snippet:
The complete test CSL file
Expected reference output:
v0. v1. v2. v3
Actual reference output in Typst:
v0. v1. v2v3
I noticed that when
<group>
contains<choose>
, the group delimiter is not applied to elements inside<choose>
. Instead,<choose>
is treated as a group without a delimiter.This behavior is inconsistent with reference management software like Zotero. In the CSL 1.0.2 documentation, it is stated:
P.S. Currently, this issue can be mitigated by nesting
<group delimiter=". ">
inside<choose>
. However, this means that additional modifications to the CSL are required for it to work with Typst.Example
The text was updated successfully, but these errors were encountered: