allow to compile only the abstract

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-07-24 14:59:26 +02:00
parent 45934c5fd2
commit f96615a4c0
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 64 additions and 23 deletions

View file

@ -4,6 +4,26 @@
#import "abstract.typ": keywords-en, keywords-fr, abstract-en, abstract-fr
#import "0_preamble/notations.typ": *
#let draft = if "draft" in sys.inputs {
assert(
sys.inputs.draft == "true" or sys.inputs.draft == "false",
message: "If --input draft=<val> is set, <val> must be 'true', or 'false'"
)
sys.inputs.draft == "true"
} else {
true
}
#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
}
#show: matisse-thesis.with(
title-fr: "Lorem Ipsum Fr",
title-en: "Lorem Ipsum",
@ -17,7 +37,8 @@
keywords-fr: keywords-fr,
abstract-en: abstract-en,
abstract-fr: abstract-fr,
draft: true,
draft: draft,
abstract-only: abstract-only,
)
// Preamble