fix: incorectly calling all Figures "Section" when referencing them

This commit is contained in:
Laurenz 2024-03-20 14:30:27 +01:00
parent 1558c5a6b1
commit f281f92356
No known key found for this signature in database
GPG key ID: E3D5C22DBA1A8C36

View file

@ -256,10 +256,12 @@
// rename level 1 headings to "Chapter", otherwise "Section"
#set ref(supplement: it => {
if it.func() == heading and it.level == 1 {
selected_lang.chapter
} else {
selected_lang.section
if it.func() == heading {
if it.level == 1 {
selected_lang.chapter
} else {
selected_lang.section
}
}
})