summaryrefslogtreecommitdiff
path: root/tests/typ/meta
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-28 10:35:44 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-28 10:36:53 +0200
commit04bffc4f12ff7dd85d25f5fd65506440287f879c (patch)
tree311a78d174f95c6e4733e3eb17a40f78744c3854 /tests/typ/meta
parent7b92bd7c340d9f9c094ed2fa57912049317d9b20 (diff)
Reintroduce `--root`
Diffstat (limited to 'tests/typ/meta')
-rw-r--r--tests/typ/meta/bibliography-ordering.typ2
-rw-r--r--tests/typ/meta/bibliography.typ17
-rw-r--r--tests/typ/meta/cite-footnote.typ2
-rw-r--r--tests/typ/meta/figure.typ4
-rw-r--r--tests/typ/meta/footnote-container.typ2
-rw-r--r--tests/typ/meta/footnote-table.typ2
-rw-r--r--tests/typ/meta/link.typ2
-rw-r--r--tests/typ/meta/outline-entry.typ2
-rw-r--r--tests/typ/meta/query-figure.typ4
-rw-r--r--tests/typ/meta/ref.typ4
10 files changed, 23 insertions, 18 deletions
diff --git a/tests/typ/meta/bibliography-ordering.typ b/tests/typ/meta/bibliography-ordering.typ
index c1c9880b..5a00c51e 100644
--- a/tests/typ/meta/bibliography-ordering.typ
+++ b/tests/typ/meta/bibliography-ordering.typ
@@ -4,4 +4,4 @@
@netwok, @issue201, @arrgh, @quark, @distress,
@glacier-melt, @issue201, @tolkien54, @sharing, @restful
-#bibliography("/works.bib")
+#bibliography("/files/works.bib")
diff --git a/tests/typ/meta/bibliography.typ b/tests/typ/meta/bibliography.typ
index 94b44346..40d281fa 100644
--- a/tests/typ/meta/bibliography.typ
+++ b/tests/typ/meta/bibliography.typ
@@ -5,19 +5,24 @@
= Introduction <arrgh>
// Error: 1-7 label occurs in the document and its bibliography
@arrgh
-#bibliography("/works.bib")
+#bibliography("/files/works.bib")
---
#set page(width: 200pt)
= Details
See also #cite("arrgh", "distress", [p. 22]), @arrgh[p. 4], and @distress[p. 5].
-#bibliography("/works.bib")
+#bibliography("/files/works.bib")
---
// Test unconventional order.
#set page(width: 200pt)
-#bibliography("/works.bib", title: [Works to be cited], style: "chicago-author-date")
+#bibliography(
+ "/files/works.bib",
+ title: [Works to be cited],
+ style: "chicago-author-date",
+)
#line(length: 100%)
+
#[#set cite(brackets: false)
As described by @netwok],
the net-work is a creature of its own.
@@ -25,8 +30,8 @@ This is close to piratery! @arrgh
And quark! @quark
---
-// Error: 15-43 duplicate bibliography keys: arrgh, distress, glacier-melt, issue201, mcintosh_anxiety, netwok, psychology25, quark, restful, sharing, tolkien54
-#bibliography(("/works.bib", "/works.bib"))
+// 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)
@@ -35,4 +40,4 @@ And quark! @quark
= Multiple Bibs
Now we have multiple bibliographies containing #cite("glacier-melt", "keshav2007read")
-#bibliography(("/works.bib", "/works_too.bib"))
+#bibliography(("/files/works.bib", "/files/works_too.bib"))
diff --git a/tests/typ/meta/cite-footnote.typ b/tests/typ/meta/cite-footnote.typ
index 03984752..071a68d7 100644
--- a/tests/typ/meta/cite-footnote.typ
+++ b/tests/typ/meta/cite-footnote.typ
@@ -2,4 +2,4 @@ Hello @netwok
And again: @netwok
#pagebreak()
-#bibliography("/works.bib", style: "chicago-notes")
+#bibliography("/files/works.bib", style: "chicago-notes")
diff --git a/tests/typ/meta/figure.typ b/tests/typ/meta/figure.typ
index fcf92740..48dea0e8 100644
--- a/tests/typ/meta/figure.typ
+++ b/tests/typ/meta/figure.typ
@@ -13,7 +13,7 @@ We can clearly see that @fig-cylinder and
) <tab-basic>
#figure(
- pad(y: -6pt, image("/cylinder.svg", height: 2cm)),
+ pad(y: -6pt, image("/files/cylinder.svg", height: 2cm)),
caption: [The basic shapes.],
numbering: "I",
) <fig-cylinder>
@@ -30,7 +30,7 @@ We can clearly see that @fig-cylinder and
table(
columns: 2,
[Second cylinder],
- image("/cylinder.svg"),
+ image("/files/cylinder.svg"),
),
caption: "A table containing images."
) <fig-image-in-table>
diff --git a/tests/typ/meta/footnote-container.typ b/tests/typ/meta/footnote-container.typ
index fa246162..562831a9 100644
--- a/tests/typ/meta/footnote-container.typ
+++ b/tests/typ/meta/footnote-container.typ
@@ -4,7 +4,7 @@
// Test footnote in caption.
Read the docs #footnote[https://typst.app/docs]!
#figure(
- image("/graph.png", width: 70%),
+ image("/files/graph.png", width: 70%),
caption: [
A graph #footnote[A _graph_ is a structure with nodes and edges.]
]
diff --git a/tests/typ/meta/footnote-table.typ b/tests/typ/meta/footnote-table.typ
index bfbc3779..8256dc58 100644
--- a/tests/typ/meta/footnote-table.typ
+++ b/tests/typ/meta/footnote-table.typ
@@ -12,7 +12,7 @@
[This cell
#footnote[This footnote is not on the same page]
breaks over multiple pages.],
- image("/tiger.jpg"),
+ image("/files/tiger.jpg"),
)
#table(
diff --git a/tests/typ/meta/link.typ b/tests/typ/meta/link.typ
index 37eba6b7..5dfe37e7 100644
--- a/tests/typ/meta/link.typ
+++ b/tests/typ/meta/link.typ
@@ -54,7 +54,7 @@ My cool #box(move(dx: 0.7cm, dy: 0.7cm, rotate(10deg, scale(200%, mylink))))
// Link containing a block.
#link("https://example.com/", block[
My cool rhino
- #box(move(dx: 10pt, image("/rhino.png", width: 1cm)))
+ #box(move(dx: 10pt, image("/files/rhino.png", width: 1cm)))
])
---
diff --git a/tests/typ/meta/outline-entry.typ b/tests/typ/meta/outline-entry.typ
index ac78ec2a..50147442 100644
--- a/tests/typ/meta/outline-entry.typ
+++ b/tests/typ/meta/outline-entry.typ
@@ -57,4 +57,4 @@
// Error: 2-23 cannot outline cite
#outline(target: cite)
#cite("arrgh", "distress", [p. 22])
-#bibliography("/works.bib")
+#bibliography("/files/works.bib")
diff --git a/tests/typ/meta/query-figure.typ b/tests/typ/meta/query-figure.typ
index 4b730770..b1e59abe 100644
--- a/tests/typ/meta/query-figure.typ
+++ b/tests/typ/meta/query-figure.typ
@@ -24,7 +24,7 @@
})
#figure(
- image("/glacier.jpg"),
+ image("/files/glacier.jpg"),
caption: [Glacier melting],
)
@@ -36,6 +36,6 @@
)
#figure(
- image("/tiger.jpg"),
+ image("/files/tiger.jpg"),
caption: [Tiger world],
)
diff --git a/tests/typ/meta/ref.typ b/tests/typ/meta/ref.typ
index a62e6cce..630bad61 100644
--- a/tests/typ/meta/ref.typ
+++ b/tests/typ/meta/ref.typ
@@ -26,13 +26,13 @@ As seen in @intro, we proceed.
= Intro
#figure(
- image("/cylinder.svg", height: 1cm),
+ image("/files/cylinder.svg", height: 1cm),
caption: [A cylinder.],
supplement: "Fig",
) <fig1>
#figure(
- image("/tiger.jpg", height: 1cm),
+ image("/files/tiger.jpg", height: 1cm),
caption: [A tiger.],
supplement: "Tig",
) <fig2>