Simplify report API

This commit is contained in:
2024-03-30 12:15:31 +02:00
parent af06a9983f
commit 9586d97fc2
4 changed files with 6 additions and 8 deletions
+2 -3
View File
@@ -11,7 +11,7 @@ The following is an example on how to apply the report style for a document
```typst ```typst
#import "template.typ": ataskaita #import "template.typ": ataskaita
#show: doc => ataskaita( #show: ataskaita.with(
"Kompiuterinis raštingumas", "Kompiuterinis raštingumas",
( (
[Technologinis projektas], [Technologinis projektas],
@@ -22,8 +22,7 @@ The following is an example on how to apply the report style for a document
"lekt. Petras Petraitis", "lekt. Petras Petraitis",
), ),
authorRole: "Studentas", authorRole: "Studentas",
recipientRole: "Dėstytojas", recipientRole: "Dėstytojas"
document: doc,
) )
= Įvadas = Įvadas
Binary file not shown.
+2 -3
View File
@@ -1,6 +1,6 @@
#import "../template.typ": ataskaita, bibl #import "../template.typ": ataskaita, bibl
#show: doc => ataskaita( #show: ataskaita.with(
"Kompiuterinis raštingumas", "Kompiuterinis raštingumas",
( (
[Technologinis projektas], [Technologinis projektas],
@@ -11,8 +11,7 @@
"lekt. Petras Petraitis", "lekt. Petras Petraitis",
), ),
authorRole: "Studentas", authorRole: "Studentas",
recipientRole: "Dėstytojas", recipientRole: "Dėstytojas"
document: doc,
) )
= Įvadas = Įvadas
+2 -2
View File
@@ -7,7 +7,7 @@
recipients: none, recipients: none,
recipientRole: none, recipientRole: none,
authorRole: none, authorRole: none,
document: none body
) = { ) = {
// Setup page properties // Setup page properties
@@ -146,7 +146,7 @@
#pagebreak() #pagebreak()
#document #body
] ]
} }