Headers
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#import "@preview/chic-hdr:0.4.0": *
|
||||
#import "template.typ"
|
||||
|
||||
#show: doc => template.phd(doc)
|
||||
@@ -18,6 +19,43 @@
|
||||
|
||||
#include "introduction/main.typ"
|
||||
|
||||
#show: chic.with(
|
||||
odd: (
|
||||
chic-footer(
|
||||
right-side: chic-page-number(),
|
||||
),
|
||||
chic-header(
|
||||
right-side: context {
|
||||
[ #counter(heading).display((..args) => {
|
||||
let arr = args.pos()
|
||||
if arr.len() == 1 {
|
||||
arr.at(0)
|
||||
} else {
|
||||
str(arr.at(0)) + "." + str(arr.at(1))
|
||||
}
|
||||
})
|
||||
#chic-heading-name(fill: true, level: 2, dir: "prev") ]
|
||||
},
|
||||
),
|
||||
chic-separator(1pt),
|
||||
chic-offset(7pt),
|
||||
chic-height(1.5cm)
|
||||
),
|
||||
even: (
|
||||
chic-footer(
|
||||
left-side: chic-page-number(),
|
||||
),
|
||||
chic-header(
|
||||
left-side: context {
|
||||
[ Chapter #counter(heading).get().at(0) #chic-heading-name(fill: true, level: 1, dir: "prev") ]
|
||||
},
|
||||
),
|
||||
chic-separator(1pt),
|
||||
chic-offset(7pt),
|
||||
chic-height(1.5cm)
|
||||
),
|
||||
)
|
||||
|
||||
#include "foreword/main.typ"
|
||||
|
||||
#include "related-work/main.typ"
|
||||
@@ -28,6 +66,8 @@
|
||||
|
||||
#include "mobile/main.typ"
|
||||
|
||||
#show: doc => { set page(header: [], footer: []); doc }
|
||||
|
||||
#pagebreak()
|
||||
#bibliography("bib.bib", style: "chicago-author-date")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user