summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-18 01:07:50 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-18 01:07:50 +0100
commit05ec0f993b4a1b8481e494ee16285d23f000872f (patch)
treebad1ea092025213173e66a3a88cf2c8d3f4ca3a3 /tests/typ
parentacae6e2a54f11b27bae343a15d9eff952323fe28 (diff)
Headers and footers
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/layout/page-marginals.typ22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/typ/layout/page-marginals.typ b/tests/typ/layout/page-marginals.typ
new file mode 100644
index 00000000..2d969647
--- /dev/null
+++ b/tests/typ/layout/page-marginals.typ
@@ -0,0 +1,22 @@
+#set page(
+ paper: "a8",
+ margins: 30pt,
+ horizontal: 15pt,
+ header: align(horizon, {
+ text(eastern)[*Typst*]
+ h(1fr)
+ text(80%)[_Chapter 1_]
+ }),
+ footer: page => v(5pt) + align(center)[\~ #page \~],
+)
+
+But, soft! what light through yonder window breaks? It is the east, and Juliet
+is the sun. Arise, fair sun, and kill the envious moon, Who is already sick and
+pale with grief, That thou her maid art far more fair than she: Be not her maid,
+since she is envious; Her vestal livery is but sick and green And none but fools
+do wear it; cast it off. It is my lady, O, it is my love! O, that she knew she
+were! She speaks yet she says nothing: what of that? Her eye discourses; I will
+answer it.
+
+#set page(header: none, height: auto, top: 15pt, bottom: 25pt)
+The END.