From 967d83a2e37f20fa3e3c6a9dc93893d163de9598 Mon Sep 17 00:00:00 2001 From: Gaspard Jankowiak Date: Tue, 12 May 2026 20:44:10 +0200 Subject: [PATCH] import fix --- src/lib.typ | 45 +++++++++++++++++++++++++++++++++++++++++++++ template/report.typ | 21 +++++++++++++++++++++ typst.toml | 23 +++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 src/lib.typ create mode 100644 template/report.typ create mode 100644 typst.toml diff --git a/src/lib.typ b/src/lib.typ new file mode 100644 index 0000000..2075df8 --- /dev/null +++ b/src/lib.typ @@ -0,0 +1,45 @@ +#show math.equation: set text(font:"Fira Math", weight: "light") + +#let report( +lang: "en", + +title: [A nice report], +subtitle: [On an interesting topic], + +date: datetime.today().display("[day] [month repr:long], [year]"), + +department: [Department of Mathematics and \ Scientific Computing], + +author: [ + First Author \ + Second Author +]) = [ +#set text(font:"Nunito Sans", lang: lang) + +#set page(footer: align(right)[#context [page #counter(page).display("1 of 1", both: true)]]) +#page(footer:[], margin: (top: 2cm, left: 2cm, right: 2cm))[ +#align(right)[#rect(height: 3cm, inset: 0cm, stroke: none)[#grid(columns: 3, + block(inset: (x:0cm, y:0.1cm))[#text(14pt)[UNIVERSITY OF GRAZ] \ + #v(0.5em) + #department], + [#h(0.5cm)], + [#image("kfulogo-stripped.pdf", height: 2cm)] +)]] + +#v(1fr) + +*#text(24pt)[#title]* +#v(1em) +*#subtitle* +#v(2em) +#date + +#v(1fr) + +#text(16pt)[#author] + +#v(3cm) + +#image("Nawi_Graz_Logo_2015.png", width: 5cm) +] +] diff --git a/template/report.typ b/template/report.typ new file mode 100644 index 0000000..f6c47aa --- /dev/null +++ b/template/report.typ @@ -0,0 +1,21 @@ +#report() + +#outline() + += Introduction + +== Some toughts + +#lorem(200) + +== Some more toughts + +#lorem(50) + +#lorem(200) + += Main results + +#lorem(100) + +$ e^(i pi) + 1 = integral_0^(2 pi) sin(t) dif t $ diff --git a/typst.toml b/typst.toml new file mode 100644 index 0000000..c3fdcc9 --- /dev/null +++ b/typst.toml @@ -0,0 +1,23 @@ +[package] +name = "typst-kfu-report" +version = "0.1.0" +entrypoint = "src/lib.typ" +authors = ["Gaspard Jankowiak"] +description = "Unofficial Typst KFU report template" +homepage = "https://imsc.uni-graz.at/git/gjankowiak/typst-kfu-report" +repository = "https://imsc.uni-graz.at/git/gjankowiak/typst-kfu-report" +keywords = [""] +categories = [ + "layout", + "text", + "report", + "office", +] +disciplines = ["mathematics"] +compiler = "0.14.2" + +[template] +path = "template" +entrypoint = "report.typ" + +[tool]