-
-
Notifications
You must be signed in to change notification settings - Fork 68
Open
typst/biblatex
#86Labels
bugSomething isn't workingSomething isn't working
Description
Description
When using Typst's bibliography system with a .bib file, entries with an alphanumeric pages field like "1A1" are not rendered correctly in the output PDF. Only the numeric prefix (e.g., "1") is displayed, and the trailing alphabetic characters are omitted.
Steps to Reproduce
main.typ
#cite(test)
#bibliography("references.bib",style:"test.csl")
references.bib:
@inproceedings{test,
author = {John Doe},
title = {Interesting Findings},
journal = {Example Journal},
year = {2024},
pages = {1A1}
}
test.csl:
<macro name="page">
<choose>
<if type="article-journal" variable="number" match="all">
<group delimiter=" ">
<text value="Art."/>
<text term="issue" form="short"/>
<text variable="number"/>
</group>
</if>
<else>
<group delimiter=" ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</else>
</choose>
</macro>
Actual Output
Only 1
is rendered in the bibliography entry, instead of 1A1
.
Expected Output
The full alphanumeric string 1A1 should be rendered, as it represents a valid page identifier (common in some journals, conference proceedings, and e-journals).
Reproduction URL
https://typst.app/project/rE4qAM0NN4Lgnh3NmWfU4T
Operating system
Web app
Typst version
- I am using the latest version of Typst
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working