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"
|
"Table of Contents"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let header-supplement = if (text.lang == "de") {
|
||||||
|
"Kapitel"
|
||||||
|
} else {
|
||||||
|
"chapter"
|
||||||
|
}
|
||||||
|
|
||||||
pagebreak(weak: true)
|
pagebreak(weak: true)
|
||||||
outline(
|
outline(
|
||||||
target: heading.where(supplement: [chapter]),
|
target: heading.where(supplement: [#header-supplement]),
|
||||||
title: title,
|
title: title,
|
||||||
indent: auto,
|
indent: auto,
|
||||||
)
|
)
|
||||||
|
|
|
@ -69,7 +69,13 @@
|
||||||
weight: "semibold",
|
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)")
|
set math.equation(numbering: "(1)")
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
#lorem(200)
|
#lorem(200)
|
||||||
@einstein
|
@einstein
|
||||||
|
|
||||||
= Lorem Ipsum 3
|
= Lorem Ipsum 3 <sec:hello>
|
||||||
|
|
||||||
#lorem(15) t `Hello, World!` #lorem(50)
|
#lorem(15) t `Hello, World!` #lorem(50)
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ $
|
||||||
lorem(200),
|
lorem(200),
|
||||||
)
|
)
|
||||||
|
|
||||||
#url("https://github.com", "text")
|
#url("https://github.com", "text") @sec:hello
|
||||||
|
|
||||||
#lorem(50)
|
#lorem(50)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue