fix(report): chapter heading supplement

This commit is contained in:
HEL
2026-07-23 18:08:06 +02:00
parent e21fbbe53e
commit 2ec86366f2
+9 -2
View File
@@ -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)