From: moo Date: Tue, 2 Jun 2026 04:10:02 +0000 (-0700) Subject: first commit X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;ds=inline;p=mla-essay-template.git first commit --- ec4256edfb503e82487cf64ea8e9c70d0183e6da 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"