feat(report): add list of tables and listings

This commit is contained in:
HEL
2026-07-23 11:46:08 +02:00
parent 30c3d3bf2a
commit d682a191f3
2 changed files with 33 additions and 10 deletions
+31 -9
View File
@@ -86,6 +86,29 @@
outlined: false,
)
// Table of figures/tables/listings
#context {
let f = inc.global-language.get()
let tab = outline.with(depth: 1, indent: auto)
{
show pagebreak: none
tab(
title: page-title(i18n(f, "figure-table-title"), mult: 1, top: 0.4em, bottom: 0.4em),
target: figure.where(kind: image),
)
tab(
title: page-title(i18n(f, "table-table-title"), mult: 1, top: 0.4em, bottom: 0.4em),
target: figure.where(kind: table),
)
}
show outline.entry: set text(size: 0.94em)
tab(
title: page-title(i18n(f, "listing-table-title"), mult: 1, top: 0.4em, bottom: 0.4em),
target: figure.where(kind: raw),
)
}
////////////////////////////
// Let's get started folks!
////////////////////////////
@@ -147,18 +170,9 @@ You can also change the order or the names of the sections, for instance, if you
#appendix-page()
#pagebreak()
#set heading(numbering: "A.1", supplement: [Appendix])
#set figure(numbering: (..nums) => counter(heading).display("A.1") + "." + numbering("1", ..nums))
// Table of acronyms (optional). Defined near the acronyms above.
#acronym-table()
#pagebreak()
// Table of listings
#table-of-figures()
// Code inclusion
#pagebreak()
#code-samples()
@@ -175,8 +189,16 @@ You can also change the order or the names of the sections, for instance, if you
#pagebreak()
#counter(heading).update(0)
#set heading(numbering: "A.1", supplement: [Appendix])
#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)
#counter(figure.where(kind: image)).update(0)
#counter(figure.where(kind: table)).update(0)
#counter(figure.where(kind: raw)).update(0)
= Midas Language Definition <app:midas-syntax>
+2 -1
View File
@@ -1 +1,2 @@
#import "@preview/isc-hei-bthesis:0.8.1"
//#import "@preview/isc-hei-bthesis:0.8.1"
#import "@local/isc-hei-bthesis:0.8.1"