mirror of
https://github.com/JustAnyones/ktu-paper.git
synced 2026-06-20 22:11:56 +00:00
Add support for multiple authors and recipients
This commit is contained in:
@@ -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
@@ -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
@@ -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()
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user