From 0cc90b764c5b6b0dff77081470fb6797ed338996 Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Wed, 30 Jul 2025 01:09:07 +0200 Subject: [PATCH 1/2] abstract stuff --- lib/abstracts.typ | 5 +++-- lib/matisse-thesis.typ | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/abstracts.typ b/lib/abstracts.typ index afc5ce3..007877f 100644 --- a/lib/abstracts.typ +++ b/lib/abstracts.typ @@ -29,7 +29,8 @@ title-en: "", keywords-en: (), abstract-en: [], - heading-font: "TeX Gyre Heros", + font: "TeX Gyre Heros", + font-size: 11pt, school-color-verso: rgb("0054a0"), align-to-even-page: true, ) = { @@ -50,7 +51,7 @@ ), background: image(assets-folder + "abstracts-bg.svg") ) - set text(font: heading-font, fill: black) + set text(font: font, fill: black, size: font-size) place(dx: 100mm, dy: -15mm, etablissements-data.at(university).logo) place(dx: 0mm, dy: -15mm, image(assets-folder + "logo.png", width: 7.5cm)) diff --git a/lib/matisse-thesis.typ b/lib/matisse-thesis.typ index c9fab91..07bb769 100644 --- a/lib/matisse-thesis.typ +++ b/lib/matisse-thesis.typ @@ -29,6 +29,10 @@ font: "New Computer Modern", // font for heading heading-font: "TeX Gyre Heros", + // font for abstract + abstract-font: "TeX Gyre Heros", + // font size for abstract + abstract-font-size: 11pt, // text lang lang: "en", school-color-verso: rgb("0054a0"), @@ -252,7 +256,7 @@ 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, + font: abstract-font, font-size: abstract-font-size, school-color-verso: school-color-verso, align-to-even-page: not abstract-only ) } From 8327143cc5bbaf945d147be843b4a70f641e5e6c Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Wed, 30 Jul 2025 01:09:24 +0200 Subject: [PATCH 2/2] make figure floating --- lib/matisse-thesis.typ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/matisse-thesis.typ b/lib/matisse-thesis.typ index 07bb769..31d701c 100644 --- a/lib/matisse-thesis.typ +++ b/lib/matisse-thesis.typ @@ -172,6 +172,8 @@ it ) + set figure(placement: auto) + // ---------- LISTING ---------- show raw.where(block: true): it => { block(radius: 1em, fill: luma(240), inset: 1em, width: 80%, {