mirror of
https://github.com/C0ffeeCode/typst-dhbw-technik-template.git
synced 2025-12-28 15:22:18 +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
10
template.typ
10
template.typ
|
|
@ -256,10 +256,12 @@
|
||||||
|
|
||||||
// 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 {
|
||||||
selected_lang.chapter
|
if it.level == 1 {
|
||||||
} else {
|
selected_lang.chapter
|
||||||
selected_lang.section
|
} else {
|
||||||
|
selected_lang.section
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue