Finish Flutter heading

This commit is contained in:
2025-12-31 21:54:51 +07:00
parent f37340d485
commit 1c627501dd
28 changed files with 1577 additions and 1402 deletions
+11 -3
View File
@@ -45,10 +45,12 @@
title: [สารบัญภาพ],
)
#include "Chapter1.typ"
#show heading: i-figured.reset-counters
#show figure: i-figured.show-figure
#include "Chapter1.typ"
#include "Chapter2/Chapter2.typ"
#include "Chapter3.typ"
#include "Chapter3/Chapter3.typ"
#include "Chapter4.typ"
#include "Chapter5.typ"
@@ -69,21 +71,27 @@
let offset = 0
for (idx, f) in figures.enumerate() {
if (idx >= attributions.len()) {
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()
}
}