fix heading supplement not translated (#52)
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 27s Details

This commit is contained in:
Sven Vogel 2024-08-26 16:10:52 +02:00
parent 0438d73ab5
commit e1b8eceea6
3 changed files with 16 additions and 4 deletions

View File

@ -80,9 +80,15 @@
"Table of Contents"
}
let header-supplement = if (text.lang == "de") {
"Kapitel"
} else {
"chapter"
}
pagebreak(weak: true)
outline(
target: heading.where(supplement: [chapter]),
target: heading.where(supplement: [#header-supplement]),
title: title,
indent: auto,
)

View File

@ -69,7 +69,13 @@
weight: "semibold",
)
set heading(supplement: [chapter])
let header-supplement = if config.lang == "de" {
"Kapitel"
} else {
"chapter"
}
set heading(supplement: [#header-supplement])
set math.equation(numbering: "(1)")

View File

@ -51,7 +51,7 @@
#lorem(200)
@einstein
= Lorem Ipsum 3
= Lorem Ipsum 3 <sec:hello>
#lorem(15) t `Hello, World!` #lorem(50)
@ -68,7 +68,7 @@ $
lorem(200),
)
#url("https://github.com", "text")
#url("https://github.com", "text") @sec:hello
#lorem(50)