summaryrefslogtreecommitdiff
path: root/mod/tools/typst/packages/tmu
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-01-21 09:44:01 -0500
committerKleidi Bujari <mail@4kb.net>2025-01-21 09:44:01 -0500
commite6d03b7d7ea505b222545001ba3d08cc42e3e277 (patch)
tree02f3a4ccf12da98b2c3b3af0f79ab78f8548fb8e /mod/tools/typst/packages/tmu
parente181e1e1a154b280a2dc045d1d38b13d7f0ef2bc (diff)
downloaddepot-e6d03b7d7ea505b222545001ba3d08cc42e3e277.tar.gz
depot-e6d03b7d7ea505b222545001ba3d08cc42e3e277.tar.bz2
depot-e6d03b7d7ea505b222545001ba3d08cc42e3e277.zip
add typst writing env init
Diffstat (limited to 'mod/tools/typst/packages/tmu')
-rw-r--r--mod/tools/typst/packages/tmu/template.typ37
-rw-r--r--mod/tools/typst/packages/tmu/typst.toml7
2 files changed, 44 insertions, 0 deletions
diff --git a/mod/tools/typst/packages/tmu/template.typ b/mod/tools/typst/packages/tmu/template.typ
new file mode 100644
index 0000000..721e7b6
--- /dev/null
+++ b/mod/tools/typst/packages/tmu/template.typ
@@ -0,0 +1,37 @@
+#let report(
+ title: [],
+ course: [],
+ semester: [],
+ authors: (),
+ doc,
+) = {
+ set page(
+ paper: "us-letter",
+ margin: 1.5in,
+ numbering: "1",
+ header: align(horizon, strong(course + h(1fr) + semester)),
+ )
+
+ set align(center)
+ text(18pt, strong(title))
+ linebreak()
+ text(12pt, "Toronto Metropolitan University")
+
+ v(24pt)
+
+ grid(
+ columns: (1fr,) * calc.min(authors.len(), 4),
+ row-gutter: 12pt,
+ ..authors.map(a => [
+ #a.name \
+ #a.id \
+ #link("mailto:" + a.email)
+ ])
+ )
+
+ set align(left)
+ set par(justify: true)
+ v(24pt)
+
+ doc
+}
diff --git a/mod/tools/typst/packages/tmu/typst.toml b/mod/tools/typst/packages/tmu/typst.toml
new file mode 100644
index 0000000..caf96d7
--- /dev/null
+++ b/mod/tools/typst/packages/tmu/typst.toml
@@ -0,0 +1,7 @@
+[package]
+name = "tmu"
+version = "0.0.0"
+entrypoint = "template.typ"
+authors = ["Kleidi Bujari"]
+license = "MIT"
+description = "TMU engineering report template"