Forced Stylistic Changes

This commit is contained in:
2025-12-28 10:49:09 +07:00
parent 95f5cd414e
commit f37340d485
15 changed files with 2859 additions and 797 deletions
+34 -9
View File
@@ -16,14 +16,28 @@
right: 1in,
bottom: 1in,
),
header: context [
#h(1fr)
#counter(page).display(thai-numbering)
],
header: none,
)
doc
}
/// Sane indentation
#let i = h(3em)
/// Insane shit forced upon by my teacher
/// For indenting in 3rd level subheadings
#let iii = h(3em)
// #let iii = h(5.5em)
/// For indenting in 4th level subheadings
#let iiii = h(6em)
// #let iiii = h(9.25em)
#let iiiii = h(9em)
#let iiiiii = h(12em)
#let page-theme(doc) = {
set page(
paper: "a4",
@@ -51,12 +65,25 @@
leading: 1em,
)
set list(indent: 1em)
show heading: set text(size: 10.5pt)
show heading: set text(size: 10.5pt, weight: "regular")
show heading: set block(below: 1em)
show heading.where(level: 1): set text(size: 12pt)
show heading.where(level: 1): set text(size: 12pt, weight: "bold")
show heading.where(level: 1): set align(center)
show heading.where(level: 2): set text(weight: "bold")
show heading: it => {
if it.level > 2 {
block(
it,
inset: (left: 3em * (it.level - 2)),
)
} else {
it
}
}
show math.equation: set text(font: "Laksaman")
show raw: set text(font: "Cascadia Code", size: 10pt)
show table.cell.where(y: 0): strong
set enum(number-align: start + top)
set ref(supplement: "หัวข้อ")
doc
}
@@ -64,7 +91,7 @@
// Figure with attribution information
#let afigure(
body,
attr: "",
attr: none,
..args,
) = [
#figure(body, ..args)
@@ -75,6 +102,4 @@
) <afig>
]
#let i = h(3em)
#let jb = linebreak(justify: true)