diff --git a/Assets/iso690-numeric-lt.csl b/Assets/iso690-numeric-lt.csl new file mode 100644 index 0000000..a77ba9e --- /dev/null +++ b/Assets/iso690-numeric-lt.csl @@ -0,0 +1,268 @@ + + \ No newline at end of file diff --git a/Assets/ktu.png b/Assets/ktu.png new file mode 100644 index 0000000..3131335 Binary files /dev/null and b/Assets/ktu.png differ diff --git a/template.typ b/template.typ new file mode 100644 index 0000000..654dda9 --- /dev/null +++ b/template.typ @@ -0,0 +1,139 @@ +// A template function to create a stylised report +#let ataskaita( + title, + subTitles, + type: none, + author: none, + recipient: none, + document: none +) = { + + // Setup page properties + set page( + paper: "a4", + width: 210mm, + height: 297mm, + numbering: none, + number-align: right, + margin: ( + right: 10mm, + left: 30mm, + bottom: 20mm, + top: 20mm + ) + ) + + set par( + leading: 1.15em + ) + + set par( + leading: 6pt + ) + + show: all => [ + #set text( + font: "Times New Roman", + size: 12pt, + style: "normal", + weight: "regular", + spacing: 200% + ) + #all + ] + + // Nustatom visus paragrafus + show heading: it => [ + #set align(left) + #set text( + font: "Times New Roman", + size: 12pt + ) + #counter(heading).display() #it.body + #v(0.35cm) + ] + + show heading.where(numbering: none): it => [ + #set align(center) + #set text( + font: "Times New Roman", + size: 12pt + ) + #it.body + ]; + + set heading(numbering: "1.") + + // Set bibliography and citing style + set bibliography(style: "Assets/iso690-numeric-lt.csl") + + + + // Title page + [ + // Top of the title page + #v(20pt) + #align(center)[ + #image("Assets/ktu.png", width: 2.46cm, height: 2.69cm) + #v(20pt)*Kauno technologijos universitetas* + #v(0pt)Informatikos fakultetas + #v(83pt) + ] + + // The title page information + #align(center)[ + #text(size: 18pt)[*#title*] + #for subTitle in subTitles { + [ + #v(-5pt) + #text(size: 14pt)[#subTitle] + ] + } + #v(100pt) + ] + + // Written by and intended for + // TODO: support multiple authors and recipients + #v(15pt) + #align(left)[ + #h(300pt)*#author* + #parbreak() + #h(300pt)Studentas + #v(12pt); + #h(300pt)*#recipient* + #parbreak() + #h(300pt)Dėstytojas + ] + + // Footer of place where it was written and year + #align(center+bottom)[ + *Kaunas, #datetime.today().year()* + ] + + #pagebreak() + + // Begin numbering from the outline + #set page( + numbering: "1" + ) + + #outline( + title: "Turinys" + ) + + #pagebreak() + + #document + ] +} + +// Bibliography shorthand +#let bibl(path) = { + [ + #bibliography( + path, + title: "Literatūros sąrašas", + full: true + ) + ] +}