allow to compile only the abstract
This commit is contained in:
parent
45934c5fd2
commit
f96615a4c0
3 changed files with 64 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue