Skip to content

Commit 9d1dd86

Browse files
committed
version: 0.2.0
1 parent 2791ba1 commit 9d1dd86

18 files changed

+133
-401
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Changelog
2+
3+
## 0.2.0 - 2024-11-15
4+
5+
### Fixed
6+
7+
- 审阅人和 `subject` 参数不生效。
8+
- 图表后的段落需要手动进行首行缩进。
9+
- 修复有序列表序号与文本不对齐的问题。
10+
11+
### Removed
12+
13+
- 移除 `fake-par`
14+
- 移除 `outline-conf` 中对一级标题的设置。
15+
- 移除 `sourcer` 包。
16+
- 移除 `term` 下划线函数。
17+
- 移除 `fieldvalue` 下划线函数。
18+
19+
### Added
20+
21+
- 添加 `form` 参数自定义论文格式。
22+
- 添加参考文献引用格式为 `gb-7714-2005-numeric`
23+
- 添加图表与上下正文之间的间距。
24+
25+
### Changed
26+
27+
- 调整封面下划线文字的上下偏移,视觉效果与前文更协调。
28+
- 更改 `title` 标题配置项为 `[]` 可换行的配置方式。
29+
- 调整目录行距为1.5倍。
30+
- 修改英文封面论文信息的对齐方式。
31+
32+
33+
## 0.1.0 - 2024-11-14
34+
35+
_Initial release._
36+
37+
[0.1.0]: https://github.com/shaneworld/HHU-Thesis-Template/releases/tag/v0.1.0

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
<div style="display:flex; flex-direction:column; gap: 20px;">
1414
<div style="display:flex; gap: 20px;">
15-
<img src="./demo_images/title-zh.png" width="400"/>
15+
<img src="./demo_images/title-cn.png" width="400"/>
1616
<img src="./demo_images/title-en.png" width="400"/>
1717
</div>
1818
<div style="display:flex; gap: 20px;">
@@ -23,21 +23,23 @@
2323

2424
## 使用方法
2525

26-
模板正在上传 Typst Universe ,收录成功后可以使用 `typst init` 功能初始化,也可以使用 Web App 编辑。Typst Universe 上的模板可能不是最新版本。如果需要使用最新版本的模板,从本 repo 中获取。
26+
模板已上传 Typst Universe ,可以使用 `typst init` 功能初始化,也可以使用 Web APP 编辑。**Typst Universe 上的模板可能不是最新版本。如果需要使用最新版本的模板,从本 repo 中获取。**
2727

2828
#### 本地使用(推荐)
2929

30-
使用前,请先安装 `fonts` 目录内的全部字体
30+
使用前,请先安装 `https://github.com/shaneworld/Dots/tree/master/fonts` 中的全部字体
3131

32-
- 克隆或下载本 repo 的全部文件,编辑 `init-files` 目录内的示例文件
32+
- 克隆本 repo 到本地,编辑 `init-files` 目录内的文件
3333

34-
- 使用 `typst init` 本地初始化模板**TODO**
34+
- 使用 `typst init @preview/shane-hhu-thesis:0.1.0` 本地初始化模板
3535

36-
#### Web App 内使用
36+
#### Web APP 内使用
3737

38-
由于字体原因,不建议使用此方法
38+
由于 Typst Web APP 在每次打开页面的时候都会从服务器中下载字体,速度较慢,体验较差,因此不建议使用此方法
3939

40-
**TODO**
40+
[Typst Universe](https://typst.app/universe/package/shane-hhu-thesis) 中点击 `Create project in app` 按钮进入 Web APP 内。
41+
42+
然后,请将 `https://github.com/shaneworld/Dots/tree/master/fonts` 内的所有字体上传到 Web APP 内该项目的根目录后按照提示使用。
4143

4244
## 模板内容
4345

@@ -46,23 +48,23 @@
4648
目前包含以下页面:
4749

4850
- [x] 中英文封面
51+
- [x] 郑重声明
4952
- [x] 中英文摘要
5053
- [x] 目录
5154
- [x] 正文
5255
- [x] 致谢
5356
- [x] 参考文献
5457
- [x] 附录
5558

56-
模板目前仍然存在一些细节问题,后续会陆续更新解决。
59+
此论文模板不仅适用于本科生毕业论文/设计,同样适用于平时的课程报告等规范内容。可以通过自定义 `form` 字段更改论文种类,有以下3种格式可供选择:
60+
61+
- `thesis`:毕业论文
62+
- `design`:毕业设计
63+
- `report`:课程报告
64+
65+
可以通过修改 `heading` 字段修改页眉内容,修改 `thesis-name` 下的 `CN` 字段修改封面页面展示的标题。
5766

58-
- [ ] 图标后的段落需要使用 `#h(2em)` 手动缩进两个字符。
59-
- [ ] 参考文献格式不完全符合学校要求的国家标准(GB7714-2005)要求。
60-
- [ ] 行距、边距等有待继续调整,尤其是图标的上下行距。
61-
- [ ] 存在多个重复的下划线显示方式,需要合并。
62-
- [ ] 表头单独加粗英文字体。
63-
- [ ] 调整下划线和下划线之前的文字底部对齐。
64-
- [ ] 调整有序列表序号的位置,使其与文字对齐。
65-
- [ ] 其他代码精简与优化。
67+
如果发现模板的问题,欢迎提交 issue。
6668

6769
## 致谢
6870

demo_images/outline.png

5.6 MB
Loading

demo_images/statement.png

5.63 MB
Loading

demo_images/title-cn.png

5.73 MB
Loading

demo_images/title-en.png

5.64 MB
Loading

demo_images/title-zh.png

-108 KB
Binary file not shown.

hhu-thesis/parts/abstract-conf.typ

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,3 @@
6666
}
6767
}
6868
}
69-
70-
// TODO: 合并默认配置
71-
#abstract-conf(
72-
cn-abstract: [摘要],
73-
cn-keywords: ("关键词1", "关键词2"),
74-
en-abstract: [ABSTRACT],
75-
en-keywords: ("Keywords1", "Keywords2"),
76-
)

hhu-thesis/parts/heading-conf.typ

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "../utils/utils.typ": ziti, zihao, to-string, fake-par, show-cn-fakebold, i-figured
1+
#import "../utils/utils.typ": ziti, zihao, to-string, show-cn-fakebold, i-figured
22

33
#let heading-conf(
44
// 下方以数组形式给出的参数,代表 level 1, level 2, ... 标题分别使用的参数。
@@ -22,7 +22,7 @@
2222
// 每次一级标题都切换到新的页面,取值为 auto bool 或 function ,如果 function 则会以 function 作为分页时执行的操作
2323
always-new-page: false,
2424
// 为 true 时,二字标题会变为 A #h(2em) B
25-
auto-h-spacing: true,
25+
auto-h-spacing: false,
2626
it
2727
) = {
2828
set par(first-line-indent: 0em)
@@ -98,6 +98,4 @@
9898
)
9999

100100
i-figured.reset-counters((level: it.level), return-orig-heading: false)
101-
102-
fake-par
103101
}

hhu-thesis/parts/outline-conf.typ

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66
number-align: center,
77
margin: (top: 3.5cm, bottom: 3.2cm, left: 3.2cm, right: 3.2cm),
88
)
9-
set par(first-line-indent: 0pt, leading: 10pt)
10-
11-
show heading.where(
12-
level: 1
13-
): it => {
14-
set align(center)
15-
set text(font: ziti.黑体, size: zihao.小二, weight: "bold")
16-
it.body
17-
}
9+
set par(first-line-indent: 0pt, leading: 1.2em)
1810

1911
heading(
2012
numbering: none,

0 commit comments

Comments
 (0)