Fixed according to feedback
This commit is contained in:
@@ -9,93 +9,123 @@
|
||||
),
|
||||
)
|
||||
|
||||
#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())
|
||||
]),
|
||||
#[
|
||||
#show raw.where(block: false): set text(font: "Laksaman", size: 10.5pt)
|
||||
#show raw.where(block: true): set block(fill: rgb("#282A36"), inset: 1.5em)
|
||||
#show raw.where(block: true): set raw(theme: "Dracula.tmTheme")
|
||||
#show raw.where(block: true): set text(
|
||||
fill: rgb("#F8F8F2"),
|
||||
font: "Cascadia Code",
|
||||
size: 10pt,
|
||||
)
|
||||
}
|
||||
|
||||
#outline(depth: 2, indent: 3.75em)
|
||||
#include "Cover.typ"
|
||||
|
||||
#pagebreak()
|
||||
#counter(page).update(1)
|
||||
#show: page-theme
|
||||
#include "Abstract.typ"
|
||||
#pagebreak()
|
||||
#include "Acknowledgements.typ"
|
||||
#pagebreak()
|
||||
|
||||
#import "@preview/i-figured:0.2.4"
|
||||
#show outline: set heading(outlined: true)
|
||||
#show outline.entry: it => {
|
||||
show linebreak: [ ]
|
||||
link(
|
||||
it.element.location(),
|
||||
grid(
|
||||
columns: 3,
|
||||
column-gutter: 1fr,
|
||||
it.indented(it.prefix(), it.body()),
|
||||
h(1em),
|
||||
context thai-numbering(counter(page).at(it.element.location()).first()),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
#i-figured.outline(target-kind: table, title: [สารบัญตาราง])
|
||||
#[
|
||||
#set page(header: none)
|
||||
#show outline.entry: it => {
|
||||
it
|
||||
|
||||
#pagebreak()
|
||||
context {
|
||||
let outline-pages = counter(page).at(it.location()).first()
|
||||
let current-page = counter(page).get().first()
|
||||
|
||||
#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 current-page > outline-pages {
|
||||
fake-h1("สารบัญ (ต่อ)")
|
||||
v(1em)
|
||||
}
|
||||
}
|
||||
}
|
||||
#outline(depth: 2, indent: 3.75em)
|
||||
]
|
||||
|
||||
if attributions.at(idx).body.body == [] {
|
||||
offset += 1
|
||||
|
||||
if idx + offset >= attributions.len() {
|
||||
#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 + offset).body.body == [] {
|
||||
continue
|
||||
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()
|
||||
}
|
||||
|
||||
f.caption
|
||||
linebreak()
|
||||
h(2.2em)
|
||||
attributions.at(idx + offset).body.body
|
||||
linebreak()
|
||||
}
|
||||
}
|
||||
|
||||
#image-credits()
|
||||
#image-credits()
|
||||
]
|
||||
|
||||
#include "ภาคผนวก/ภาคผนวก.typ"
|
||||
#include "History.typ"
|
||||
|
||||
Reference in New Issue
Block a user