Skip to content

Commit fa5574c

Browse files
committed
Add a test for multiple bibliographies in Typst output.
1 parent 66a4c02 commit fa5574c

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Multiple bib in typst
3+
format: typst
4+
keep-typ: true
5+
bibliography:
6+
- references.bib
7+
- references-1.bib
8+
_quarto:
9+
tests:
10+
typst:
11+
ensureTypstFileRegexMatches:
12+
- ['\#bibliography\(\("references.bib","references-1.bib"\)\)']
13+
- []
14+
---
15+
16+
A reference from the first file @smith1776inquirynaturecauses
17+
18+
A reference from the second file @ricardo1817principlespoliticaleconomy
19+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@book{ricardo1817principlespoliticaleconomy,
2+
title = {On the Principles of Political Economy and Taxation},
3+
author = {Ricardo, D.},
4+
date = {1817},
5+
publisher = {John Murray},
6+
url = {https://books.google.com.au/books?id=cUBKAAAAYAAJ},
7+
lccn = {18015237}
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@book{smith1776inquirynaturecauses,
2+
title = {An {{Inquiry}} into the {{Nature}} and {{Causes}} of the {{Wealth}} of {{Nations}}},
3+
author = {Smith, Adam},
4+
year = 1776,
5+
edition = {1},
6+
publisher = {Wiley},
7+
urldate = {2024-11-07},
8+
langid = {english},
9+
10+
}

0 commit comments

Comments
 (0)