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],
|
[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
@@ -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
@@ -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()
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user