Initial commit

This commit is contained in:
2025-12-01 20:36:16 +07:00
commit 06a11c8188
39 changed files with 52279 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
#let thai-numbering(n) = {
let chars = ("ก", "ข")
if n <= chars.len() {
chars.at(n - 1)
} else {
str(n - chars.len()) // fallback to numbers if exceeds available characters
}
}
#let page-theme(doc) = {
set page(
paper: "a4",
margin: (
top: 1.5in,
left: 1.5in,
right: 1in,
bottom: 1in,
),
header: context [
#h(1fr)
#counter(page).display(thai-numbering)
],
)
set text(
lang: "th",
font: "Laksaman",
size: 10.5pt,
)
set par(
justify: true,
justification-limits: (
tracking: (min: 0pt, max: 1pt),
),
leading: 1em,
)
set list(indent: 1em)
show heading: set text(size: 10.5pt)
show heading: set block(below: 1em)
show heading.where(level: 1): set text(size: 12pt)
show heading.where(level: 1): set align(center)
show heading.where(level: 2): set text(size: 12pt)
show raw: set text(font: "Cascadia Code", size: 10pt)
set ref(supplement: "หัวข้อ")
doc
}
#let i = h(3em)