After setting up this code:
set page(
paper: "a4",
background: image("background.svg", width: 100%, height: 100%),
header: context {
if counter(page).get().first() == 1 {
none
} else {
[
#title | #subtitle
#h(1fr)
#author | #id
]
}
},
footer: context {
let page_number = counter(page).get().first()
let total_pages = counter(page).final().last()
align(center)[
#set text(size: 8pt)
#page_number / #total_pages
]
},
)
Onto my template, jumping from preview to code doesn’t work. (Yet from code to preview is OK.)
My workload:
VSCode,
Tinymist Typst,
typst 0.12.0 (737895d7)
My template is on GitHub:
Link