From ec4256edfb503e82487cf64ea8e9c70d0183e6da Mon Sep 17 00:00:00 2001 From: moo Date: Mon, 1 Jun 2026 21:10:02 -0700 Subject: [PATCH 1/1] first commit --- lib.typ | 13 +++++++++++++ template/justfile | 16 ++++++++++++++++ template/main.typ | 4 ++++ typst.toml | 11 +++++++++++ 4 files changed, 44 insertions(+) create mode 100644 lib.typ create mode 100644 template/justfile create mode 100644 template/main.typ create mode 100644 typst.toml diff --git a/lib.typ b/lib.typ new file mode 100644 index 0000000..85da26e --- /dev/null +++ b/lib.typ @@ -0,0 +1,13 @@ +#let ting(doc, title: [doc], author:"Taran Nathan") = { + set page(paper: "us-letter", + header: align(right)[#context[#author.split(" ").last() #here().page()]]) + set text(12pt, weight: "medium", font: "Times New Roman", bottom-edge: 2em) + set par(first-line-indent: .5in, leading: 2em, spacing: 2em) + set block(spacing: 3em) + author; linebreak() + [Ms. McQuade];linebreak() + [English 9 Honors];linebreak() + datetime.today().display("[day] [month repr:long] [year]");linebreak() + align(center)[#title] + doc +} diff --git a/template/justfile b/template/justfile new file mode 100644 index 0000000..1d62db3 --- /dev/null +++ b/template/justfile @@ -0,0 +1,16 @@ +default: watch + +build: + typst compile main.typ + zathura main.pdf & + +watch: noview-build + zathura main.pdf & + typst watch main.typ + +clean: + rm -rf *.pdf + +[private] +noview-build: + typst compile main.typ diff --git a/template/main.typ b/template/main.typ new file mode 100644 index 0000000..99a871f --- /dev/null +++ b/template/main.typ @@ -0,0 +1,4 @@ +#import "@local/school:0.1.0": ting +#show: doc => ting(doc, title: "tootle") + +start here! diff --git a/typst.toml b/typst.toml new file mode 100644 index 0000000..bb18888 --- /dev/null +++ b/typst.toml @@ -0,0 +1,11 @@ +[package] +name = "school" +version = "0.1.0" +entrypoint = "lib.typ" +authors = ["Taran Nathan"] +license = "GNU AGPL v3" +description = "A template for writing MLA formatted english essays" + +[template] +path = "template" +entrypoint = "main.typ" -- 2.39.5