Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Vogel a7f4937f9e fixed wrong header title being used
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 27s Details
2024-07-11 14:58:18 +02:00
Sven Vogel b46660e605 changed header style to omit last dot 2024-07-11 11:41:04 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@
if headers-before.len() > 0 { if headers-before.len() > 0 {
header-title = headers-before.last().body header-title = headers-before.last().body
} else { } else {
let headers-after = query(selector(heading.where(numbering: "1.", level: 1)).after(here())) let headers-after = query(selector(heading.where(numbering: "1.1.1", level: 1)).after(here()))
if headers-after.len() > 0 { if headers-after.len() > 0 {
header-title = headers-after.first().body header-title = headers-after.first().body
@ -172,13 +172,13 @@
} }
#let content_styled(config, body) = { #let content_styled(config, body) = {
set heading(numbering: "1.") set heading(numbering: "1.1.1")
body body
} }
#let end_styled(config, body) = { #let end_styled(config, body) = {
set heading(numbering: "1.") set heading(numbering: "1.1.1")
body body
} }