diff --git a/lib/abstracts.typ b/lib/abstracts.typ index afc5ce3..168ee74 100644 --- a/lib/abstracts.typ +++ b/lib/abstracts.typ @@ -30,18 +30,15 @@ keywords-en: (), abstract-en: [], heading-font: "TeX Gyre Heros", - school-color-verso: rgb("0054a0"), - align-to-even-page: true, + school-color-verso: rgb("0054a0") ) = { set page( numbering: none, header: none, ) - if align-to-even-page { - pagebreak() - pagebreak(to: "even") - } + pagebreak() + pagebreak(to: "even") set page( margin: ( diff --git a/lib/matisse-thesis.typ b/lib/matisse-thesis.typ index c9fab91..952455d 100644 --- a/lib/matisse-thesis.typ +++ b/lib/matisse-thesis.typ @@ -32,19 +32,9 @@ // 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] @@ -222,38 +212,31 @@ // ---------- COVER PAGE ---------- - 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, - ) - } + 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 - if show_body { - body - } + body // ---------- ABSTRACT ---------- - 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 - ) - } + 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, + ) } diff --git a/template/main.typ b/template/main.typ index 14c4113..8448c82 100644 --- a/template/main.typ +++ b/template/main.typ @@ -4,26 +4,6 @@ #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= is set, 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= is set, 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", @@ -37,8 +17,7 @@ keywords-fr: keywords-fr, abstract-en: abstract-en, abstract-fr: abstract-fr, - draft: draft, - abstract-only: abstract-only, + draft: true, ) // Preamble