From fef5f2d94cdd1901075b9ba83ba7189601c7f7cd Mon Sep 17 00:00:00 2001 From: Mickaƫl Canouil <8896044+mcanouil@users.noreply.github.com> Date: Sun, 12 May 2024 18:39:27 +0200 Subject: Add subtitle to Typst template (#9747) --- data/templates/default.typst | 3 +++ data/templates/template.typst | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'data') diff --git a/data/templates/default.typst b/data/templates/default.typst index ee4b8212f..37e8a6247 100644 --- a/data/templates/default.typst +++ b/data/templates/default.typst @@ -24,6 +24,9 @@ $endif$ $if(title)$ title: [$title$], $endif$ +$if(subtitle)$ + subtitle: [$subtitle$], +$endif$ $if(author)$ authors: ( $for(author)$ diff --git a/data/templates/template.typst b/data/templates/template.typst index e1ac3ec37..8672647be 100644 --- a/data/templates/template.typst +++ b/data/templates/template.typst @@ -1,5 +1,6 @@ #let conf( title: none, + subtitle: none, authors: (), keywords: (), date: none, @@ -34,6 +35,10 @@ if title != none { align(center)[#block(inset: 2em)[ #text(weight: "bold", size: 1.5em)[#title] + #(if subtitle != none { + parbreak() + text(weight: "bold", size: 1.25em)[#subtitle] + }) ]] } -- cgit v1.2.3