This commit is contained in:
parent
5611281c56
commit
e4c65b6384
5 changed files with 458 additions and 14 deletions
43
main.typ
43
main.typ
|
@ -26,16 +26,31 @@
|
|||
} else {
|
||||
false
|
||||
}
|
||||
#let abstract-only = if "abstract-only" in sys.inputs {
|
||||
assert(
|
||||
sys.inputs.abstract-only == "true" or sys.inputs.draft == "false",
|
||||
message: "If --input abstract-only=<val> is set, <val> must be 'true', or 'false'"
|
||||
)
|
||||
sys.inputs.abstract-only == "true"
|
||||
} else {
|
||||
false
|
||||
|
||||
#let (show_cover, show_body, show_abstracts) = {
|
||||
let show_cover = true
|
||||
let show_body = true
|
||||
let show_abstracts = true
|
||||
let abstract-only = false
|
||||
|
||||
if "abstract-only" in sys.inputs {
|
||||
assert(
|
||||
sys.inputs.abstract-only == "true" or sys.inputs.abstract-only == "false",
|
||||
message: "If --input abstract-only=<val> is set, <val> must be 'true', or 'false'"
|
||||
)
|
||||
if sys.inputs.abstract-only == "true" {
|
||||
show_cover = false
|
||||
show_body = false
|
||||
show_abstracts = true
|
||||
abstract-only = true
|
||||
}
|
||||
}
|
||||
|
||||
(show_cover, show_body, show_abstracts)
|
||||
}
|
||||
|
||||
|
||||
|
||||
#show: matisse-thesis.with(
|
||||
title-fr: [Rétro-Ingénierie d'applications Android: les inconvénients de l'analyse static], // malheurs -> inconvénients ?
|
||||
// Because "Android Skuldgerries and Other Headache Inducing Fuckeries" won't pass the vibe check
|
||||
|
@ -47,7 +62,7 @@
|
|||
year: 2025,
|
||||
month: 12,
|
||||
day: 10,
|
||||
).display(),
|
||||
).display("[year]-[month]-XX"),
|
||||
jury-content: jury-content,
|
||||
university: "CS",
|
||||
keywords-en: keywords-en,
|
||||
|
@ -56,12 +71,15 @@
|
|||
abstract-fr: abstract-fr,
|
||||
//abstract-font-size: 10pt,
|
||||
draft: draft,
|
||||
abstract-only: abstract-only,
|
||||
show_cover: show_cover,
|
||||
show_body: show_body,
|
||||
show_abstracts: show_abstracts,
|
||||
)
|
||||
|
||||
// Preamble
|
||||
#{
|
||||
set heading(numbering: none, outlined: false)
|
||||
set figure(outlined: false)
|
||||
set page(numbering: "i")
|
||||
counter(page).update(0)
|
||||
|
||||
|
@ -96,7 +114,12 @@
|
|||
|
||||
}
|
||||
|
||||
// Reset page and figure counters
|
||||
#counter(page).update(1)
|
||||
#counter(figure.where(kind: table)).update(0)
|
||||
#counter(figure.where(kind: image)).update(0)
|
||||
#counter(figure.where(kind: raw)).update(0)
|
||||
|
||||
|
||||
// Augment interline when compiling to paper draft
|
||||
#show par: set par(leading: 1.5em) if paper_draft
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue