Finish Flutter heading
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user