From f281f923564fd4c5dd412059e1d9fbe5b1f44584 Mon Sep 17 00:00:00 2001 From: C0ffeeCode Date: Wed, 20 Mar 2024 14:30:27 +0100 Subject: [PATCH] fix: incorectly calling all Figures "Section" when referencing them --- template.typ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/template.typ b/template.typ index acfc331..ecb5392 100755 --- a/template.typ +++ b/template.typ @@ -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 + } } })