]> git.taranathan.com Git - mla-essay-template.git/commitdiff
first commit main
authormoo <moogoesmeow123@gmail.com>
Tue, 2 Jun 2026 04:10:02 +0000 (21:10 -0700)
committermoo <moogoesmeow123@gmail.com>
Tue, 2 Jun 2026 04:10:02 +0000 (21:10 -0700)
lib.typ [new file with mode: 0644]
template/justfile [new file with mode: 0644]
template/main.typ [new file with mode: 0644]
typst.toml [new file with mode: 0644]

diff --git a/lib.typ b/lib.typ
new file mode 100644 (file)
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 (file)
index 0000000..1d62db3
--- /dev/null
@@ -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 (file)
index 0000000..99a871f
--- /dev/null
@@ -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 (file)
index 0000000..bb18888
--- /dev/null
@@ -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"