From 2ec86366f29fe0d13b880d41f104bf126192f4da Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Thu, 23 Jul 2026 18:08:06 +0200 Subject: [PATCH] fix(report): chapter heading supplement --- report/bachelor_thesis.typ | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/report/bachelor_thesis.typ b/report/bachelor_thesis.typ index 2f4a1a0..ad533f2 100644 --- a/report/bachelor_thesis.typ +++ b/report/bachelor_thesis.typ @@ -148,6 +148,10 @@ This structure may vary depending on the field of study, but these elements are You can also change the order or the names of the sections, for instance, if you want to put the state of the art before the introduction, or if you want to add a section on methodology before the results. */ +#show heading.where(level: 1): set heading(supplement: context { + let f = inc.global-language.get() + i18n(f, "chapter-title") +}) #include "chapters/01_introduction.typ" #include "chapters/02_state_of_the_art.typ" #include "chapters/03_theory.typ" @@ -191,11 +195,14 @@ You can also change the order or the names of the sections, for instance, if you #counter(heading).update(0) -#set heading(numbering: "A.1", supplement: [Appendix]) +#set heading(numbering: "A.1") #set figure(numbering: (..nums) => counter(heading).display("A.1") + "." + numbering("1", ..nums)) #set heading(outlined: false) -#show heading.where(level: 1): set heading(outlined: true) +#show heading.where(level: 1): set heading( + outlined: true, + supplement: [Appendix] +) #counter(figure.where(kind: image)).update(0) #counter(figure.where(kind: table)).update(0) #counter(figure.where(kind: raw)).update(0)