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,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