-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.typ
55 lines (48 loc) · 1.44 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
#import "template.typ": *
#show: template.with(
// 笔记标题
title: [SimpleNote],
// 在页眉展示的短标题(选填)
short-title: "SimepleNote",
// 笔记描述(选填)
description: [
此模板修改自 #link("https://github.com/jskherman/jsk-lecnotes")[jsk-lecnotes] \ Winter 2023
],
// 笔记创建日期(选填)
date: datetime(year: 2023, month: 12, day: 19),
// 作者信息(除 name 外,其他参数选填)
authors: (
(
name: "Akkiri",
github: "https://github.com/a-kkiri",
homepage: "https://github.com/a-kkiri",
affiliations: "1,2",
),
),
// 所属组织列表,每一项包括一个 id 和 name。这些将显示在作者下方。
affiliations: (
(id: "1", name: "Example University"),
(id: "2", name: "Example Inc."),
),
// 参考书目文件路径及引用样式
bibliography-file: "refs.bib",
bibstyle: "gb-7714-2015-numeric",
// 页面尺寸,同时会影响页边距。
paper-size: "a4",
// 中英文文本和代码的字体
fonts: (
(
en-font: "Linux Libertine",
zh-font: "Noto Sans CJK SC",
code-font: "DejaVu Sans Mono",
)
),
// 主题色
accent: orange,
// 封面背景图片(选填图片路径或 none)
cover-image: "./figures/cover-image.png",
// 正文背景颜色(选填 HEX 颜色或 none)
background-color: "#FAF9DE"
)
#include "content/chapter1.typ"
#include "content/chapter2.typ"