Add presentation template and example files

This commit is contained in:
2023-12-15 22:34:17 +02:00
parent ab3c5d32e0
commit 2abae9a619
18 changed files with 897 additions and 2 deletions
+49 -1
View File
@@ -1,6 +1,12 @@
# KTU-Typst
To use the template
This repository contains a Typst template for KTU style presentation and written work.
To use the template, just import `template.typ` at the top of the Typst document and apply a show rule.
## Report
The following is an example on how to apply the report style for a document
```typst
#import "template.typ": ataskaita
@@ -19,3 +25,45 @@ To use the template
= Įvadas
...
```
## Presentation
For presentations, we use the Polylux Typst package. I suggest that you consult documentation on how it works before proceeding.
```typst
#import "@preview/polylux:0.3.1": *
#import "template.typ": *
#show: everything => ktu-theme(everything)
#ktu-title-slide[
= Pristatymo tema
#box[
#set text(size: 18pt)
Autoriai: Vardenis Pavardenis, Petras Petraitis
]
]
#ktu-outline-slide[
== Turinys
1. Įvadas
2. Dėstymas
3. Išvados
]
#ktu-main-slide[
== Įvadas
...
]
...
```
### Options
`#ktu-title-slide`
`#ktu-outline-slide`
`#ktu-main-slide`
`#ktu-no-vertical-slide`