diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-14 22:35:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-14 22:53:54 +0100 |
| commit | 89f44f220de2972452dd816fe59836ba76953d59 (patch) | |
| tree | 2749428e8e10252588bb68c0e8e9bfd150f28a9c /tests | |
| parent | 2a86e4db0bb3894d1cc3b94e1a1af31a6cd87b80 (diff) | |
Bibliography and citations
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/meta/bibliography.png | bin | 0 -> 38227 bytes | |||
| -rw-r--r-- | tests/typ/compute/data.typ | 4 | ||||
| -rw-r--r-- | tests/typ/meta/bibliography.typ | 27 |
3 files changed, 29 insertions, 2 deletions
diff --git a/tests/ref/meta/bibliography.png b/tests/ref/meta/bibliography.png Binary files differnew file mode 100644 index 00000000..3ff542d1 --- /dev/null +++ b/tests/ref/meta/bibliography.png diff --git a/tests/typ/compute/data.typ b/tests/typ/compute/data.typ index d80d4857..43746e18 100644 --- a/tests/typ/compute/data.typ +++ b/tests/typ/compute/data.typ @@ -11,8 +11,8 @@ #let data = read("/missing.txt") --- -// Error: 18-37 file is not valid utf-8 -#let data = read("/invalid-utf8.txt") +// Error: 18-28 file is not valid utf-8 +#let data = read("/bad.txt") --- // Test reading CSV data. diff --git a/tests/typ/meta/bibliography.typ b/tests/typ/meta/bibliography.typ new file mode 100644 index 00000000..2e2ddd35 --- /dev/null +++ b/tests/typ/meta/bibliography.typ @@ -0,0 +1,27 @@ +// 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", [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%) +The net-work is a creature of its own. @stupid +This is close to piratery! @arrgh +And quark! @quark |
