mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-09 15:22:55 -04:00
typst styling
This commit is contained in:
parent
6679c65ba9
commit
679f46f7c6
3 changed files with 12 additions and 10 deletions
|
@ -18,16 +18,16 @@
|
|||
page()[
|
||||
#place(
|
||||
center + top,
|
||||
dy: 150pt,
|
||||
dy: 250pt,
|
||||
image(frontimage)
|
||||
)
|
||||
|
||||
#place(
|
||||
center + horizon,
|
||||
dy: 40pt,
|
||||
center + top,
|
||||
dy: 150pt,
|
||||
)[
|
||||
#set text(font: "Jost")
|
||||
#text(25pt, title)
|
||||
#text(35pt, title)
|
||||
|
||||
#{
|
||||
if subtitle != "None" {
|
||||
|
@ -37,7 +37,8 @@
|
|||
]
|
||||
|
||||
#place(
|
||||
center + bottom
|
||||
center + bottom,
|
||||
dy: -20pt,
|
||||
)[
|
||||
#set text(font: "Jost")
|
||||
#text(18pt)[Series: #category]
|
||||
|
@ -70,18 +71,18 @@
|
|||
#v(10pt)
|
||||
]
|
||||
show heading.where(level: 3): it => block(width: 100%)[
|
||||
#set text(size: 12pt, font: "Jost", style: "italic")
|
||||
#set text(size: 14pt, font: "Jost", style: "italic")
|
||||
#text(it.body)
|
||||
#v(10pt)
|
||||
]
|
||||
show heading.where(level: 4): it => block(width: 100%)[
|
||||
#set text(size: 11pt, font: "Jost")
|
||||
#text(it.body)
|
||||
#text(underline(it.body))
|
||||
#v(10pt)
|
||||
]
|
||||
|
||||
// table of contents
|
||||
outline(indent: 20pt, depth: 3)
|
||||
outline(indent: 20pt, depth: 2)
|
||||
|
||||
// format links
|
||||
show link: it => {
|
||||
|
@ -131,6 +132,7 @@
|
|||
content
|
||||
|
||||
set page(numbering: none)
|
||||
set heading(outlined: false)
|
||||
|
||||
// back cover inside
|
||||
page()[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue