Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meet_requirements_at_April_2024 #19

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,8 @@
})

// Filler dots
if el.level == 1 {
box(width: 1fr, h(10pt) + box(width: 1fr) + h(10pt))
} else {
box(width: 1fr, h(10pt) + box(width: 1fr, repeat[.]) + h(10pt))
}
box(width: 1fr, h(10pt) + box(width: 1fr, repeat[.]) + h(10pt))


// Page number
let footer = query(selector(<__footer__>).after(el.location()), el.location())
Expand All @@ -201,7 +198,7 @@
} else {
counter(page).at(footer.first().location()).first()
}

link(el.location(), if el.level == 1 {
strong(str(page_number))
} else {
Expand Down Expand Up @@ -502,7 +499,7 @@
]

#if it.level == 1 {
if not it.body.text in ("Abstract", "学位论文使用授权说明", "版权声明") {
if not it.body.text in ("ABSTRACT", "学位论文使用授权说明", "版权声明") {
smartpagebreak()
}
locate(loc => {
Expand Down Expand Up @@ -750,16 +747,16 @@
Directed by #esupervisor
]
}
#heading(numbering: none, outlined: false, "Abstract")
#heading(numbering: none, outlined: false, "ABSTRACT")
#eabstract
#v(1fr)
#set par(first-line-indent: 0em)
*KEYWORDS:*
KEY WORDS:
#h(0.5em, weak: true)
#ekeywords.join(", ")
#v(2em)
]

// Table of contents
chineseoutline(
title: "目录",
Expand Down