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

@ -32,9 +32,19 @@
// text lang
lang: "en",
school-color-verso: rgb("0054a0"),
abstract-only: false,
body
) = {
assert-etablissements(university)
let show_cover = true
let show_body = true
let show_abstracts = true
if abstract-only {
show_cover = false
show_body = false
show_abstracts = true
}
if draft {
[== DRAFT - #title-en]
@ -211,31 +221,38 @@
// ---------- COVER PAGE ----------
cover(
title-en: title-en,
title-fr: title-fr,
author: author,
affiliation: affiliation,
defense-place: defense-place,
defense-date: defense-date,
jury-content: jury-content,
university: university,
speciality: speciality,
heading-font: heading-font,
)
if show_cover {
cover(
title-en: title-en,
title-fr: title-fr,
author: author,
affiliation: affiliation,
defense-place: defense-place,
defense-date: defense-date,
jury-content: jury-content,
university: university,
speciality: speciality,
heading-font: heading-font,
)
}
// ---------- BODY ----------
set par.line(numbering: n => text(red)[#n]) if draft
show figure: set par.line(numbering: none) if draft
body
if show_body {
body
}
// ---------- ABSTRACT ----------
abstracts(
university: university,
title-fr: title-fr, keywords-fr: keywords-fr, abstract-fr: abstract-fr,
title-en: title-en, keywords-en: keywords-en, abstract-en: abstract-en,
heading-font: heading-font, school-color-verso: school-color-verso,
)
if show_abstracts {
abstracts(
university: university,
title-fr: title-fr, keywords-fr: keywords-fr, abstract-fr: abstract-fr,
title-en: title-en, keywords-en: keywords-en, abstract-en: abstract-en,
heading-font: heading-font, school-color-verso: school-color-verso,
align-to-even-page: not abstract-only
)
}
}