Skip to content

Commit f5fc540

Browse files
Add test for suppress-bibliography with Typst native citations
Verifies that suppress-bibliography: true works with Typst's native citation system (not just citeproc). The test checks that the generated .typ file contains the #show bibliography: none rule, and that the PDF output includes citations but no bibliography section. Refs #14327
1 parent 96dc728 commit f5fc540

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "Suppress Bibliography with Typst Native Citations"
3+
bibliography: refs.bib
4+
suppress-bibliography: true
5+
format:
6+
typst:
7+
keep-typ: true
8+
_quarto:
9+
tests:
10+
typst:
11+
ensureTypstFileRegexMatches:
12+
- ['#show bibliography: none', '#bibliography\(']
13+
- []
14+
ensurePdfRegexMatches:
15+
- ['Cronbach']
16+
- ['References\s*$', 'Bibliography\s*$']
17+
noErrors: default
18+
---
19+
20+
Testing that `suppress-bibliography: true` works with Typst native citations (#14327).
21+
22+
@Cronbach_1951 is a classic reference.
23+
24+
The bibliography should not appear at the end of this document.

0 commit comments

Comments
 (0)