Files
liteauthdocs/main.typ
T
2025-12-31 21:54:51 +07:00

102 lines
2.1 KiB
Typst

#import "PageTemplate.typ": *
#set document(
title: "เครื่องยืนยันตัวตนด้วย NFC",
author: (
"ประภากร ศรีวรสาร",
"พีรดา แสงแป้",
"ศตคุณ อุตมะ",
),
)
#include "ปก.typ"
#counter(page).update(1)
#show: page-theme
#include "Abstract.typ"
#pagebreak()
#include "Acknowledgements.typ"
#pagebreak()
#show outline: set heading(outlined: true)
#show outline.entry: it => {
show linebreak: [ ]
link(
it.element.location(),
it.indented(it.prefix(), context [
#it.body()
#box(width: 1fr, repeat[.])
#context thai-numbering(counter(page).at(it.element.location()).first())
]),
)
}
#outline(depth: 2, indent: 3.75em)
#pagebreak()
#import "@preview/i-figured:0.2.4"
#i-figured.outline(target-kind: table, title: [สารบัญตาราง])
#pagebreak()
#i-figured.outline(
title: [สารบัญภาพ],
)
#show heading: i-figured.reset-counters
#show figure: i-figured.show-figure
#include "Chapter1.typ"
#include "Chapter2/Chapter2.typ"
#include "Chapter3/Chapter3.typ"
#include "Chapter4.typ"
#include "Chapter5.typ"
#bibliography(
"References.yaml",
title: "บรรณานุกรม",
full: true,
style: "nong-khai-technical-college-project-guidelines.csl",
)
#pagebreak()
= บรรณานุกรมภาพ
#let image-credits() = context {
let figures = query(figure.where(kind: "i-figured-image"))
let attributions = query(<afig>)
let offset = 0
for (idx, f) in figures.enumerate() {
if idx >= attributions.len() {
return
}
if attributions.at(idx).body.body == [] {
offset += 1
if idx + offset >= attributions.len() {
return
}
if attributions.at(idx + offset).body.body == [] {
continue
}
}
f.caption
linebreak()
h(2.2em)
attributions.at(idx + offset).body.body
linebreak()
}
}
#image-credits()
#include "ภาคผนวก/ภาคผนวก.typ"
#include "History.typ"