layout tweaks

This commit is contained in:
anarsec 2023-07-15 18:06:18 +00:00
parent 6f33bc5e8d
commit f4c50a476e
No known key found for this signature in database
7 changed files with 62 additions and 45 deletions

View file

@ -12,23 +12,35 @@
// format lists
set list(marker: ([•], [--]))
// front cover
page()[
#set align(center + horizon)
#place(
center + top,
dy: 150pt,
image(frontimage)
)
#image(frontimage)
#place(
center + horizon,
dy: 40pt,
)[
#set text(font: "Jost")
#text(25pt, title)
#{
if subtitle != "None" {
text(18pt, subtitle)
}
}
]
#text(25pt, title)
#{
if subtitle != "None" {
text(18pt, subtitle)
}
}
#set align(center + bottom)
#text(18pt)[Series: #category]
#place(
center + bottom
)[
#set text(font: "Jost")
#text(18pt)[Series: #category]
]
]
@ -41,10 +53,29 @@
#text()[The dagger symbol #super[] on a word means that there is a glossary entry for it. Ai ferri corti.]
]
// table of contents
page()[
#outline(indent: 20pt, depth: 3)
// set headings
show heading.where(level: 1): it => {
pagebreak(weak: true)
block(width: 100%)[
#set align(center)
#set text(size: 22pt, font: "Jost")
#text(it.body)
#v(10pt)
]
}
show heading.where(level: 2): it => block(width: 100%)[
#set text(size: 16pt, font: "Jost")
#text(it.body)
#v(10pt)
]
show heading.where(level: 3): it => block(width: 100%)[
#set text(size: 14pt, font: "Jost", weight: "bold")
#text(it.body)
#v(10pt)
]
// table of contents
outline(indent: 20pt, depth: 3)
// format links
show link: it => {
@ -86,40 +117,19 @@
pagebreak(weak: true)
show heading.where(level: 1): it => {
pagebreak(weak: true)
block(width: 100%)[
#set align(center)
#set text(26pt)
#smallcaps(it.body)
#v(10pt)
]
}
show heading.where(level: 2): it => block(width: 100%)[
#set text(19pt)
#text(it.body)
#v(10pt)
]
show heading.where(level: 3): it => block(width: 100%)[
#set text(14pt, weight: "bold")
#text(it.body)
#v(10pt)
]
content
set page(numbering: none)
// back cover
page()[
#text()[
#set align(center + horizon)
#place(center + horizon, dy: -100pt, block(width: 100%, align(left, par(justify: true, description))))
#block(width: 100%, align(left, par(justify: true, description)))
#image(height: 250pt, backimage)
#place(center + bottom, dy: 20pt, image(height: 250pt, backimage))
]
]
}
// blockquote function ; TODO: remove when typst has a native blockquote function (see https://github.com/typst/typst/issues/105)