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],
[Typst šablonas]
),
author: "Vardenis Pavardenis",
recipient: "lekt. Petras Petraitis",
authors: ("Vardenis Pavardenis",),
recipients: (
"lekt. Petras Petraitis",
),
authorRole: "Studentas",
recipientRole: "Dėstytojas",
document: doc,
)
Binary file not shown.
+6 -2
View File
@@ -6,8 +6,12 @@
[Technologinis projektas],
[Typst šablonas]
),
author: "Vardenis Pavardenis",
recipient: "lekt. Petras Petraitis",
authors: ("Vardenis Pavardenis",),
recipients: (
"lekt. Petras Petraitis",
),
authorRole: "Studentas",
recipientRole: "Dėstytojas",
document: doc,
)
+14 -8
View File
@@ -3,9 +3,10 @@
title,
subTitles,
type: none,
author: none,
recipientRole: none,
authors: none,
recipients: none,
recipientRole: none,
authorRole: none,
document: none
) = {
@@ -107,14 +108,19 @@
// TODO: support multiple authors
#v(15pt)
#align(left)[
#h(300pt)*#author*
#parbreak()
#h(300pt)Studentas
#v(12pt)
#for recipientA in recipients {
#for author in authors {
[
//#v(-5pt)
#h(300pt)*#recipientA*
#h(300pt)*#author*
#parbreak()
]
}
#h(300pt)#authorRole
#v(12pt)
#for recipient in recipients {
[
//#v(-5pt)
#h(300pt)*#recipient*
#parbreak()
]
}