mirror of
https://github.com/typst/typst
synced 2025-05-13 12:36:23 +08:00
29 lines
759 B
Typst
29 lines
759 B
Typst
// Test citations and bibliographies.
|
|
|
|
---
|
|
// Error: 15-25 failed to parse biblatex file: wrong number of digits in line 5
|
|
#bibliography("/bad.bib")
|
|
|
|
---
|
|
// Test ambigious reference.
|
|
= Introduction <arrgh>
|
|
// Error: 1-7 label occurs in the document and its bibliography
|
|
@arrgh
|
|
#bibliography("/works.bib")
|
|
|
|
---
|
|
#set page(width: 200pt)
|
|
= Details
|
|
See also #cite("arrgh", "cannonfodder", [p. 22]), @arrgh[p. 4], and @cannonfodder[p. 5].
|
|
#bibliography("/works.bib")
|
|
|
|
---
|
|
// Test unconventional order.
|
|
#set page(width: 200pt)
|
|
#bibliography("/works.bib", title: [Works to be cited], style: "author-date")
|
|
#line(length: 100%)
|
|
As described by #cite("stupid", brackets: false),
|
|
the net-work is a creature of its own.
|
|
This is close to piratery! @arrgh
|
|
And quark! @quark
|