diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/cite-locate.png | bin | 50739 -> 40628 bytes | |||
| -rw-r--r-- | tests/ref/bugs/hide-meta.png | bin | 14128 -> 11164 bytes | |||
| -rw-r--r-- | tests/ref/meta/bibliography-full.png | bin | 0 -> 147030 bytes | |||
| -rw-r--r-- | tests/ref/meta/bibliography-ordering.png | bin | 145319 -> 140198 bytes | |||
| -rw-r--r-- | tests/ref/meta/bibliography.png | bin | 119134 -> 118312 bytes | |||
| -rw-r--r-- | tests/ref/meta/cite-footnote.png | bin | 58253 -> 47295 bytes | |||
| -rw-r--r-- | tests/ref/meta/cite-form.png | bin | 0 -> 29107 bytes | |||
| -rw-r--r-- | tests/ref/text/linebreak-obj.png | bin | 55876 -> 45427 bytes | |||
| -rw-r--r-- | tests/ref/text/quote.png | bin | 107789 -> 60156 bytes | |||
| -rw-r--r-- | tests/typ/meta/bibliography-full.typ | 5 | ||||
| -rw-r--r-- | tests/typ/meta/bibliography.typ | 15 | ||||
| -rw-r--r-- | tests/typ/meta/cite-form.typ | 10 | ||||
| -rw-r--r-- | tests/typ/meta/outline-entry.typ | 7 | ||||
| -rw-r--r-- | tests/typ/text/quote.typ | 25 |
14 files changed, 42 insertions, 20 deletions
diff --git a/tests/ref/bugs/cite-locate.png b/tests/ref/bugs/cite-locate.png Binary files differindex 396726f3..36246393 100644 --- a/tests/ref/bugs/cite-locate.png +++ b/tests/ref/bugs/cite-locate.png diff --git a/tests/ref/bugs/hide-meta.png b/tests/ref/bugs/hide-meta.png Binary files differindex 860617d7..76b4671a 100644 --- a/tests/ref/bugs/hide-meta.png +++ b/tests/ref/bugs/hide-meta.png diff --git a/tests/ref/meta/bibliography-full.png b/tests/ref/meta/bibliography-full.png Binary files differnew file mode 100644 index 00000000..39173896 --- /dev/null +++ b/tests/ref/meta/bibliography-full.png diff --git a/tests/ref/meta/bibliography-ordering.png b/tests/ref/meta/bibliography-ordering.png Binary files differindex a3f1ab37..675d2f68 100644 --- a/tests/ref/meta/bibliography-ordering.png +++ b/tests/ref/meta/bibliography-ordering.png diff --git a/tests/ref/meta/bibliography.png b/tests/ref/meta/bibliography.png Binary files differindex 22d7355c..cb00f896 100644 --- a/tests/ref/meta/bibliography.png +++ b/tests/ref/meta/bibliography.png diff --git a/tests/ref/meta/cite-footnote.png b/tests/ref/meta/cite-footnote.png Binary files differindex 067d2c2e..bd027cc2 100644 --- a/tests/ref/meta/cite-footnote.png +++ b/tests/ref/meta/cite-footnote.png diff --git a/tests/ref/meta/cite-form.png b/tests/ref/meta/cite-form.png Binary files differnew file mode 100644 index 00000000..7394b89e --- /dev/null +++ b/tests/ref/meta/cite-form.png diff --git a/tests/ref/text/linebreak-obj.png b/tests/ref/text/linebreak-obj.png Binary files differindex 7159aae6..665bfa00 100644 --- a/tests/ref/text/linebreak-obj.png +++ b/tests/ref/text/linebreak-obj.png diff --git a/tests/ref/text/quote.png b/tests/ref/text/quote.png Binary files differindex 77e6d142..653f2d17 100644 --- a/tests/ref/text/quote.png +++ b/tests/ref/text/quote.png diff --git a/tests/typ/meta/bibliography-full.typ b/tests/typ/meta/bibliography-full.typ new file mode 100644 index 00000000..0adc0b85 --- /dev/null +++ b/tests/typ/meta/bibliography-full.typ @@ -0,0 +1,5 @@ +// Test the full bibliography. + +--- +#set page(paper: "a6") +#bibliography("/files/works.bib", full: true) diff --git a/tests/typ/meta/bibliography.typ b/tests/typ/meta/bibliography.typ index e3d746e6..ec90a96a 100644 --- a/tests/typ/meta/bibliography.typ +++ b/tests/typ/meta/bibliography.typ @@ -2,8 +2,9 @@ --- #set page(width: 200pt) + = Details -See also #cite("arrgh", "distress", supplement: [p. 22]), @arrgh[p. 4], and @distress[p. 5]. +See also @arrgh #cite(<distress>, supplement: [p.~22]), @arrgh[p.~4], and @distress[p.~5]. #bibliography("/files/works.bib") --- @@ -16,23 +17,18 @@ See also #cite("arrgh", "distress", supplement: [p. 22]), @arrgh[p. 4], and @dis ) #line(length: 100%) -#[#set cite(brackets: false) -As described by @netwok], +As described by #cite(<netwok>, form: "prose"), the net-work is a creature of its own. This is close to piratery! @arrgh And quark! @quark --- -// Error: 15-55 duplicate bibliography keys: arrgh, distress, glacier-melt, issue201, mcintosh_anxiety, netwok, psychology25, quark, restful, sharing, tolkien54 -#bibliography(("/files/works.bib", "/files/works.bib")) - ---- #set page(width: 200pt) #set heading(numbering: "1.") #show bibliography: set heading(numbering: "1.") = Multiple Bibs -Now we have multiple bibliographies containing #cite("glacier-melt", "keshav2007read") +Now we have multiple bibliographies containing @glacier-melt @keshav2007read #bibliography(("/files/works.bib", "/files/works_too.bib")) --- @@ -43,3 +39,6 @@ Now we have multiple bibliographies containing #cite("glacier-melt", "keshav2007 @arrgh #bibliography("/files/works.bib") +--- +// Error: 15-55 duplicate bibliography keys: netwok, issue201, arrgh, quark, distress, glacier-melt, tolkien54, sharing, restful, mcintosh_anxiety, psychology25 +#bibliography(("/files/works.bib", "/files/works.bib")) diff --git a/tests/typ/meta/cite-form.typ b/tests/typ/meta/cite-form.typ new file mode 100644 index 00000000..3c11e1f6 --- /dev/null +++ b/tests/typ/meta/cite-form.typ @@ -0,0 +1,10 @@ +// Test citation forms. + +--- +#set page(width: 200pt) + +Nothing: #cite(<arrgh>, form: none) + +#cite(<netwok>, form: "prose") say stuff. + +#bibliography("/files/works.bib", style: "apa") diff --git a/tests/typ/meta/outline-entry.typ b/tests/typ/meta/outline-entry.typ index 8f290157..74a785a9 100644 --- a/tests/typ/meta/outline-entry.typ +++ b/tests/typ/meta/outline-entry.typ @@ -54,7 +54,6 @@ === Lower heading --- -// Error: 2-23 cannot outline cite -#outline(target: cite) -#cite("arrgh", "distress", supplement: [p. 22]) -#bibliography("/files/works.bib") +// Error: 2-27 cannot outline metadata +#outline(target: metadata) +#metadata("hello") diff --git a/tests/typ/text/quote.typ b/tests/typ/text/quote.typ index b815b032..0fd96ff5 100644 --- a/tests/typ/text/quote.typ +++ b/tests/typ/text/quote.typ @@ -18,6 +18,7 @@ And I quote: #quote(attribution: [René Descartes])[cogito, ergo sum]. --- // Spacing with other blocks #set quote(block: true) +#set text(8pt) #lorem(10) #quote(lorem(10)) @@ -25,27 +26,35 @@ And I quote: #quote(attribution: [René Descartes])[cogito, ergo sum]. --- // Inline citation -#bibliography("/files/works.bib") - +#set text(8pt) #quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.] +#set text(0pt) +#bibliography("/files/works.bib") + --- // Citation-format: label or numeric +#set text(8pt) #set quote(block: true) -#bibliography("/files/works.bib", style: "ieee") - #quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.] +#set text(0pt) +#bibliography("/files/works.bib", style: "ieee") + --- // Citation-format: note +#set text(8pt) #set quote(block: true) -#bibliography("/files/works.bib", style: "chicago-notes") - #quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.] +#set text(0pt) +#bibliography("/files/works.bib", style: "chicago-notes") + --- // Citation-format: author-date or author +#set text(8pt) #set quote(block: true) -#bibliography("/files/works.bib", style: "apa") - #quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.] + +#set text(0pt) +#bibliography("/files/works.bib", style: "apa") |
