Add support for multiple authors and recipients

This commit is contained in:
2024-03-04 12:26:57 +02:00
parent 0cac60e898
commit af06a9983f
4 changed files with 26 additions and 12 deletions
+6 -2
View File
@@ -17,8 +17,12 @@ The following is an example on how to apply the report style for a document
[Technologinis projektas], [Technologinis projektas],
[Typst šablonas] [Typst šablonas]
), ),
author: "Vardenis Pavardenis", authors: ("Vardenis Pavardenis",),
recipient: "lekt. Petras Petraitis", recipients: (
"lekt. Petras Petraitis",
),
authorRole: "Studentas",
recipientRole: "Dėstytojas",
document: doc, document: doc,
) )
Binary file not shown.
+6 -2
View File
@@ -6,8 +6,12 @@
[Technologinis projektas], [Technologinis projektas],
[Typst šablonas] [Typst šablonas]
), ),
author: "Vardenis Pavardenis", authors: ("Vardenis Pavardenis",),
recipient: "lekt. Petras Petraitis", recipients: (
"lekt. Petras Petraitis",
),
authorRole: "Studentas",
recipientRole: "Dėstytojas",
document: doc, document: doc,
) )
+14 -8
View File
@@ -3,9 +3,10 @@
title, title,
subTitles, subTitles,
type: none, type: none,
author: none, authors: none,
recipientRole: none,
recipients: none, recipients: none,
recipientRole: none,
authorRole: none,
document: none document: none
) = { ) = {
@@ -107,14 +108,19 @@
// TODO: support multiple authors // TODO: support multiple authors
#v(15pt) #v(15pt)
#align(left)[ #align(left)[
#h(300pt)*#author* #for author in authors {
#parbreak()
#h(300pt)Studentas
#v(12pt)
#for recipientA in recipients {
[ [
//#v(-5pt) //#v(-5pt)
#h(300pt)*#recipientA* #h(300pt)*#author*
#parbreak()
]
}
#h(300pt)#authorRole
#v(12pt)
#for recipient in recipients {
[
//#v(-5pt)
#h(300pt)*#recipient*
#parbreak() #parbreak()
] ]
} }