mirror of
https://github.com/C0ffeeCode/typst-dhbw-technik-template.git
synced 2025-12-28 17:22:19 +01:00
fix: incorectly calling all Figures "Section" when referencing them
This commit is contained in:
parent
1558c5a6b1
commit
f281f92356
1 changed files with 6 additions and 4 deletions
|
|
@ -256,11 +256,13 @@
|
||||||
|
|
||||||
// rename level 1 headings to "Chapter", otherwise "Section"
|
// rename level 1 headings to "Chapter", otherwise "Section"
|
||||||
#set ref(supplement: it => {
|
#set ref(supplement: it => {
|
||||||
if it.func() == heading and it.level == 1 {
|
if it.func() == heading {
|
||||||
|
if it.level == 1 {
|
||||||
selected_lang.chapter
|
selected_lang.chapter
|
||||||
} else {
|
} else {
|
||||||
selected_lang.section
|
selected_lang.section
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// beginning of the document, render the title page
|
// beginning of the document, render the title page
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue