Skip to content

Commit

Permalink
release: v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vonbrank committed Mar 4, 2025
1 parent 71b4123 commit 77edb6e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
安装好 Typst 之后,您只需要选择一个您喜欢的目录,并在此目录下执行以下命令:

```sh
typst init @preview/universal-hit-thesis:0.2.1
typst init @preview/universal-hit-thesis:0.3.0
```

Typst 将会创建一个名为 `universal-hit-thesis` 的文件夹,进入该目录后,您可以直接修改目录下的 `universal-bachelor.typ` ,然后执行以下命令进行编译生成 `.pdf` 文档:
Expand Down Expand Up @@ -70,7 +70,7 @@ typst watch ./templates/<template-name>.typ --root ./
> - 确保配置了 Cargo 环境
> - 使用 `cargo install typship` 安装 typship
> - 项目根目录执行 `typship install local` 将项目部署至本地 `@local` 名称空间下
> - 在模板开头使用 `#import "@local/universal-hit-thesis:0.2.1"` 进行导入
> - 在模板开头使用 `#import "@local/universal-hit-thesis:0.3.0"` 进行导入
> 更多内容可参考 [Typship](https://github.com/sjfhsjfh/typship) 的文档.
### 在线编辑
Expand Down Expand Up @@ -105,19 +105,19 @@ typst watch ./templates/<template-name>.typ --root ./
> [!NOTE]
> 注意到,官方提供的本科毕业设计 Microsoft Word 论文模板 `本科毕业论文(设计)书写范例(理工类).doc` 在一校三区是通用的,意味着本 Typst 模板的本科论文部分理论上也是在一校三区通用的,因此我们提供适用于各校区的本科毕业论文模板模块导出,即以下四种导入模块的方式效果相同:
> ```typ
> #import "@preview/universal-hit-thesis:0.2.1": harbin-bachelor
> #import "@preview/universal-hit-thesis:0.3.0": harbin-bachelor
> #import harbin-bachelor: * // 哈尔滨校区本科
> ```
> ```typ
> #import "@preview/universal-hit-thesis:0.2.1": weihai-bachelor
> #import "@preview/universal-hit-thesis:0.3.0": weihai-bachelor
> #import weihai-bachelor: * // 威海校区本科
> ```
> ```typ
> #import "@preview/universal-hit-thesis:0.2.1": shenzhen-bachelor
> #import "@preview/universal-hit-thesis:0.3.0": shenzhen-bachelor
> #import shenzhen-bachelor: * // 深圳校区本科
> ```
> ```typ
> #import "@preview/universal-hit-thesis:0.2.1": universal-bachelor
> #import "@preview/universal-hit-thesis:0.3.0": universal-bachelor
> #import universal-bachelor: * // 一校三区本科通用
> ```
> 博士论文模板也存在类似的情况,`universal-doctor` 模块理论上在一校三区是通用的
Expand Down
4 changes: 2 additions & 2 deletions templates/shenzhen-master.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/universal-hit-thesis:0.2.1": shenzhen-master // <#用户使用>
// #import "@local/universal-hit-thesis:0.2.1": shenzhen-master // <#本地部署>
#import "@preview/universal-hit-thesis:0.3.0": shenzhen-master // <#用户使用>
// #import "@local/universal-hit-thesis:0.3.0": shenzhen-master // <#本地部署>
// #import "../lib.typ": shenzhen-master // <#模板开发>
#import shenzhen-master: *
Expand Down
4 changes: 2 additions & 2 deletions templates/universal-bachelor.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/universal-hit-thesis:0.2.1": universal-bachelor // <#用户使用>
// #import "@local/universal-hit-thesis:0.2.1": universal-bachelor // <#本地部署>
#import "@preview/universal-hit-thesis:0.3.0": universal-bachelor // <#用户使用>
// #import "@local/universal-hit-thesis:0.3.0": universal-bachelor // <#本地部署>
// #import "../lib.typ": universal-bachelor // <#模板开发>
#import universal-bachelor: *
Expand Down
4 changes: 2 additions & 2 deletions templates/universal-doctor.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "@preview/universal-hit-thesis:0.2.1": universal-doctor // <#用户使用>
// #import "@local/universal-hit-thesis:0.2.1": universal-doctor // <#本地部署>
#import "@preview/universal-hit-thesis:0.3.0": universal-doctor // <#用户使用>
// #import "@local/universal-hit-thesis:0.3.0": universal-doctor // <#本地部署>
// #import "../lib.typ": universal-doctor // <#模板开发>
#import universal-doctor: *
Expand Down
3 changes: 2 additions & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "universal-hit-thesis"
version = "0.2.1"
version = "0.3.0"
entrypoint = "lib.typ"
authors = ["CHOSER Tech", "HITSZ OSA"]
license = "MIT"
Expand All @@ -9,6 +9,7 @@ repository = "https://github.com/hitszosa/universal-hit-thesis"
keywords = ["Harbin Institute of Technology", "thesis"]
categories = ["thesis"]
exclude = []
compiler = "0.13.0"

[template]
path = "templates"
Expand Down

0 comments on commit 77edb6e

Please sign in to comment.