-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabstract-en.typ
44 lines (36 loc) · 1.37 KB
/
abstract-en.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// 利用 state 捕获摘要参数,并通过 context 传递给渲染函数
#import "/utils/style.typ": 字号, 字体
#let abstract-en-keywords = state("keywords-en", (
"Sun Yat-sen University",
"thesis",
"specification",
))
#let abstract-en-content = state("abstract-en", [
英文摘要及关键词内容应与中文摘要及关键词内容相同。中英文摘要及其关键词各置一页内。
The English abstract and its keywords should be the same as the Chinese one.
Both Chinese and English should be in seperated pages.
])
#let abstract-en(
keywords: (),
body,
) = {
context abstract-en-keywords.update(keywords)
context abstract-en-content.update(body)
}
// 英文摘要页
#let abstract-en-page() = {
// 英文摘要内容 Times New Roman小四号
set text(font: 字体.宋体, size: 字号.小四)
// 英文摘要标题 Times New Roman加粗三号全部大写
show heading.where(level: 1): set text(font: 字体.宋体, size: 字号.三号, weight: "bold")
// 摘要标题不编号
show heading.where(level: 1): set heading(numbering: none)
[
= ABSTRACT
#context abstract-en-content.final()
#v(1em)
// 摘要正文下方另起一行顶格打印“关键词”款项,后加冒号,多个关键词以逗号分隔。
// (标题“Keywords”加粗)
*Keywords:* #context abstract-en-keywords.final().join(", ")
]
}