Skip to content

Commit be6bcd2

Browse files
authored
Merge pull request #13605 from mcanouil/fix/issue13602
2 parents 20c2761 + 5d36ee5 commit be6bcd2

File tree

6 files changed

+54
-1
lines changed

6 files changed

+54
-1
lines changed

news/changelog-1.9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ All changes included in 1.9:
3131
- ([#13474](https://github.com/quarto-dev/quarto-cli/issues/13474)): Heading font for title should default to `mainfont`.
3232
- ([#13555](https://github.com/quarto-dev/quarto-cli/issues/13555)): Add support for `icon=false` in callouts when used in `format: typst`.
3333
- ([#13589](https://github.com/quarto-dev/quarto-cli/issues/13589)): Fix callouts with invalid ID prefixes crashing with "attempt to index a nil value". Callouts with unknown reference types now render as non-crossreferenceable callouts with a warning, ignoring the invalid ID.
34+
- ([#13602](https://github.com/quarto-dev/quarto-cli/issues/13602)): Fix support for multiple files set in `bibliography` field in `biblio.typ` template partial.
3435

3536
## Projects
3637

src/resources/formats/typst/pandoc/quarto/biblio.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $elseif(bibliographystyle)$
88
$endif$
99
$if(bibliography)$
1010

11-
#bibliography($for(bibliography)$"$bibliography$"$sep$,$endfor$)
11+
#bibliography(($for(bibliography)$"$bibliography$"$sep$,$endfor$))
1212
$endif$
1313
$endif$
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Multiple bib in typst
3+
format: typst
4+
keep-typ: true
5+
bibliography: references.bib
6+
_quarto:
7+
tests:
8+
typst:
9+
ensureTypstFileRegexMatches:
10+
- ['\#bibliography\(\("references.bib"\)\)']
11+
- []
12+
---
13+
14+
A reference from the first file @smith1776inquirynaturecauses
15+
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)