diff --git a/README.md b/README.md index 46c7ded..65040c5 100644 --- a/README.md +++ b/README.md @@ -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, ) diff --git a/examples/report.pdf b/examples/report.pdf index 7242c78..eb098f2 100644 Binary files a/examples/report.pdf and b/examples/report.pdf differ diff --git a/examples/report.typ b/examples/report.typ index 1fb6090..2ed2e63 100644 --- a/examples/report.typ +++ b/examples/report.typ @@ -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, ) diff --git a/template.typ b/template.typ index 8dd5e1c..26fd3c8 100644 --- a/template.typ +++ b/template.typ @@ -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() ] }