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

Fix formatting of collapsed numeric citations #176

Merged
merged 11 commits into from
Aug 8, 2024
Prev Previous commit
Next Next commit
simplify test
PgBiel committed Aug 8, 2024
commit 82a4d8fba1315841dfecebc91111f4e79123ec45
40 changes: 8 additions & 32 deletions tests/local/collapse_CitationNumberRangesSeparated.txt
Original file line number Diff line number Diff line change
@@ -7,9 +7,9 @@ Simplified from collapse_CitationNumberRangesInsert.txt

>>===== RESULT =====>>
[1–8]
[1–3; 5]
[4, 6–8]
[2, 3, 6]
[1–3;5]
[4,6–8]
[2,3,6]
<<===== RESULT =====<<

>>===== CITATION-ITEMS =====>>
@@ -84,45 +84,21 @@ Simplified from collapse_CitationNumberRangesInsert.txt


>>===== CSL =====>>
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<info>
<title>Numeric</title>
<id>http://typst.org/csl/numeric</id>
<author>
<name>Martin Haug</name>
<email>[email protected]</email>
</author>
<author>
<name>Laurenz Mädje</name>
<email>[email protected]</email>
</author>
<category citation-format="label" />
<rights>MIT OR Apache-2.0</rights>
<summary>Numeric citations</summary>
<id />
<title />
<updated>2009-08-10T04:49:00+09:00</updated>
</info>
<citation collapse="citation-number" after-collapse-delimiter="; ">
<citation collapse="citation-number" after-collapse-delimiter=";">
<sort>
<key variable="author" />
<key variable="issued" />
</sort>
<layout prefix="[" suffix="]" delimiter=", ">
<layout prefix="[" suffix="]" delimiter=",">
<text variable="citation-number" />
</layout>
</citation>
<bibliography>
<sort>
<key variable="author" />
<key variable="issued" />
</sort>
<layout>
<group delimiter=". ">
<text variable="author"/>
<text variable="title"/>
<text variable="issued"/>
</group>
</layout>
</bibliography>
</style>
<<===== CSL =====<<