diff --git a/README.md b/README.md index 65040c5..60c0e69 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The following is an example on how to apply the report style for a document ```typst #import "template.typ": ataskaita -#show: doc => ataskaita( +#show: ataskaita.with( "Kompiuterinis raštingumas", ( [Technologinis projektas], @@ -22,8 +22,7 @@ The following is an example on how to apply the report style for a document "lekt. Petras Petraitis", ), authorRole: "Studentas", - recipientRole: "Dėstytojas", - document: doc, + recipientRole: "Dėstytojas" ) = Įvadas diff --git a/examples/report.pdf b/examples/report.pdf index eb098f2..874dd94 100644 Binary files a/examples/report.pdf and b/examples/report.pdf differ diff --git a/examples/report.typ b/examples/report.typ index 2ed2e63..ca69889 100644 --- a/examples/report.typ +++ b/examples/report.typ @@ -1,6 +1,6 @@ #import "../template.typ": ataskaita, bibl -#show: doc => ataskaita( +#show: ataskaita.with( "Kompiuterinis raštingumas", ( [Technologinis projektas], @@ -11,8 +11,7 @@ "lekt. Petras Petraitis", ), authorRole: "Studentas", - recipientRole: "Dėstytojas", - document: doc, + recipientRole: "Dėstytojas" ) = Įvadas diff --git a/template.typ b/template.typ index 26fd3c8..c319a98 100644 --- a/template.typ +++ b/template.typ @@ -7,7 +7,7 @@ recipients: none, recipientRole: none, authorRole: none, - document: none + body ) = { // Setup page properties @@ -146,7 +146,7 @@ #pagebreak() - #document + #body ] }