Add format 2 templates (.znx without looks) under v2
Browse files- .gitattributes +6 -0
- v2/index.json +228 -0
- v2/src/blueprint/theme.json +32 -0
- v2/src/blueprint/typst/lib.typ +85 -0
- v2/src/blueprint/typst/typst.toml +4 -0
- v2/src/boardroom/theme.json +37 -0
- v2/src/boardroom/typst/lib.typ +105 -0
- v2/src/boardroom/typst/typst.toml +4 -0
- v2/src/books/theme.json +32 -0
- v2/src/classroom/theme.json +37 -0
- v2/src/classroom/typst/lib.typ +118 -0
- v2/src/classroom/typst/typst.toml +4 -0
- v2/src/papers/theme.json +33 -0
- v2/src/resume/theme.json +22 -0
- v2/src/zal-analytics/theme.json +33 -0
- v2/src/zal-analytics/typst/fonts/Inter-Bold.ttf +3 -0
- v2/src/zal-analytics/typst/fonts/Inter-Italic.ttf +3 -0
- v2/src/zal-analytics/typst/fonts/Inter-LICENSE.txt +92 -0
- v2/src/zal-analytics/typst/fonts/Inter-Medium.ttf +3 -0
- v2/src/zal-analytics/typst/fonts/Inter-Regular.ttf +3 -0
- v2/src/zal-analytics/typst/fonts/Inter-SemiBold.ttf +3 -0
- v2/src/zal-analytics/typst/lib.typ +87 -0
- v2/src/zal-analytics/typst/typst.toml +4 -0
- v2/themes/blueprint.znx +0 -0
- v2/themes/boardroom.znx +0 -0
- v2/themes/books.znx +0 -0
- v2/themes/classroom.znx +0 -0
- v2/themes/papers.znx +0 -0
- v2/themes/resume.znx +0 -0
- v2/themes/zal-analytics.znx +3 -0
.gitattributes
CHANGED
|
@@ -65,3 +65,9 @@ src/zal-analytics/typst/fonts/Inter-Regular.ttf filter=lfs diff=lfs merge=lfs -t
|
|
| 65 |
src/zal-analytics/typst/fonts/Inter-SemiBold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
themes/zal-analytics.znote-theme filter=lfs diff=lfs merge=lfs -text
|
| 67 |
themes/zal-analytics.znx filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
src/zal-analytics/typst/fonts/Inter-SemiBold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
themes/zal-analytics.znote-theme filter=lfs diff=lfs merge=lfs -text
|
| 67 |
themes/zal-analytics.znx filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
v2/src/zal-analytics/typst/fonts/Inter-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
v2/src/zal-analytics/typst/fonts/Inter-Italic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
v2/src/zal-analytics/typst/fonts/Inter-Medium.ttf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
v2/src/zal-analytics/typst/fonts/Inter-Regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
v2/src/zal-analytics/typst/fonts/Inter-SemiBold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
v2/themes/zal-analytics.znx filter=lfs diff=lfs merge=lfs -text
|
v2/index.json
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"format": 2,
|
| 4 |
+
"id": "blueprint",
|
| 5 |
+
"name": "Blueprint",
|
| 6 |
+
"version": "1.0.0",
|
| 7 |
+
"description": "An engineering look with templates for specifications, design documents and test reports.",
|
| 8 |
+
"category": "Technical",
|
| 9 |
+
"tags": [
|
| 10 |
+
"engineering",
|
| 11 |
+
"teal",
|
| 12 |
+
"specification"
|
| 13 |
+
],
|
| 14 |
+
"typst": {
|
| 15 |
+
"templates": [
|
| 16 |
+
{
|
| 17 |
+
"label": "Specification",
|
| 18 |
+
"kind": "document",
|
| 19 |
+
"snippet": "#import \"@themes/blueprint:1.0.0\": *\n#show: specification.with(title: \"Title\", number: \"DOC-0001\", revision: \"A\", status: \"Draft\", author: \"Your name\")\n"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"label": "Design document",
|
| 23 |
+
"kind": "document",
|
| 24 |
+
"snippet": "#import \"@themes/blueprint:1.0.0\": *\n#show: design.with(title: \"Title\", author: \"Your name\", status: \"Draft\", reviewers: \"Reviewer names\")\n"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"label": "Test report",
|
| 28 |
+
"kind": "document",
|
| 29 |
+
"snippet": "#import \"@themes/blueprint:1.0.0\": *\n#show: test-report.with(title: \"Title\", number: \"TR-0001\", tester: \"Your name\")\n"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"format": 2,
|
| 36 |
+
"id": "boardroom",
|
| 37 |
+
"name": "Boardroom",
|
| 38 |
+
"version": "1.0.0",
|
| 39 |
+
"description": "A navy corporate look with templates for reports, memos, letters and slide decks.",
|
| 40 |
+
"category": "Business",
|
| 41 |
+
"tags": [
|
| 42 |
+
"corporate",
|
| 43 |
+
"navy",
|
| 44 |
+
"office"
|
| 45 |
+
],
|
| 46 |
+
"typst": {
|
| 47 |
+
"templates": [
|
| 48 |
+
{
|
| 49 |
+
"label": "Report",
|
| 50 |
+
"kind": "document",
|
| 51 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: report.with(title: \"Title\", subtitle: \"Subtitle\", author: \"Your name\")\n"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"label": "Memo",
|
| 55 |
+
"kind": "document",
|
| 56 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: memo.with(to: \"Recipient\", from: \"Your name\", subject: \"Subject\")\n"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"label": "Letter",
|
| 60 |
+
"kind": "document",
|
| 61 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: letter.with(sender: [Your name \\ Street 1 \\ City], recipient: [Recipient \\ Street 2 \\ City], subject: \"Subject\", name: \"Your name\")\n"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"label": "Slide deck",
|
| 65 |
+
"kind": "slides",
|
| 66 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: slides.with(title: \"Title\", subtitle: \"Subtitle\", author: \"Your name\")\n"
|
| 67 |
+
}
|
| 68 |
+
]
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"format": 2,
|
| 73 |
+
"id": "books",
|
| 74 |
+
"name": "Books and newsletters",
|
| 75 |
+
"version": "1.0.0",
|
| 76 |
+
"description": "Templates for long books, novels and a department newsletter, built on packages from Typst Universe.",
|
| 77 |
+
"category": "Creative",
|
| 78 |
+
"tags": [
|
| 79 |
+
"book",
|
| 80 |
+
"novel",
|
| 81 |
+
"newsletter"
|
| 82 |
+
],
|
| 83 |
+
"typst": {
|
| 84 |
+
"templates": [
|
| 85 |
+
{
|
| 86 |
+
"label": "Book",
|
| 87 |
+
"kind": "document",
|
| 88 |
+
"snippet": "#import \"@preview/ilm:2.1.1\": *\n#show: ilm.with(\n title: [Book title],\n authors: \"Your name\",\n date: datetime.today(),\n abstract: [A short summary of the book.],\n)\n"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"label": "Novel",
|
| 92 |
+
"kind": "document",
|
| 93 |
+
"snippet": "#import \"@preview/wonderous-book:0.1.2\": book\n#show: book.with(\n title: [Novel title],\n author: \"Your name\",\n dedication: [for someone],\n publishing-info: [Publisher \\ City],\n)\n"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"label": "Newsletter",
|
| 97 |
+
"kind": "document",
|
| 98 |
+
"snippet": "#import \"@preview/dashing-dept-news:0.1.1\": newsletter, article\n#show: newsletter.with(\n title: [Newsletter title],\n edition: [January 2026],\n publication-info: [Published by your department.],\n)\n"
|
| 99 |
+
}
|
| 100 |
+
]
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"format": 2,
|
| 105 |
+
"id": "classroom",
|
| 106 |
+
"name": "Classroom",
|
| 107 |
+
"version": "1.0.0",
|
| 108 |
+
"description": "A friendly look with templates for lecture notes, worksheets, exams and lecture slides.",
|
| 109 |
+
"category": "Education",
|
| 110 |
+
"tags": [
|
| 111 |
+
"teaching",
|
| 112 |
+
"school",
|
| 113 |
+
"teal"
|
| 114 |
+
],
|
| 115 |
+
"typst": {
|
| 116 |
+
"templates": [
|
| 117 |
+
{
|
| 118 |
+
"label": "Lecture notes",
|
| 119 |
+
"kind": "document",
|
| 120 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: notes.with(title: \"Title\", course: \"Course name\", lecturer: \"Your name\")\n"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"label": "Worksheet",
|
| 124 |
+
"kind": "document",
|
| 125 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: worksheet.with(title: \"Title\", course: \"Course name\")\n"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"label": "Exam",
|
| 129 |
+
"kind": "document",
|
| 130 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: exam.with(title: \"Title\", course: \"Course name\", duration: \"90 minutes\")\n"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"label": "Lecture slides",
|
| 134 |
+
"kind": "slides",
|
| 135 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: slides.with(title: \"Title\", course: \"Course name\", lecturer: \"Your name\")\n"
|
| 136 |
+
}
|
| 137 |
+
]
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"format": 2,
|
| 142 |
+
"id": "papers",
|
| 143 |
+
"name": "Research papers",
|
| 144 |
+
"version": "1.0.0",
|
| 145 |
+
"description": "Templates for journal-style papers and preprints, built on packages from Typst Universe.",
|
| 146 |
+
"category": "Academic",
|
| 147 |
+
"tags": [
|
| 148 |
+
"paper",
|
| 149 |
+
"journal",
|
| 150 |
+
"two column",
|
| 151 |
+
"preprint"
|
| 152 |
+
],
|
| 153 |
+
"typst": {
|
| 154 |
+
"templates": [
|
| 155 |
+
{
|
| 156 |
+
"label": "IEEE paper",
|
| 157 |
+
"kind": "document",
|
| 158 |
+
"snippet": "#import \"@preview/charged-ieee:0.1.4\": ieee\n#show: ieee.with(\n title: [Paper title],\n abstract: [Write the abstract here.],\n authors: ((name: \"Your name\", organization: [Organization], location: [City, Country], email: \"you@example.com\"),),\n index-terms: (\"First term\", \"Second term\"),\n)\n"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"label": "AMS article",
|
| 162 |
+
"kind": "document",
|
| 163 |
+
"snippet": "#import \"@preview/unequivocal-ams:0.1.2\": ams-article, theorem, proof\n#show: ams-article.with(\n title: [Article title],\n authors: ((name: \"Your name\", department: [Department], organization: [University], location: [City, Country], email: \"you@example.com\"),),\n abstract: [Write the abstract here.],\n)\n"
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"label": "Preprint",
|
| 167 |
+
"kind": "document",
|
| 168 |
+
"snippet": "#import \"@preview/arkheion:0.1.2\": arkheion, arkheion-appendices\n#show: arkheion.with(\n title: \"Preprint title\",\n authors: ((name: \"Your name\", email: \"you@example.com\", affiliation: \"Organization\"),),\n abstract: [Write the abstract here.],\n keywords: (\"First keyword\", \"Second keyword\"),\n date: \"1 January 2026\",\n)\n"
|
| 169 |
+
}
|
| 170 |
+
]
|
| 171 |
+
}
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"format": 2,
|
| 175 |
+
"id": "resume",
|
| 176 |
+
"name": "Resume",
|
| 177 |
+
"version": "1.0.0",
|
| 178 |
+
"description": "A clean one-page resume, built on a package from Typst Universe.",
|
| 179 |
+
"category": "Personal",
|
| 180 |
+
"tags": [
|
| 181 |
+
"cv",
|
| 182 |
+
"job",
|
| 183 |
+
"career"
|
| 184 |
+
],
|
| 185 |
+
"typst": {
|
| 186 |
+
"templates": [
|
| 187 |
+
{
|
| 188 |
+
"label": "Resume",
|
| 189 |
+
"kind": "document",
|
| 190 |
+
"snippet": "#import \"@preview/basic-resume:0.2.9\": *\n#show: resume.with(\n author: \"Your name\",\n location: \"City, Country\",\n email: \"you@example.com\",\n phone: \"+00 000 000 000\",\n accent-color: \"#26428b\",\n font: \"New Computer Modern\",\n paper: \"a4\",\n)\n"
|
| 191 |
+
}
|
| 192 |
+
]
|
| 193 |
+
}
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"format": 2,
|
| 197 |
+
"id": "zal-analytics",
|
| 198 |
+
"name": "ZAL Analytics",
|
| 199 |
+
"version": "1.0.0",
|
| 200 |
+
"description": "The monochrome, code-first look of zal-analytics.nl: sharp corners, monospace headings and a rosewood accent.",
|
| 201 |
+
"category": "Technical",
|
| 202 |
+
"tags": [
|
| 203 |
+
"programming",
|
| 204 |
+
"monochrome",
|
| 205 |
+
"monospace",
|
| 206 |
+
"code"
|
| 207 |
+
],
|
| 208 |
+
"typst": {
|
| 209 |
+
"templates": [
|
| 210 |
+
{
|
| 211 |
+
"label": "Documentation",
|
| 212 |
+
"kind": "document",
|
| 213 |
+
"snippet": "#import \"@themes/zal-analytics:1.0.0\": *\n#show: documentation.with(title: \"Title\", summary: [One sentence about this document.], author: \"Your name\", version: \"v0.1.0\")\n"
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"label": "Note",
|
| 217 |
+
"kind": "document",
|
| 218 |
+
"snippet": "#import \"@themes/zal-analytics:1.0.0\": *\n#show: note.with(title: \"Title\", topic: \"Engineering note\", author: \"Your name\")\n"
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"label": "Slides",
|
| 222 |
+
"kind": "slides",
|
| 223 |
+
"snippet": "#import \"@themes/zal-analytics:1.0.0\": *\n#show: slides.with(title: \"Title\", subtitle: \"Subtitle\", author: \"Your name\")\n"
|
| 224 |
+
}
|
| 225 |
+
]
|
| 226 |
+
}
|
| 227 |
+
}
|
| 228 |
+
]
|
v2/src/blueprint/theme.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "blueprint",
|
| 4 |
+
"name": "Blueprint",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "An engineering look with templates for specifications, design documents and test reports.",
|
| 7 |
+
"category": "Technical",
|
| 8 |
+
"tags": [
|
| 9 |
+
"engineering",
|
| 10 |
+
"teal",
|
| 11 |
+
"specification"
|
| 12 |
+
],
|
| 13 |
+
"typst": {
|
| 14 |
+
"templates": [
|
| 15 |
+
{
|
| 16 |
+
"label": "Specification",
|
| 17 |
+
"kind": "document",
|
| 18 |
+
"snippet": "#import \"@themes/blueprint:1.0.0\": *\n#show: specification.with(title: \"Title\", number: \"DOC-0001\", revision: \"A\", status: \"Draft\", author: \"Your name\")\n"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"label": "Design document",
|
| 22 |
+
"kind": "document",
|
| 23 |
+
"snippet": "#import \"@themes/blueprint:1.0.0\": *\n#show: design.with(title: \"Title\", author: \"Your name\", status: \"Draft\", reviewers: \"Reviewer names\")\n"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"label": "Test report",
|
| 27 |
+
"kind": "document",
|
| 28 |
+
"snippet": "#import \"@themes/blueprint:1.0.0\": *\n#show: test-report.with(title: \"Title\", number: \"TR-0001\", tester: \"Your name\")\n"
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
| 32 |
+
}
|
v2/src/blueprint/typst/lib.typ
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#let ink = rgb("#111827")
|
| 2 |
+
#let accent = rgb("#0e7490")
|
| 3 |
+
#let rule = rgb("#9ca3af")
|
| 4 |
+
#let quiet = rgb("#56657a")
|
| 5 |
+
#let sans = ("Segoe UI", "Helvetica Neue", "Arial", "Libertinus Serif")
|
| 6 |
+
#let mono = ("Cascadia Mono", "Consolas", "DejaVu Sans Mono")
|
| 7 |
+
#let today = datetime.today().display("[year]-[month]-[day]")
|
| 8 |
+
|
| 9 |
+
#let tag(body) = text(font: mono, size: 7.5pt, fill: quiet, upper(body))
|
| 10 |
+
|
| 11 |
+
#let base(header-left, header-right, body) = {
|
| 12 |
+
set text(font: sans, size: 10pt, fill: ink, lang: "en")
|
| 13 |
+
set par(justify: true, leading: 0.68em, spacing: 1.15em)
|
| 14 |
+
set page(
|
| 15 |
+
paper: "a4",
|
| 16 |
+
margin: (x: 2.2cm, top: 2.8cm, bottom: 2.4cm),
|
| 17 |
+
header: {
|
| 18 |
+
tag(header-left)
|
| 19 |
+
h(1fr)
|
| 20 |
+
tag(header-right)
|
| 21 |
+
v(-0.7em)
|
| 22 |
+
line(length: 100%, stroke: 0.5pt + rule)
|
| 23 |
+
},
|
| 24 |
+
footer: context {
|
| 25 |
+
line(length: 100%, stroke: 0.5pt + rule)
|
| 26 |
+
v(-0.6em)
|
| 27 |
+
h(1fr)
|
| 28 |
+
tag(counter(page).display("1 of 1", both: true))
|
| 29 |
+
},
|
| 30 |
+
)
|
| 31 |
+
set heading(numbering: "1.1")
|
| 32 |
+
set table(stroke: 0.5pt + rule, inset: 6pt)
|
| 33 |
+
show heading: set text(fill: accent)
|
| 34 |
+
show heading: set block(above: 1.5em, below: 0.8em)
|
| 35 |
+
show raw: set text(font: mono)
|
| 36 |
+
show table.cell.where(y: 0): strong
|
| 37 |
+
body
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
#let title-block(title, ..fields) = {
|
| 41 |
+
let cells = fields.pos().map(((label, value)) => [#tag(label) \ #value])
|
| 42 |
+
table(
|
| 43 |
+
columns: (1fr,) * calc.max(cells.len(), 1),
|
| 44 |
+
stroke: 0.8pt + ink,
|
| 45 |
+
inset: 8pt,
|
| 46 |
+
table.cell(colspan: calc.max(cells.len(), 1), text(size: 18pt, weight: "bold", title)),
|
| 47 |
+
..cells,
|
| 48 |
+
)
|
| 49 |
+
v(1em)
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
#let requirement(id, body) = block(
|
| 53 |
+
width: 100%,
|
| 54 |
+
inset: (left: 10pt, y: 4pt),
|
| 55 |
+
stroke: (left: 2pt + accent),
|
| 56 |
+
[#text(font: mono, size: 9pt, weight: "bold", fill: accent, id) #h(0.6em) #body],
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
#let note(body) = block(width: 100%, inset: 10pt, fill: rgb("#eef2f5"), stroke: 0.5pt + rule, body)
|
| 60 |
+
|
| 61 |
+
#let result(status) = {
|
| 62 |
+
let colour = if lower(status) == "pass" { rgb("#15803d") } else if lower(status) == "fail" { rgb("#b91c1c") } else {
|
| 63 |
+
rgb("#b45309")
|
| 64 |
+
}
|
| 65 |
+
box(inset: (x: 5pt, y: 2pt), radius: 2pt, fill: colour, text(font: mono, size: 8pt, weight: "bold", fill: white, upper(status)))
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
#let specification(title: "Title", number: "DOC-0001", revision: "A", status: "Draft", author: none, date: today, body) = {
|
| 69 |
+
show: base.with([#number · Rev #revision], title)
|
| 70 |
+
title-block(title, ("Document", number), ("Revision", revision), ("Status", status), ("Author", author), ("Date", date))
|
| 71 |
+
outline(depth: 2)
|
| 72 |
+
body
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
#let design(title: "Title", author: none, status: "Draft", reviewers: none, date: today, body) = {
|
| 76 |
+
show: base.with([Design document · #status], title)
|
| 77 |
+
title-block(title, ("Author", author), ("Reviewers", reviewers), ("Status", status), ("Date", date))
|
| 78 |
+
body
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
#let test-report(title: "Title", number: "TR-0001", tester: none, date: today, body) = {
|
| 82 |
+
show: base.with([#number · Test report], title)
|
| 83 |
+
title-block(title, ("Report", number), ("Tested by", tester), ("Date", date))
|
| 84 |
+
body
|
| 85 |
+
}
|
v2/src/blueprint/typst/typst.toml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "blueprint"
|
| 3 |
+
version = "1.0.0"
|
| 4 |
+
entrypoint = "lib.typ"
|
v2/src/boardroom/theme.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "boardroom",
|
| 4 |
+
"name": "Boardroom",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "A navy corporate look with templates for reports, memos, letters and slide decks.",
|
| 7 |
+
"category": "Business",
|
| 8 |
+
"tags": [
|
| 9 |
+
"corporate",
|
| 10 |
+
"navy",
|
| 11 |
+
"office"
|
| 12 |
+
],
|
| 13 |
+
"typst": {
|
| 14 |
+
"templates": [
|
| 15 |
+
{
|
| 16 |
+
"label": "Report",
|
| 17 |
+
"kind": "document",
|
| 18 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: report.with(title: \"Title\", subtitle: \"Subtitle\", author: \"Your name\")\n"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"label": "Memo",
|
| 22 |
+
"kind": "document",
|
| 23 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: memo.with(to: \"Recipient\", from: \"Your name\", subject: \"Subject\")\n"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"label": "Letter",
|
| 27 |
+
"kind": "document",
|
| 28 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: letter.with(sender: [Your name \\ Street 1 \\ City], recipient: [Recipient \\ Street 2 \\ City], subject: \"Subject\", name: \"Your name\")\n"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"label": "Slide deck",
|
| 32 |
+
"kind": "slides",
|
| 33 |
+
"snippet": "#import \"@themes/boardroom:1.0.0\": *\n#show: slides.with(title: \"Title\", subtitle: \"Subtitle\", author: \"Your name\")\n"
|
| 34 |
+
}
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
}
|
v2/src/boardroom/typst/lib.typ
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#let ink = rgb("#1f2937")
|
| 2 |
+
#let brand = rgb("#1e3a8a")
|
| 3 |
+
#let soft = rgb("#d7dee8")
|
| 4 |
+
#let quiet = rgb("#6b7280")
|
| 5 |
+
#let sans = ("Segoe UI", "Helvetica Neue", "Arial", "Libertinus Serif")
|
| 6 |
+
#let today = datetime.today().display("[day padding:none] [month repr:long] [year]")
|
| 7 |
+
|
| 8 |
+
#let base(body) = {
|
| 9 |
+
set text(font: sans, size: 10.5pt, fill: ink, lang: "en")
|
| 10 |
+
set par(justify: true, leading: 0.7em, spacing: 1.2em)
|
| 11 |
+
set table(stroke: 0.5pt + soft, inset: 7pt)
|
| 12 |
+
show heading: set text(fill: brand)
|
| 13 |
+
show heading: set block(above: 1.6em, below: 0.8em)
|
| 14 |
+
show table.cell.where(y: 0): strong
|
| 15 |
+
body
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
#let report(title: "Title", subtitle: none, author: none, date: today, body) = {
|
| 19 |
+
show: base
|
| 20 |
+
set page(
|
| 21 |
+
paper: "a4",
|
| 22 |
+
margin: (x: 2.5cm, top: 3cm, bottom: 2.5cm),
|
| 23 |
+
header: context if counter(page).get().first() > 1 {
|
| 24 |
+
text(size: 9pt, fill: brand, title)
|
| 25 |
+
h(1fr)
|
| 26 |
+
text(size: 9pt, fill: quiet, date)
|
| 27 |
+
v(-0.6em)
|
| 28 |
+
line(length: 100%, stroke: 0.5pt + soft)
|
| 29 |
+
},
|
| 30 |
+
footer: context align(right, text(size: 9pt, fill: quiet, counter(page).display("1 / 1", both: true))),
|
| 31 |
+
)
|
| 32 |
+
set heading(numbering: "1.1")
|
| 33 |
+
block(width: 100%, below: 2.5em)[
|
| 34 |
+
#rect(width: 3cm, height: 4pt, fill: brand)
|
| 35 |
+
#text(size: 26pt, weight: "bold", fill: brand, title)
|
| 36 |
+
#if subtitle != none [\ #text(size: 14pt, subtitle)]
|
| 37 |
+
|
| 38 |
+
#text(size: 10pt, fill: quiet, (author, date).filter(part => part != none).join[ · ])
|
| 39 |
+
]
|
| 40 |
+
body
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
#let memo(to: "Recipient", from: "Sender", subject: "Subject", date: today, body) = {
|
| 44 |
+
show: base
|
| 45 |
+
set page(paper: "a4", margin: 2.5cm)
|
| 46 |
+
text(size: 22pt, weight: "bold", fill: brand, tracking: 2pt)[MEMO]
|
| 47 |
+
v(0.5em)
|
| 48 |
+
grid(
|
| 49 |
+
columns: (auto, 1fr),
|
| 50 |
+
gutter: 0.8em,
|
| 51 |
+
strong[To], to,
|
| 52 |
+
strong[From], from,
|
| 53 |
+
strong[Date], date,
|
| 54 |
+
strong[Subject], subject,
|
| 55 |
+
)
|
| 56 |
+
line(length: 100%, stroke: 1pt + brand)
|
| 57 |
+
v(0.5em)
|
| 58 |
+
body
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
#let letter(
|
| 62 |
+
sender: [Your name \ Street 1 \ City],
|
| 63 |
+
recipient: [Recipient \ Street 2 \ City],
|
| 64 |
+
subject: "Subject",
|
| 65 |
+
date: today,
|
| 66 |
+
closing: "Kind regards,",
|
| 67 |
+
name: "Your name",
|
| 68 |
+
body,
|
| 69 |
+
) = {
|
| 70 |
+
show: base
|
| 71 |
+
set page(paper: "a4", margin: (x: 2.5cm, y: 3cm))
|
| 72 |
+
align(right, text(size: 9.5pt, fill: quiet, sender))
|
| 73 |
+
v(1.5em)
|
| 74 |
+
block(recipient)
|
| 75 |
+
v(1.5em)
|
| 76 |
+
align(right, date)
|
| 77 |
+
block(above: 1.5em, below: 1.5em, text(weight: "bold", fill: brand, subject))
|
| 78 |
+
body
|
| 79 |
+
block(above: 2.5em, closing)
|
| 80 |
+
block(above: 3.5em, name)
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
#let slides(title: "Title", subtitle: none, author: none, date: today, body) = {
|
| 84 |
+
show: base
|
| 85 |
+
set text(size: 20pt)
|
| 86 |
+
set par(justify: false)
|
| 87 |
+
set page(
|
| 88 |
+
paper: "presentation-16-9",
|
| 89 |
+
margin: (x: 2cm, top: 2cm, bottom: 1.8cm),
|
| 90 |
+
footer: context text(size: 11pt, fill: quiet)[#title #h(1fr) #counter(page).display()],
|
| 91 |
+
)
|
| 92 |
+
show heading.where(level: 1): it => {
|
| 93 |
+
pagebreak(weak: true)
|
| 94 |
+
block(below: 1em, text(size: 30pt, weight: "bold", fill: brand, it.body))
|
| 95 |
+
}
|
| 96 |
+
show heading.where(level: 2): set text(size: 22pt)
|
| 97 |
+
page(fill: brand, footer: none, align(horizon)[
|
| 98 |
+
#set text(fill: white)
|
| 99 |
+
#text(size: 40pt, weight: "bold", title)
|
| 100 |
+
#if subtitle != none [\ #text(size: 24pt, subtitle)]
|
| 101 |
+
|
| 102 |
+
#text(size: 16pt, (author, date).filter(part => part != none).join[ · ])
|
| 103 |
+
])
|
| 104 |
+
body
|
| 105 |
+
}
|
v2/src/boardroom/typst/typst.toml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "boardroom"
|
| 3 |
+
version = "1.0.0"
|
| 4 |
+
entrypoint = "lib.typ"
|
v2/src/books/theme.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "books",
|
| 4 |
+
"name": "Books and newsletters",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "Templates for long books, novels and a department newsletter, built on packages from Typst Universe.",
|
| 7 |
+
"category": "Creative",
|
| 8 |
+
"tags": [
|
| 9 |
+
"book",
|
| 10 |
+
"novel",
|
| 11 |
+
"newsletter"
|
| 12 |
+
],
|
| 13 |
+
"typst": {
|
| 14 |
+
"templates": [
|
| 15 |
+
{
|
| 16 |
+
"label": "Book",
|
| 17 |
+
"kind": "document",
|
| 18 |
+
"snippet": "#import \"@preview/ilm:2.1.1\": *\n#show: ilm.with(\n title: [Book title],\n authors: \"Your name\",\n date: datetime.today(),\n abstract: [A short summary of the book.],\n)\n"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"label": "Novel",
|
| 22 |
+
"kind": "document",
|
| 23 |
+
"snippet": "#import \"@preview/wonderous-book:0.1.2\": book\n#show: book.with(\n title: [Novel title],\n author: \"Your name\",\n dedication: [for someone],\n publishing-info: [Publisher \\ City],\n)\n"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"label": "Newsletter",
|
| 27 |
+
"kind": "document",
|
| 28 |
+
"snippet": "#import \"@preview/dashing-dept-news:0.1.1\": newsletter, article\n#show: newsletter.with(\n title: [Newsletter title],\n edition: [January 2026],\n publication-info: [Published by your department.],\n)\n"
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
| 32 |
+
}
|
v2/src/classroom/theme.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "classroom",
|
| 4 |
+
"name": "Classroom",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "A friendly look with templates for lecture notes, worksheets, exams and lecture slides.",
|
| 7 |
+
"category": "Education",
|
| 8 |
+
"tags": [
|
| 9 |
+
"teaching",
|
| 10 |
+
"school",
|
| 11 |
+
"teal"
|
| 12 |
+
],
|
| 13 |
+
"typst": {
|
| 14 |
+
"templates": [
|
| 15 |
+
{
|
| 16 |
+
"label": "Lecture notes",
|
| 17 |
+
"kind": "document",
|
| 18 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: notes.with(title: \"Title\", course: \"Course name\", lecturer: \"Your name\")\n"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"label": "Worksheet",
|
| 22 |
+
"kind": "document",
|
| 23 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: worksheet.with(title: \"Title\", course: \"Course name\")\n"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"label": "Exam",
|
| 27 |
+
"kind": "document",
|
| 28 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: exam.with(title: \"Title\", course: \"Course name\", duration: \"90 minutes\")\n"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"label": "Lecture slides",
|
| 32 |
+
"kind": "slides",
|
| 33 |
+
"snippet": "#import \"@themes/classroom:1.0.0\": *\n#show: slides.with(title: \"Title\", course: \"Course name\", lecturer: \"Your name\")\n"
|
| 34 |
+
}
|
| 35 |
+
]
|
| 36 |
+
}
|
| 37 |
+
}
|
v2/src/classroom/typst/lib.typ
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#let ink = rgb("#26323a")
|
| 2 |
+
#let teal = rgb("#0f766e")
|
| 3 |
+
#let orange = rgb("#c2410c")
|
| 4 |
+
#let blue = rgb("#1d4ed8")
|
| 5 |
+
#let quiet = rgb("#66757f")
|
| 6 |
+
#let sans = ("Segoe UI", "Helvetica Neue", "Arial", "Libertinus Serif")
|
| 7 |
+
#let today = datetime.today().display("[day padding:none] [month repr:long] [year]")
|
| 8 |
+
|
| 9 |
+
#let question-number = counter("classroom-question")
|
| 10 |
+
#let points-total = state("classroom-points", 0)
|
| 11 |
+
|
| 12 |
+
#let base(body) = {
|
| 13 |
+
set text(font: sans, size: 11pt, fill: ink, lang: "en")
|
| 14 |
+
set par(leading: 0.7em, spacing: 1.2em)
|
| 15 |
+
show heading: set text(fill: teal)
|
| 16 |
+
show heading: set block(above: 1.5em, below: 0.8em)
|
| 17 |
+
body
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
#let sheet(course, title, body) = {
|
| 21 |
+
show: base
|
| 22 |
+
set page(
|
| 23 |
+
paper: "a4",
|
| 24 |
+
margin: (x: 2.3cm, top: 2.8cm, bottom: 2.3cm),
|
| 25 |
+
header: text(size: 9pt, fill: quiet)[#course #h(1fr) #title],
|
| 26 |
+
footer: context align(center, text(size: 9pt, fill: quiet, counter(page).display())),
|
| 27 |
+
)
|
| 28 |
+
body
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
#let callout(colour, label, title, body) = block(
|
| 32 |
+
width: 100%,
|
| 33 |
+
inset: (left: 12pt, rest: 8pt),
|
| 34 |
+
stroke: (left: 3pt + colour),
|
| 35 |
+
fill: colour.lighten(92%),
|
| 36 |
+
[#text(weight: "bold", fill: colour)[#label#if title != none [: #title]] \ #body],
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
#let definition(title: none, body) = callout(teal, "Definition", title, body)
|
| 40 |
+
#let example(title: none, body) = callout(blue, "Example", title, body)
|
| 41 |
+
#let remark(title: none, body) = callout(orange, "Note", title, body)
|
| 42 |
+
|
| 43 |
+
#let question(points: none, body) = {
|
| 44 |
+
question-number.step()
|
| 45 |
+
if points != none { points-total.update(total => total + points) }
|
| 46 |
+
block(width: 100%, above: 1.6em, below: 0.8em)[
|
| 47 |
+
#text(weight: "bold", fill: teal, context question-number.display("1."))
|
| 48 |
+
#body
|
| 49 |
+
#if points != none { h(1fr); text(size: 9pt, fill: quiet)[(#points #if points == 1 [point] else [points])] }
|
| 50 |
+
]
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
#let answer-lines(count) = for _ in range(count) {
|
| 54 |
+
v(1.9em)
|
| 55 |
+
line(length: 100%, stroke: 0.4pt + quiet)
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
#let notes(title: "Title", course: none, lecturer: none, date: today, body) = {
|
| 59 |
+
show: sheet.with(course, title)
|
| 60 |
+
set par(justify: true)
|
| 61 |
+
set heading(numbering: "1.1")
|
| 62 |
+
block(below: 2em)[
|
| 63 |
+
#text(size: 22pt, weight: "bold", fill: teal, title) \
|
| 64 |
+
#text(size: 10pt, fill: quiet, (course, lecturer, date).filter(part => part != none).join[ · ])
|
| 65 |
+
]
|
| 66 |
+
body
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
#let worksheet(title: "Title", course: none, body) = {
|
| 70 |
+
show: sheet.with(course, title)
|
| 71 |
+
text(size: 20pt, weight: "bold", fill: teal, title)
|
| 72 |
+
block(above: 1.2em, below: 1.8em, grid(
|
| 73 |
+
columns: (auto, 2fr, auto, 1fr),
|
| 74 |
+
gutter: 0.6em,
|
| 75 |
+
align: bottom,
|
| 76 |
+
[Name:], line(length: 100%, stroke: 0.4pt + quiet), [Date:], line(length: 100%, stroke: 0.4pt + quiet),
|
| 77 |
+
))
|
| 78 |
+
body
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
#let exam(title: "Title", course: none, duration: none, date: today, body) = {
|
| 82 |
+
show: sheet.with(course, title)
|
| 83 |
+
align(center)[
|
| 84 |
+
#text(size: 22pt, weight: "bold", fill: teal, title) \
|
| 85 |
+
#text(fill: quiet, (course, date).filter(part => part != none).join[ · ])
|
| 86 |
+
]
|
| 87 |
+
block(width: 100%, above: 1.5em, below: 2em, inset: 10pt, stroke: 0.6pt + teal, grid(
|
| 88 |
+
columns: (auto, 1fr, auto, auto),
|
| 89 |
+
gutter: 0.7em,
|
| 90 |
+
align: bottom,
|
| 91 |
+
[Name:], line(length: 100%, stroke: 0.4pt + quiet),
|
| 92 |
+
[#if duration != none [Time: #duration]],
|
| 93 |
+
context [Points: #box(width: 2.5em, line(length: 100%, stroke: 0.4pt + quiet)) / #points-total.final()],
|
| 94 |
+
))
|
| 95 |
+
body
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
#let slides(title: "Title", course: none, lecturer: none, date: today, body) = {
|
| 99 |
+
show: base
|
| 100 |
+
set text(size: 20pt)
|
| 101 |
+
set page(
|
| 102 |
+
paper: "presentation-16-9",
|
| 103 |
+
margin: (x: 2cm, top: 2cm, bottom: 1.8cm),
|
| 104 |
+
footer: context text(size: 11pt, fill: quiet)[#course #h(1fr) #counter(page).display()],
|
| 105 |
+
)
|
| 106 |
+
show heading.where(level: 1): it => {
|
| 107 |
+
pagebreak(weak: true)
|
| 108 |
+
block(below: 1em, stroke: (bottom: 2pt + orange), inset: (bottom: 8pt), text(size: 30pt, weight: "bold", fill: teal, it.body))
|
| 109 |
+
}
|
| 110 |
+
show heading.where(level: 2): set text(size: 22pt)
|
| 111 |
+
page(footer: none, align(horizon)[
|
| 112 |
+
#rect(width: 4cm, height: 6pt, fill: orange)
|
| 113 |
+
#text(size: 40pt, weight: "bold", fill: teal, title)
|
| 114 |
+
|
| 115 |
+
#text(size: 16pt, fill: quiet, (course, lecturer, date).filter(part => part != none).join[ · ])
|
| 116 |
+
])
|
| 117 |
+
body
|
| 118 |
+
}
|
v2/src/classroom/typst/typst.toml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "classroom"
|
| 3 |
+
version = "1.0.0"
|
| 4 |
+
entrypoint = "lib.typ"
|
v2/src/papers/theme.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "papers",
|
| 4 |
+
"name": "Research papers",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "Templates for journal-style papers and preprints, built on packages from Typst Universe.",
|
| 7 |
+
"category": "Academic",
|
| 8 |
+
"tags": [
|
| 9 |
+
"paper",
|
| 10 |
+
"journal",
|
| 11 |
+
"two column",
|
| 12 |
+
"preprint"
|
| 13 |
+
],
|
| 14 |
+
"typst": {
|
| 15 |
+
"templates": [
|
| 16 |
+
{
|
| 17 |
+
"label": "IEEE paper",
|
| 18 |
+
"kind": "document",
|
| 19 |
+
"snippet": "#import \"@preview/charged-ieee:0.1.4\": ieee\n#show: ieee.with(\n title: [Paper title],\n abstract: [Write the abstract here.],\n authors: ((name: \"Your name\", organization: [Organization], location: [City, Country], email: \"you@example.com\"),),\n index-terms: (\"First term\", \"Second term\"),\n)\n"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"label": "AMS article",
|
| 23 |
+
"kind": "document",
|
| 24 |
+
"snippet": "#import \"@preview/unequivocal-ams:0.1.2\": ams-article, theorem, proof\n#show: ams-article.with(\n title: [Article title],\n authors: ((name: \"Your name\", department: [Department], organization: [University], location: [City, Country], email: \"you@example.com\"),),\n abstract: [Write the abstract here.],\n)\n"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"label": "Preprint",
|
| 28 |
+
"kind": "document",
|
| 29 |
+
"snippet": "#import \"@preview/arkheion:0.1.2\": arkheion, arkheion-appendices\n#show: arkheion.with(\n title: \"Preprint title\",\n authors: ((name: \"Your name\", email: \"you@example.com\", affiliation: \"Organization\"),),\n abstract: [Write the abstract here.],\n keywords: (\"First keyword\", \"Second keyword\"),\n date: \"1 January 2026\",\n)\n"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
}
|
v2/src/resume/theme.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "resume",
|
| 4 |
+
"name": "Resume",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "A clean one-page resume, built on a package from Typst Universe.",
|
| 7 |
+
"category": "Personal",
|
| 8 |
+
"tags": [
|
| 9 |
+
"cv",
|
| 10 |
+
"job",
|
| 11 |
+
"career"
|
| 12 |
+
],
|
| 13 |
+
"typst": {
|
| 14 |
+
"templates": [
|
| 15 |
+
{
|
| 16 |
+
"label": "Resume",
|
| 17 |
+
"kind": "document",
|
| 18 |
+
"snippet": "#import \"@preview/basic-resume:0.2.9\": *\n#show: resume.with(\n author: \"Your name\",\n location: \"City, Country\",\n email: \"you@example.com\",\n phone: \"+00 000 000 000\",\n accent-color: \"#26428b\",\n font: \"New Computer Modern\",\n paper: \"a4\",\n)\n"
|
| 19 |
+
}
|
| 20 |
+
]
|
| 21 |
+
}
|
| 22 |
+
}
|
v2/src/zal-analytics/theme.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": 2,
|
| 3 |
+
"id": "zal-analytics",
|
| 4 |
+
"name": "ZAL Analytics",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"description": "The monochrome, code-first look of zal-analytics.nl: sharp corners, monospace headings and a rosewood accent.",
|
| 7 |
+
"category": "Technical",
|
| 8 |
+
"tags": [
|
| 9 |
+
"programming",
|
| 10 |
+
"monochrome",
|
| 11 |
+
"monospace",
|
| 12 |
+
"code"
|
| 13 |
+
],
|
| 14 |
+
"typst": {
|
| 15 |
+
"templates": [
|
| 16 |
+
{
|
| 17 |
+
"label": "Documentation",
|
| 18 |
+
"kind": "document",
|
| 19 |
+
"snippet": "#import \"@themes/zal-analytics:1.0.0\": *\n#show: documentation.with(title: \"Title\", summary: [One sentence about this document.], author: \"Your name\", version: \"v0.1.0\")\n"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"label": "Note",
|
| 23 |
+
"kind": "document",
|
| 24 |
+
"snippet": "#import \"@themes/zal-analytics:1.0.0\": *\n#show: note.with(title: \"Title\", topic: \"Engineering note\", author: \"Your name\")\n"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"label": "Slides",
|
| 28 |
+
"kind": "slides",
|
| 29 |
+
"snippet": "#import \"@themes/zal-analytics:1.0.0\": *\n#show: slides.with(title: \"Title\", subtitle: \"Subtitle\", author: \"Your name\")\n"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
}
|
v2/src/zal-analytics/typst/fonts/Inter-Bold.ttf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:288316099b1e0a47a4716d159098005eef7c0066921f34e3200393dbdb01947f
|
| 3 |
+
size 420428
|
v2/src/zal-analytics/typst/fonts/Inter-Italic.ttf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bbc051dd204b5019a1aa0bc0ae2aa8a05ab13e7a3f979fa357631dc7feb6833a
|
| 3 |
+
size 417388
|
v2/src/zal-analytics/typst/fonts/Inter-LICENSE.txt
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
| 2 |
+
|
| 3 |
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
| 4 |
+
This license is copied below, and is also available with a FAQ at:
|
| 5 |
+
http://scripts.sil.org/OFL
|
| 6 |
+
|
| 7 |
+
-----------------------------------------------------------
|
| 8 |
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
| 9 |
+
-----------------------------------------------------------
|
| 10 |
+
|
| 11 |
+
PREAMBLE
|
| 12 |
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
| 13 |
+
development of collaborative font projects, to support the font creation
|
| 14 |
+
efforts of academic and linguistic communities, and to provide a free and
|
| 15 |
+
open framework in which fonts may be shared and improved in partnership
|
| 16 |
+
with others.
|
| 17 |
+
|
| 18 |
+
The OFL allows the licensed fonts to be used, studied, modified and
|
| 19 |
+
redistributed freely as long as they are not sold by themselves. The
|
| 20 |
+
fonts, including any derivative works, can be bundled, embedded,
|
| 21 |
+
redistributed and/or sold with any software provided that any reserved
|
| 22 |
+
names are not used by derivative works. The fonts and derivatives,
|
| 23 |
+
however, cannot be released under any other type of license. The
|
| 24 |
+
requirement for fonts to remain under this license does not apply
|
| 25 |
+
to any document created using the fonts or their derivatives.
|
| 26 |
+
|
| 27 |
+
DEFINITIONS
|
| 28 |
+
"Font Software" refers to the set of files released by the Copyright
|
| 29 |
+
Holder(s) under this license and clearly marked as such. This may
|
| 30 |
+
include source files, build scripts and documentation.
|
| 31 |
+
|
| 32 |
+
"Reserved Font Name" refers to any names specified as such after the
|
| 33 |
+
copyright statement(s).
|
| 34 |
+
|
| 35 |
+
"Original Version" refers to the collection of Font Software components as
|
| 36 |
+
distributed by the Copyright Holder(s).
|
| 37 |
+
|
| 38 |
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
| 39 |
+
or substituting -- in part or in whole -- any of the components of the
|
| 40 |
+
Original Version, by changing formats or by porting the Font Software to a
|
| 41 |
+
new environment.
|
| 42 |
+
|
| 43 |
+
"Author" refers to any designer, engineer, programmer, technical
|
| 44 |
+
writer or other person who contributed to the Font Software.
|
| 45 |
+
|
| 46 |
+
PERMISSION AND CONDITIONS
|
| 47 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 48 |
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
| 49 |
+
redistribute, and sell modified and unmodified copies of the Font
|
| 50 |
+
Software, subject to the following conditions:
|
| 51 |
+
|
| 52 |
+
1) Neither the Font Software nor any of its individual components,
|
| 53 |
+
in Original or Modified Versions, may be sold by itself.
|
| 54 |
+
|
| 55 |
+
2) Original or Modified Versions of the Font Software may be bundled,
|
| 56 |
+
redistributed and/or sold with any software, provided that each copy
|
| 57 |
+
contains the above copyright notice and this license. These can be
|
| 58 |
+
included either as stand-alone text files, human-readable headers or
|
| 59 |
+
in the appropriate machine-readable metadata fields within text or
|
| 60 |
+
binary files as long as those fields can be easily viewed by the user.
|
| 61 |
+
|
| 62 |
+
3) No Modified Version of the Font Software may use the Reserved Font
|
| 63 |
+
Name(s) unless explicit written permission is granted by the corresponding
|
| 64 |
+
Copyright Holder. This restriction only applies to the primary font name as
|
| 65 |
+
presented to the users.
|
| 66 |
+
|
| 67 |
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
| 68 |
+
Software shall not be used to promote, endorse or advertise any
|
| 69 |
+
Modified Version, except to acknowledge the contribution(s) of the
|
| 70 |
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
| 71 |
+
permission.
|
| 72 |
+
|
| 73 |
+
5) The Font Software, modified or unmodified, in part or in whole,
|
| 74 |
+
must be distributed entirely under this license, and must not be
|
| 75 |
+
distributed under any other license. The requirement for fonts to
|
| 76 |
+
remain under this license does not apply to any document created
|
| 77 |
+
using the Font Software.
|
| 78 |
+
|
| 79 |
+
TERMINATION
|
| 80 |
+
This license becomes null and void if any of the above conditions are
|
| 81 |
+
not met.
|
| 82 |
+
|
| 83 |
+
DISCLAIMER
|
| 84 |
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 85 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
| 86 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
| 87 |
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
| 88 |
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
| 89 |
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
| 90 |
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 91 |
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
| 92 |
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
v2/src/zal-analytics/typst/fonts/Inter-Medium.ttf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97ad806f526e41546d46365bb3a393145f75b7b1568913db74549ad8b8dba872
|
| 3 |
+
size 417300
|
v2/src/zal-analytics/typst/fonts/Inter-Regular.ttf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40d692fce188e4471e2b3cba937be967878f631ad3ebbbdcd587687c7ebe0c82
|
| 3 |
+
size 411640
|
v2/src/zal-analytics/typst/fonts/Inter-SemiBold.ttf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78a843fade9d4612a5567302fb595b56976eb5fcebf4fea5a5912d638bafcde3
|
| 3 |
+
size 419744
|
v2/src/zal-analytics/typst/lib.typ
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#let ink = rgb("#1a1a1a")
|
| 2 |
+
#let coal = rgb("#28282a")
|
| 3 |
+
#let quiet = rgb("#747577")
|
| 4 |
+
#let rule = rgb("#d1d1d1")
|
| 5 |
+
#let rosewood = rgb("#916f6f")
|
| 6 |
+
#let sans = ("Inter", "Segoe UI", "Helvetica Neue", "Arial", "Libertinus Serif")
|
| 7 |
+
#let mono = ("Cascadia Mono", "Consolas", "DejaVu Sans Mono")
|
| 8 |
+
#let today = datetime.today().display("[year]-[month]-[day]")
|
| 9 |
+
#let dots = tiling(size: (24pt, 24pt), place(dx: 11pt, dy: 11pt, circle(radius: 0.8pt, fill: rgb("#ffffff30"))))
|
| 10 |
+
|
| 11 |
+
#let label(body) = text(font: mono, size: 0.72em, fill: quiet, tracking: 1.5pt, upper(body))
|
| 12 |
+
|
| 13 |
+
#let base(body) = {
|
| 14 |
+
set text(font: sans, size: 10pt, fill: ink, lang: "en")
|
| 15 |
+
set par(leading: 0.72em, spacing: 1.2em)
|
| 16 |
+
set list(marker: text(fill: quiet)[—])
|
| 17 |
+
set table(stroke: 0.5pt + rule, inset: 7pt)
|
| 18 |
+
show heading: set text(font: mono, weight: "bold")
|
| 19 |
+
show heading: set block(above: 1.7em, below: 0.9em)
|
| 20 |
+
show heading.where(level: 2): it => block(width: 100%, stroke: (bottom: 0.5pt + rule), inset: (bottom: 6pt), it)
|
| 21 |
+
show raw: set text(font: mono)
|
| 22 |
+
show raw.where(block: true): block.with(width: 100%, inset: 10pt, stroke: 0.5pt + rule, fill: rgb("#f7f7f7"))
|
| 23 |
+
show raw.where(block: false): box.with(inset: (x: 3pt), outset: (y: 3pt), fill: rgb("#f0f0f0"))
|
| 24 |
+
show link: underline.with(offset: 2pt)
|
| 25 |
+
show table.cell.where(y: 0): it => label(it)
|
| 26 |
+
body
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
#let callout(title: "Note", body) = block(width: 100%, inset: 10pt, stroke: (left: 2pt + rosewood, rest: 0.5pt + rule))[
|
| 30 |
+
#label(text(fill: rosewood, title)) \
|
| 31 |
+
#body
|
| 32 |
+
]
|
| 33 |
+
|
| 34 |
+
#let documentation(title: "Title", summary: none, author: none, version: none, date: today, body) = {
|
| 35 |
+
show: base
|
| 36 |
+
set page(
|
| 37 |
+
paper: "a4",
|
| 38 |
+
margin: (x: 2.4cm, top: 2.8cm, bottom: 2.4cm),
|
| 39 |
+
header: [#label(title) #h(1fr) #label((version, date).filter(part => part != none).join[ · ])],
|
| 40 |
+
footer: context align(right, label(counter(page).display("1 / 1", both: true))),
|
| 41 |
+
)
|
| 42 |
+
set heading(numbering: "1.1")
|
| 43 |
+
block(below: 2em)[
|
| 44 |
+
#label((author, version, date).filter(part => part != none).join[ · ]) \
|
| 45 |
+
#text(font: mono, size: 24pt, weight: "bold", title)
|
| 46 |
+
#if summary != none { block(above: 0.8em, text(size: 11pt, fill: quiet, summary)) }
|
| 47 |
+
]
|
| 48 |
+
outline(depth: 2, title: label[Contents])
|
| 49 |
+
body
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
#let note(title: "Title", topic: "Note", author: none, date: today, body) = {
|
| 53 |
+
show: base
|
| 54 |
+
set page(paper: "a4", margin: 2.4cm, footer: context align(right, label(counter(page).display())))
|
| 55 |
+
label(topic)
|
| 56 |
+
h(1fr)
|
| 57 |
+
label((author, date).filter(part => part != none).join[ · ])
|
| 58 |
+
block(above: 0.8em, below: 1.5em, stroke: (bottom: 1pt + ink), inset: (bottom: 10pt), width: 100%, text(
|
| 59 |
+
font: mono,
|
| 60 |
+
size: 20pt,
|
| 61 |
+
weight: "bold",
|
| 62 |
+
title,
|
| 63 |
+
))
|
| 64 |
+
body
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
#let slides(title: "Title", subtitle: none, author: none, date: today, body) = {
|
| 68 |
+
show: base
|
| 69 |
+
set text(size: 19pt)
|
| 70 |
+
set page(
|
| 71 |
+
paper: "presentation-16-9",
|
| 72 |
+
margin: (x: 2cm, top: 2cm, bottom: 1.8cm),
|
| 73 |
+
footer: context [#label(title) #h(1fr) #label(counter(page).display())],
|
| 74 |
+
)
|
| 75 |
+
show heading.where(level: 1): it => {
|
| 76 |
+
pagebreak(weak: true)
|
| 77 |
+
block(below: 1em, text(size: 28pt, it.body))
|
| 78 |
+
}
|
| 79 |
+
show heading.where(level: 2): set text(size: 20pt)
|
| 80 |
+
page(fill: coal, background: rect(width: 100%, height: 100%, fill: dots), footer: none, align(horizon)[
|
| 81 |
+
#set text(fill: white)
|
| 82 |
+
#label(text(fill: rgb("#afaead"), (author, date).filter(part => part != none).join[ · ])) \
|
| 83 |
+
#text(font: mono, size: 38pt, weight: "bold", title)
|
| 84 |
+
#if subtitle != none { block(above: 0.6em, text(size: 20pt, fill: rgb("#ccc7c6"), subtitle)) }
|
| 85 |
+
])
|
| 86 |
+
body
|
| 87 |
+
}
|
v2/src/zal-analytics/typst/typst.toml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "zal-analytics"
|
| 3 |
+
version = "1.0.0"
|
| 4 |
+
entrypoint = "lib.typ"
|
v2/themes/blueprint.znx
ADDED
|
Binary file (2.06 kB). View file
|
|
|
v2/themes/boardroom.znx
ADDED
|
Binary file (2.08 kB). View file
|
|
|
v2/themes/books.znx
ADDED
|
Binary file (621 Bytes). View file
|
|
|
v2/themes/classroom.znx
ADDED
|
Binary file (2.21 kB). View file
|
|
|
v2/themes/papers.znx
ADDED
|
Binary file (730 Bytes). View file
|
|
|
v2/themes/resume.znx
ADDED
|
Binary file (485 Bytes). View file
|
|
|
v2/themes/zal-analytics.znx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9926959879efb8b002c596e4cc75d8e08fd61c5fafb79d0e57d223ddbdedfe0a
|
| 3 |
+
size 1020429
|