From 37492d223dfb332acba1f3b924224804e9594f4a Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Fri, 4 Jul 2025 14:45:03 +0200 Subject: [PATCH] grey out lorem ipsum and add option to increase interline --- 0_preamble/acknowledgements.typ | 2 +- 0_preamble/french_summary.typ | 2 +- 2_background/main.typ | 2 +- abstract.typ | 4 ++-- main.typ | 22 +++++++++++++++++++++- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/0_preamble/acknowledgements.typ b/0_preamble/acknowledgements.typ index 9beaac2..c1c650d 100644 --- a/0_preamble/acknowledgements.typ +++ b/0_preamble/acknowledgements.typ @@ -4,4 +4,4 @@ #todo[Acknowledge people] -#lorem(400) +#text(fill: luma(75%), lorem(400)) diff --git a/0_preamble/french_summary.typ b/0_preamble/french_summary.typ index 4231b44..4f9ada1 100644 --- a/0_preamble/french_summary.typ +++ b/0_preamble/french_summary.typ @@ -9,7 +9,7 @@ Write a "Substantial Summary" in french, at least 4 pages: https://ed-matisse.doctorat-bretagne.fr/fr/soutenance-de-these#p-151 ] -#lorem(200) +#text(fill: luma(75%), lorem(200)) /* * Vocabulaire: diff --git a/2_background/main.typ b/2_background/main.typ index 00076e1..671224c 100644 --- a/2_background/main.typ +++ b/2_background/main.typ @@ -4,4 +4,4 @@ #todo[Present field background and related work] -#lorem(200) +#text(fill: luma(75%), lorem(200)) diff --git a/abstract.typ b/abstract.typ index 7b4ca40..ed4ae95 100644 --- a/abstract.typ +++ b/abstract.typ @@ -4,6 +4,6 @@ #let keywords-fr = ("Android", "analyse de maliciels", "analyse statique", "chargement de classe", "brouillage de code") -#let abstract-en = lorem(175) +#let abstract-en = text(fill: luma(75%), lorem(175)) -#let abstract-fr = lorem(175) +#let abstract-fr = text(fill: luma(75%), lorem(175)) diff --git a/main.typ b/main.typ index 5dbf852..7fab6ce 100644 --- a/main.typ +++ b/main.typ @@ -13,6 +13,19 @@ } else { true } +#let paper_draft = if "paper" in sys.inputs { + assert( + sys.inputs.paper == "true" or sys.inputs.paper == "false", + message: "If --input paper= is set, must be 'true', or 'false'" + ) + assert( + draft, + message: "paper can only be set if --input draft=true is set" + ) + sys.inputs.draft == "true" +} else { + false +} #show: matisse-thesis.with( title-fr: todo[Find a title], @@ -69,6 +82,13 @@ #counter(page).update(1) +// Augment interline when compiling to paper draft +#show par: set par(leading: 1.5em) if paper_draft +#show par: set par(spacing: 1.5em) if paper_draft +// Keep interline in table +#show table: set par(leading: 0.65em) if paper_draft + + #include("1_introduction/main.typ") #include("2_background/main.typ") #include("3_rasta/main.typ") @@ -79,6 +99,6 @@ #todo[Conclude] -#lorem(500) +#text(fill: luma(75%), lorem(500)) #bibliography("bibliography.bib")