Skip to content

Commit fe98fe7

Browse files
committed
change style of outline & fix retraction issues
1 parent 3ac26a2 commit fe98fe7

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.3.0 - 2025-02-26
4+
5+
### Fixed
6+
7+
代码块后的首段无首行缩进
8+
9+
### Changed
10+
11+
- 调整目录不同层级缩进,统一目录字号
12+
- 减小图片与上下文距离
13+
314
## 0.2.0 - 2024-11-15
415

516
### Fixed

hhu-thesis/parts/outline-conf.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
v(1cm)
1717
show outline.entry.where(level: 1): it => {
1818
v(1.2em, weak: true)
19-
set text(font: ziti.宋体, size: zihao.四号, weight: "bold")
19+
set text(font: ziti.宋体, size: zihao.小四, weight: "bold")
2020
strong(it)
2121
}
22-
outline(title: none, depth: outline-depth, indent: 0em)
22+
outline(title: none, depth: outline-depth, indent: 2em)
2323
}

hhu-thesis/utils/utils.typ

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@
187187
// 图表后段落自动首行缩进
188188
#let show-figure(fig) = {
189189
par()[#text(size:0em)[#h(0em)]]
190+
v(-1em)
190191
fig
191192
par()[#text(size:0em)[#h(0em)]]
193+
v(-1em)
192194
}
193195

194-
// TODO: 只加粗caption的英文
196+
195197
#let show-table(caption) = {
196198
// 将文本转换为字符串
197199
let text = to-string(caption)
@@ -204,8 +206,6 @@
204206
}
205207
}
206208

207-
// TODO: 调整有序列表序号的位置,使其与文字平齐
208-
209209
// code display
210210
#let code(
211211
line-spacing: 5pt,
@@ -340,4 +340,6 @@
340340
}
341341

342342
raw(block: true, lang: source.lang, unlabelled-source)
343+
par()[#text(size:0em)[#h(0em)]]
344+
v(-1.2em)
343345
}

init-files/thesis.typ

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#import "@preview/shane-hhu-thesis:0.2.0": bachelor-conf, thanks, appendix, code
22

3+
// #import "../hhu-thesis/template.typ": bachelor-conf, thanks, appendix, code
4+
35
// 使用前请先安装 `https://github.com/shaneworld/Dots/tree/master/fonts` 中的全部字体
46

57
#show: doc => bachelor-conf(
@@ -27,7 +29,7 @@
2729
CN: "河海大学",
2830
EN: "Hohai University",
2931
),
30-
form: "thesis", // 毕业论文:"thesis",毕业设计:"design"
32+
form: "thesis", // 毕业论文:"thesis",毕业设计:"design", 课程报告:"report"
3133
major: "自动化",
3234
subject: "subject",
3335
reader: "李四 副教授",

0 commit comments

Comments
 (0)