fix wrong glossary and acronym group language (#50)
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
dd6a9ccce0
commit
410c753339
|
@ -7,7 +7,7 @@
|
|||
// Edited: 08.07.2024
|
||||
// License: MIT
|
||||
|
||||
#let glossary(entries) = {
|
||||
#let glossary(entries, config) = {
|
||||
|
||||
assert(
|
||||
type(entries) == dictionary,
|
||||
|
@ -54,13 +54,13 @@
|
|||
message: "The optional group of glossary entry `" + k + "` is not a string",
|
||||
)
|
||||
} else {
|
||||
let acronym_group = if (context text.lang) == "de" {
|
||||
"Akronyme"
|
||||
let acronym_group = if config.lang == "de" {
|
||||
"Abkürzungsverzeichnis"
|
||||
} else {
|
||||
"Acronyms"
|
||||
"List of Acronyms"
|
||||
}
|
||||
|
||||
let glossary_group = if (context text.lang) == "de" {
|
||||
let glossary_group = if config.lang == "de" {
|
||||
"Begriffe"
|
||||
} else {
|
||||
"Glossary"
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
show-all: true,
|
||||
disable-back-references: true,
|
||||
enable-group-pagebreak: true,
|
||||
glossary(config.thesis.glossary),
|
||||
glossary(config.thesis.glossary, config),
|
||||
)
|
||||
|
||||
pagebreak(weak: true)
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#import "abstract.typ": abstract, summary
|
||||
|
||||
#show: dhbw-template.with((
|
||||
lang: "en",
|
||||
region: "en",
|
||||
lang: "de",
|
||||
region: "de",
|
||||
draft: false,
|
||||
author: (
|
||||
name: "Sven Vogel",
|
||||
|
|
Loading…
Reference in New Issue