Add support for multiple recipients and format image figures

This commit is contained in:
2024-02-26 11:53:56 +02:00
committed by GitHub
parent ad351fb6b6
commit 0cac60e898
+22 -5
View File
@@ -4,7 +4,8 @@
subTitles, subTitles,
type: none, type: none,
author: none, author: none,
recipient: none, recipientRole: none,
recipients: none,
document: none document: none
) = { ) = {
@@ -62,6 +63,16 @@
#it.body #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 heading(numbering: "1.")
// Set bibliography and citing style // Set bibliography and citing style
@@ -93,16 +104,22 @@
] ]
// Written by and intended for // Written by and intended for
// TODO: support multiple authors and recipients // TODO: support multiple authors
#v(15pt) #v(15pt)
#align(left)[ #align(left)[
#h(300pt)*#author* #h(300pt)*#author*
#parbreak() #parbreak()
#h(300pt)Studentas #h(300pt)Studentas
#v(12pt); #v(12pt)
#h(300pt)*#recipient* #for recipientA in recipients {
[
//#v(-5pt)
#h(300pt)*#recipientA*
#parbreak() #parbreak()
#h(300pt)Dėstytojas ]
}
#parbreak()
#h(300pt)#recipientRole
] ]
// Footer of place where it was written and year // Footer of place where it was written and year