mirror of
https://github.com/JustAnyones/ktu-paper.git
synced 2026-06-20 22:11:56 +00:00
Simplify report API
This commit is contained in:
@@ -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
@@ -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
@@ -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
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user