feat(report): add list of tables and listings
This commit is contained in:
@@ -86,6 +86,29 @@
|
|||||||
outlined: false,
|
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!
|
// 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()
|
#appendix-page()
|
||||||
#pagebreak()
|
#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.
|
// Table of acronyms (optional). Defined near the acronyms above.
|
||||||
#acronym-table()
|
#acronym-table()
|
||||||
|
|
||||||
#pagebreak()
|
|
||||||
|
|
||||||
// Table of listings
|
|
||||||
#table-of-figures()
|
|
||||||
|
|
||||||
// Code inclusion
|
// Code inclusion
|
||||||
#pagebreak()
|
#pagebreak()
|
||||||
#code-samples()
|
#code-samples()
|
||||||
@@ -175,8 +189,16 @@ You can also change the order or the names of the sections, for instance, if you
|
|||||||
|
|
||||||
#pagebreak()
|
#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)
|
#set heading(outlined: false)
|
||||||
#show heading.where(level: 1): set heading(outlined: true)
|
#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>
|
= Midas Language Definition <app:midas-syntax>
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user