fix heading supplement not translated (#52)
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 27s
Details
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 27s
Details
This commit is contained in:
parent
0438d73ab5
commit
e1b8eceea6
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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)")
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue