From 0cac60e898a8279980100f09a732e17fb555b59e Mon Sep 17 00:00:00 2001 From: JustAnyone Date: Mon, 26 Feb 2024 11:53:56 +0200 Subject: [PATCH] Add support for multiple recipients and format image figures --- template.typ | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/template.typ b/template.typ index 3fc53d0..8dd5e1c 100644 --- a/template.typ +++ b/template.typ @@ -4,7 +4,8 @@ subTitles, type: none, author: none, - recipient: none, + recipientRole: none, + recipients: none, document: none ) = { @@ -62,6 +63,16 @@ #it.body ]; + // Setup figures + set figure.caption(separator: [.]) + show figure.caption: it => [ + #let supplement = it.supplement + #if it.kind == image { + supplement = "pav" + } + #it.counter.display(it.numbering) #supplement#it.separator #it.body + ] + set heading(numbering: "1.") // Set bibliography and citing style @@ -93,16 +104,22 @@ ] // Written by and intended for - // TODO: support multiple authors and recipients + // TODO: support multiple authors #v(15pt) #align(left)[ #h(300pt)*#author* #parbreak() #h(300pt)Studentas - #v(12pt); - #h(300pt)*#recipient* + #v(12pt) + #for recipientA in recipients { + [ + //#v(-5pt) + #h(300pt)*#recipientA* + #parbreak() + ] + } #parbreak() - #h(300pt)DÄ—stytojas + #h(300pt)#recipientRole ] // Footer of place where it was written and year @@ -423,4 +440,4 @@ image("Assets/ktu-text.svg", height: 10mm) ) ] -} \ No newline at end of file +}