diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..2e4dfa7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,45 @@ +--- +name: Bug 反馈 +about: 通过该 Issue 模板反馈使用 tongji-undergrad-thesis-typst 时的 bug +labels: 'type/bug' +--- + +### 使用平台详情 + + + +* [ ] 线上:Typst App +* [ ] 本地:Typst +* [ ] 不,我使用的是 _________ + + + +### 编译日志 + + + +
报错内容 [点击打开] +
+ +```log +# Paste your log here: +``` + +
+
+ +### 文件结构 + + + +```log + +``` + +### 问题描述 + + + +### 其他信息 + + diff --git a/.github/ISSUE_TEMPLATE/docs_request.md b/.github/ISSUE_TEMPLATE/docs_request.md new file mode 100644 index 0000000..8799c70 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/docs_request.md @@ -0,0 +1,25 @@ +--- +name: Docs 反馈 +about: 通过该 Issue 模板反馈目前 tongji-undergrad-thesis-typst 文档的不足之处 +labels: 'type/docs' +--- + +### 文档不足之处 + + + +* 平台相关 + * [ ] 在线平台:Typst App + * [ ] 本地平台:Typst +* 使用过程 + * [ ] 模版编译(编译配置、依赖安装等) + * [ ] 最佳实践(Typst 基础知识、模版使用教学、工作流等) +* [ ] 不,我需要其他文档:_________ + +### 对文档的期望 + + + +### 其他信息 + + diff --git a/.github/ISSUE_TEMPLATE/feat_request.md b/.github/ISSUE_TEMPLATE/feat_request.md new file mode 100644 index 0000000..11f5aa8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feat_request.md @@ -0,0 +1,21 @@ +--- +name: Feature 建议 +about: 通过该 Issue 模板反馈向 tongji-undergrad-thesis-typst 提供需要新增的 feature 的具体信息 +labels: 'type/feature' +--- + +### 新增特性类型 + + + +* [ ] 构建相关(如需要提供新的构建方法,现有构建方式需要迭代重构等) +* [ ] 模板功能相关(如需要模板提供其他实用功能,适配新的模板样式等) +* [ ] 文档相关(如更好展现该模板使用方法的想法) + +### 特性描述 + + + +### 其他信息 + + diff --git a/.github/bin/package_release.sh b/.github/bin/package_release.sh new file mode 100644 index 0000000..f33d5ac --- /dev/null +++ b/.github/bin/package_release.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +MAIN_BRANCH="main" +PACKAGE_RELEASE_BRANCH="package" +PACKAGE_RELEASE_DIFF=".github/patches/package_release.diff" + +set -e + +git branch -D $PACKAGE_RELEASE_BRANCH || true + +git checkout -b $PACKAGE_RELEASE_BRANCH origin/$MAIN_BRANCH + +git apply $PACKAGE_RELEASE_DIFF + +git add . + +git commit -m "Applied package releasing patch to \`main\` branch" + +git push origin $PACKAGE_RELEASE_BRANCH --force + diff --git a/.github/patches/package_release.diff b/.github/patches/package_release.diff new file mode 100644 index 0000000..af8731a --- /dev/null +++ b/.github/patches/package_release.diff @@ -0,0 +1,56 @@ +diff --git a/init-files/main.typ b/init-files/main.typ +index 9d382fa..7ae7825 100644 +--- a/init-files/main.typ ++++ b/init-files/main.typ +@@ -1,2 +1,2 @@ +-#import "../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + +diff --git a/init-files/sections/01_intro.typ b/init-files/sections/01_intro.typ +index 11a6b70..3b71298 100644 +--- a/init-files/sections/01_intro.typ ++++ b/init-files/sections/01_intro.typ +@@ -1,2 +1,2 @@ +-#import "../../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + +diff --git a/init-files/sections/02_math.typ b/init-files/sections/02_math.typ +index 53aba17..d90ba0a 100644 +--- a/init-files/sections/02_math.typ ++++ b/init-files/sections/02_math.typ +@@ -1,2 +1,2 @@ +-#import "../../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + +diff --git a/init-files/sections/03_reference.typ b/init-files/sections/03_reference.typ +index 9388431..4d8bf7a 100644 +--- a/init-files/sections/03_reference.typ ++++ b/init-files/sections/03_reference.typ +@@ -1,2 +1,2 @@ +-#import "../../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + +diff --git a/init-files/sections/04_figure.typ b/init-files/sections/04_figure.typ +index ae430cb..6db57e2 100644 +--- a/init-files/sections/04_figure.typ ++++ b/init-files/sections/04_figure.typ +@@ -1,2 +1,2 @@ +-#import "../../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + +diff --git a/init-files/sections/05_conclusion.typ b/init-files/sections/05_conclusion.typ +index 13f77d3..bbf6b54 100644 +--- a/init-files/sections/05_conclusion.typ ++++ b/init-files/sections/05_conclusion.typ +@@ -1,2 +1,2 @@ +-#import "../../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + +diff --git a/init-files/sections/acknowledgments.typ b/init-files/sections/acknowledgments.typ +index 58a6d24..13dce10 100644 +--- a/init-files/sections/acknowledgments.typ ++++ b/init-files/sections/acknowledgments.typ +@@ -1,2 +1,2 @@ +-#import "../../paddling-tongji-thesis/tongjithesis.typ": * ++#import "@preview/paddling-tongji-thesis:0.1.1": * + diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..4c2ecdf --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,24 @@ +### :warning: 提交 PR 需要注意的事项 + + + +- [ ] 已通读 [CONTRIBUTING](../CONTRIBUTING.md) 文档中对 Pull request 的流程规定。 +- [ ] 如果提供的是 “模板功能特性” 相关的代码,已经写好了较为易懂的注释,并修改了对应的文档。 +- [ ] 如果提供的是 “模板功能特性” 相关的代码,已尽可能在各平台上进行了测试。 +- [ ] 确定该部分(:warning: 提交 PR 需要注意的事项)已在正式 PR 中被删去。 + +## 对该 PR 的总结 + + + +### 该 PR 的成功合入是否需要关闭一些 Issue? + + + +### 该 PR 的功能展示 + + + +### 该 PR 的其他信息 + + \ No newline at end of file diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml new file mode 100644 index 0000000..0586cef --- /dev/null +++ b/.github/workflows/prepare_release.yml @@ -0,0 +1,23 @@ +name: Prepare Release + +on: + push: + branches: + - main + +jobs: + apply-patch: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Git + run: | + git config --global user.name 'github-actions' + git config --global user.email 'github-actions@github.com' + + - name: Apply patch and create new branch + run: | + chmod +x .github/bin/package_release.sh + .github/bin/package_release.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 50cb5e0..99599d9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,9 +2,9 @@ ## Contents -* source files: as a template repository, "source files" are ".typ", ".bib" and some related files with other extension names. -* doc files: including all ".typ" files and even "main.typ", which show how to use "source files". -* config files: These files make our development and use of templates more standardlized (e.g. .gitignore). +- source files: as a template repository, "source files" are ".typ", ".bib" and some related files with other extension names. +- doc files: including all ".typ" files and even "main.typ", which show how to use "source files". +- config files: These files make our development and use of templates more standardlized (e.g. .gitignore). ## How to contribute @@ -27,4 +27,18 @@ We recommend to follow this workflow step by step: 3. Create a new local branch as a work branch. 4. Commit some changes on the work branch. 5. Push the new local branch to remote with commits. -6. Pull request, from the new remote branch to any branch of upstream repository. \ No newline at end of file +6. Pull request, from the new remote branch to any branch of upstream repository. + +### Before your pull request + +Remember to check whether you have added, renamed or removed file in `init-files/`. If so, please update the `.github/patches/package_release.diff` and commit it along with your pull request. + +如果你新增、移动或删除了`init-files/`目录下的文件,请检查是否需要更新`.github/patches/package_release.diff`,并将其随PR一同提出。 + +> [!TIP] +> You can use `git diff HEAD~1 HEAD > package_release.diff` to generate a patch that can be accepted. + +> [!IMPORTANT] +> We use `git apply` to apply the patch and generate a package-release branch. Please check if your patch can be applied successfully. If not, we may not be able to merge your branch. +> +> 请务必确保patch可以被`git apply`命令应用。如果patch未更新或无法被正确应用,我们可能将无法合并您的分支。 diff --git a/README-EN.md b/README-EN.md index 18cdb7e..44e5fde 100644 --- a/README-EN.md +++ b/README-EN.md @@ -1,4 +1,3 @@ - # :page_facing_up: Tongji University Undergraduate Thesis Typst Template (STEM) [中文](README.md) | English @@ -21,68 +20,65 @@ Below are displayed in order the "Cover", "Chinese Abstract", "Table of Contents

-## How to Use +## Usage Instructions ### Online Web App -Please open [https://typst.app/universe/package/tongji-undergrad-thesis](https://typst.app/universe/package/tongji-undergrad-thesis) and click `Create project in app` , or choose `Start from a template`in the Web App, and choose `tongji-undergrad-thesis`. +#### Create Project -And then, please upload **all** fonts from [https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts/fonts](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts/fonts) to the root directory of the project in the Web App. +- Open [![svg of typst-tongjithesis](https://img.shields.io/badge/Typst-paddling--tongji--thesis-239dae)](https://www.overleaf.com/latex/templates/tongji-university-undergraduate-thesis-template/tfvdvyggqybn) and click `Create project in app`. -### Local - With typst init +- Or select `Start from a template` in the [Typst Web App](https://typst.app), then choose `paddling-tongji-thesis`. -#### 1. Install Typst +#### Upload Fonts -Refer to the [Typst](https://github.com/typst/typst?tab=readme-ov-file#installation) official documentation for installation. +Download all font files from the [`fonts` branch](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts) and upload them to the root directory of the project in the Typst Web App. You can then start using the template. -#### 2. Init the project from the template +### Local Usage -```bash -typst init @preview/tongji-undergrad-thesis -``` +#### 1. Install Typst -#### 3. Download Fonts +Follow the [Typst official documentation](https://github.com/typst/typst?tab=readme-ov-file#installation) to install Typst. -Please download the font files from the [`fonts`](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts) branch of this repository and install the font files to your system. +#### 2. Download Fonts -#### 4. Compile +Download all font files from the [`fonts` branch](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts) and **install them on your system**. -Modify related files as needed, then execute the following command to compile. +#### Initialization using `typst` + +##### Initialize Project ```bash -typst compile main.typ +typst init @preview/paddling-tongji-thesis ``` -> [!TIP] -> If you find that the fonts are not displayed properly, please install the fonts to your system and then execute the compile command. +##### Compile -### Local - With git clone - -#### 1. Install Typst +```bash +typst compile main.typ +``` -Refer to the [Typst](https://github.com/typst/typst?tab=readme-ov-file#installation) official documentation for installation. +#### Initialization using `git clone` -#### 2. Clone this project +##### Git Clone Project ```bash git clone https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst.git cd tongji-undergrad-thesis-typst ``` -#### 3. Download Fonts - -Please download the font files from the [`fonts`](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts) branch of this repository and place them in the `fonts` folder, or install the font files to your system. - -#### 4. Compile - -Modify related files in `init-files` as needed, then execute the following command to compile. +##### Compile ```bash -typst --font-path ./fonts compile init-files/main.typ --root . +typst compile init-files/main.typ --root . ``` > [!TIP] -> If you find that the fonts are not displayed properly, please install the font files in the `fonts` folder to your system and then execute the compile command. +> If you don't want to install the fonts used by the project on your system, you can specify the font path during compilation, for example: +> +> ```bash +> typst compile init-files/main.typ --root . --font-path {YOUR_FONT_PATH} +> ``` ## How to Contribute to This Project? @@ -98,8 +94,8 @@ This project uses fonts from the FounderType font library, with copyright belong ## Acknowledgments for Outstanding Contributions -* This project originated from [FeO3](https://github.com/seashell11234455)'s initial version project [tongji-undergrad-thesis-typst](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/lky). -* Later, [RizhongLin](https://github.com/RizhongLin) improved the template to better meet the requirements of Tongji University undergraduate thesis, and added basic tutorials for Typst. +- This project originated from [FeO3](https://github.com/seashell11234455)'s initial version project [tongji-undergrad-thesis-typst](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/lky). +- Later, [RizhongLin](https://github.com/RizhongLin) improved the template to better meet the requirements of Tongji University undergraduate thesis, and added basic tutorials for Typst. We are very grateful to the above contributors for their efforts, which have provided convenience and help to more students. @@ -109,8 +105,8 @@ When using this template, if you find this project helpful for your graduation p We have learned a lot from the excellent open-source projects of top universities: -* [lucifer1004/pkuthss-typst](https://github.com/lucifer1004/pkuthss-typst) -* [werifu/HUST-typst-template](https://github.com/werifu/HUST-typst-template) +- [lucifer1004/pkuthss-typst](https://github.com/lucifer1004/pkuthss-typst) +- [werifu/HUST-typst-template](https://github.com/werifu/HUST-typst-template) ## Contact @@ -119,4 +115,7 @@ We have learned a lot from the excellent open-source projects of top universitie [ 'rizhonglin@$.%'.replace('$', 'epfl').replace('%', 'ch'), ] -``` \ No newline at end of file +``` +### QQ Group + +- TJ-CSCCG Communication Group: `1013806782` \ No newline at end of file diff --git a/README.md b/README.md index 9b3ca08..e58d338 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ > [!CAUTION] > 由于 Typst 项目仍处于密集发展阶段,且对某些功能的支持不完善,因此本模板可能存在一些问题。如果您在使用过程中遇到了问题,欢迎提交 issue 或 PR,我们会尽力解决。 > -> 在此期间,欢迎大家使用[我们的 $\LaTeX$ 模板](https://github.com/TJ-CSCCG/tongji-undergrad-thesis)。 +> 在此期间,欢迎大家使用[我们的 LaTeX 模板](https://github.com/TJ-CSCCG/tongji-undergrad-thesis)。 ## 样例展示 @@ -24,64 +24,62 @@ ### 在线 Web App -请打开 [https://typst.app/universe/package/tongji-undergrad-thesis](https://typst.app/universe/package/tongji-undergrad-thesis) 并点击 `Create project in app` ,或在 Web App 中选择 `Start from a template`,再选择 `tongji-undergrad-thesis`。 +#### 创建项目 -然后,请将 [https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts/fonts](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts/fonts) 内的 **所有** 字体上传到 Typst Web App 内该项目的根目录。 +- 打开 Typst Universe 中的 [![svg of typst-tongjithesis](https://img.shields.io/badge/Typst-paddling--tongji--thesis-239dae)](https://www.overleaf.com/latex/templates/tongji-university-undergraduate-thesis-template/tfvdvyggqybn) +并点击 `Create project in app`。 -### 本地 - 使用typst init +- 或在 [Typst Web App](https://typst.app) 中选择 `Start from a template`,然后选择 `paddling-tongji-thesis`。 + +#### 上传字体 + +从[`fonts` 分支](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts)下载所有字体文件,上传到该项目的根目录。即可开始使用。 + +### 本地使用 #### 1. 安装 Typst 参照 [Typst](https://github.com/typst/typst?tab=readme-ov-file#installation) 官方文档安装 Typst。 -#### 2. 从模板初始化项目 +#### 2. 下载字体 -```bash -typst init @preview/tongji-undergrad-thesis -``` +从[`fonts` 分支](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts)下载所有字体文件,并**安装到系统中**。 -#### 3. 下载字体 +#### 使用 `typst` 初始化 -请到本仓库的 [`fonts`](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts) 分支下载字体文件,并将其安装到系统中。 +##### 初始化项目 -#### 4. 编译 +```bash +typst init @preview/paddling-tongji-thesis +``` -按照需求修改相关文件,然后执行以下命令以编译。 +##### 编译 ```bash typst compile main.typ ``` -> [!TIP] -> 若您发现字体无法正常显示,请将字体文件安装到系统中,再执行编译命令。 +#### 使用 `git clone` 初始化 -### 本地 - 使用Git Clone - -#### 1. 安装 Typst - -参照 [Typst](https://github.com/typst/typst?tab=readme-ov-file#installation) 官方文档安装 Typst。 - -#### 2. clone 本项目 +##### Git Clone 项目 ```bash git clone https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst.git cd tongji-undergrad-thesis-typst ``` -#### 3. 下载字体 - -请到本仓库的 [`fonts`](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/fonts) 分支下载字体文件,并将其放置在 `fonts` 文件夹中,或者将字体文件安装到系统中。 - -#### 4. 编译 - -按照需求修改`init-files`目录内的相关文件,然后执行以下命令以编译。 +##### 编译 ```bash -typst --font-path ./fonts compile init-files/main.typ --root . +typst compile init-files/main.typ --root . ``` > [!TIP] -> 若您发现字体无法正常显示,请将 `fonts` 文件夹中的字体文件安装到系统中,再执行编译命令。 +> 若你不想把项目使用的字体安装到系统中,可以在编译时指定字体路径,例如: +> +> ```bash +> typst compile init-files/main.typ --root . --font-path {YOUR_FONT_PATH} +> ``` ## 如何为该项目贡献代码? @@ -97,8 +95,8 @@ typst --font-path ./fonts compile init-files/main.typ --root . ## 有关突出贡献的说明 -* 该项目起源于 [FeO3](https://github.com/seashell11234455) 的初始版本项目 [tongji-undergrad-thesis-typst](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/lky)。 -* 后来 [RizhongLin](https://github.com/RizhongLin) 对模板进行了完善,使其更加符合同济大学本科生毕业设计论文的要求,并增加了针对 Typst 的基础教程。 +- 该项目起源于 [FeO3](https://github.com/seashell11234455) 的初始版本项目 [tongji-undergrad-thesis-typst](https://github.com/TJ-CSCCG/tongji-undergrad-thesis-typst/tree/lky)。 +- 后来 [RizhongLin](https://github.com/RizhongLin) 对模板进行了完善,使其更加符合同济大学本科生毕业设计论文的要求,并增加了针对 Typst 的基础教程。 我们非常感谢以上贡献者的付出,他们的工作为更多同学提供了方便和帮助。 @@ -108,8 +106,8 @@ typst --font-path ./fonts compile init-files/main.typ --root . 我们从顶尖高校的优秀开源项目中学到了很多: -* [lucifer1004/pkuthss-typst](https://github.com/lucifer1004/pkuthss-typst) -* [werifu/HUST-typst-template](https://github.com/werifu/HUST-typst-template) +- [lucifer1004/pkuthss-typst](https://github.com/lucifer1004/pkuthss-typst) +- [werifu/HUST-typst-template](https://github.com/werifu/HUST-typst-template) ## 联系方式 @@ -122,4 +120,4 @@ typst --font-path ./fonts compile init-files/main.typ --root . ### QQ 群 -* TJ-CSCCG 交流群:`1013806782` +- TJ-CSCCG 交流群:`1013806782` diff --git a/init-files/main.typ b/init-files/main.typ index 4e97612..9d382fa 100644 --- a/init-files/main.typ +++ b/init-files/main.typ @@ -1,4 +1,4 @@ -#import "./tongjithesis.typ": * +#import "../paddling-tongji-thesis/tongjithesis.typ": * #set pagebreak(weak: true) diff --git a/init-files/sections/01_intro.typ b/init-files/sections/01_intro.typ index d662aa9..11a6b70 100644 --- a/init-files/sections/01_intro.typ +++ b/init-files/sections/01_intro.typ @@ -1,4 +1,4 @@ -#import "../../paddling-tongji-thesis/elements.typ": * +#import "../../paddling-tongji-thesis/tongjithesis.typ": * = 基本功能介绍 diff --git a/init-files/sections/02_math.typ b/init-files/sections/02_math.typ index 04cff57..53aba17 100644 --- a/init-files/sections/02_math.typ +++ b/init-files/sections/02_math.typ @@ -1,4 +1,4 @@ -#import "../../paddling-tongji-thesis/elements.typ": * +#import "../../paddling-tongji-thesis/tongjithesis.typ": * = 数学 diff --git a/init-files/sections/03_reference.typ b/init-files/sections/03_reference.typ index 0ce80bb..9388431 100644 --- a/init-files/sections/03_reference.typ +++ b/init-files/sections/03_reference.typ @@ -1,4 +1,4 @@ -#import "../../paddling-tongji-thesis/elements.typ": * +#import "../../paddling-tongji-thesis/tongjithesis.typ": * = 引用 diff --git a/init-files/sections/04_figure.typ b/init-files/sections/04_figure.typ index d227432..ae430cb 100644 --- a/init-files/sections/04_figure.typ +++ b/init-files/sections/04_figure.typ @@ -1,4 +1,4 @@ -#import "../../paddling-tongji-thesis/elements.typ": * +#import "../../paddling-tongji-thesis/tongjithesis.typ": * #let example-image = "../figures/example-image.svg" diff --git a/init-files/sections/05_conclusion.typ b/init-files/sections/05_conclusion.typ index 7695b16..13f77d3 100644 --- a/init-files/sections/05_conclusion.typ +++ b/init-files/sections/05_conclusion.typ @@ -1,4 +1,4 @@ -#import "../../paddling-tongji-thesis/elements.typ": * +#import "../../paddling-tongji-thesis/tongjithesis.typ": * = 总结与未来工作展望 diff --git a/init-files/sections/acknowledgments.typ b/init-files/sections/acknowledgments.typ index 3061ecd..58a6d24 100644 --- a/init-files/sections/acknowledgments.typ +++ b/init-files/sections/acknowledgments.typ @@ -1,4 +1,4 @@ -#import "../../paddling-tongji-thesis/elements.typ": * +#import "../../paddling-tongji-thesis/tongjithesis.typ": * #heading("谢辞", numbering: none) #empty-par() diff --git a/paddling-tongji-thesis/elements.typ b/paddling-tongji-thesis/elements.typ index ff54424..76bc156 100644 --- a/paddling-tongji-thesis/elements.typ +++ b/paddling-tongji-thesis/elements.typ @@ -1,7 +1,4 @@ #import "utils.typ": * -#import "@preview/i-figured:0.2.2" -#import "@preview/tablex:0.0.6": cellx, tablex, gridx, hlinex, vlinex, colspanx, rowspanx -#import "@preview/algo:0.3.3": algo, i, d, comment, code #let draw-binding() = { place("|", dx: -1.6cm, dy: 2.3cm) diff --git a/init-files/tongjithesis.typ b/paddling-tongji-thesis/tongjithesis.typ similarity index 95% rename from init-files/tongjithesis.typ rename to paddling-tongji-thesis/tongjithesis.typ index e5a5ea1..a8b8e1c 100644 --- a/init-files/tongjithesis.typ +++ b/paddling-tongji-thesis/tongjithesis.typ @@ -1,4 +1,8 @@ -#import "../paddling-tongji-thesis/elements.typ": * +#import "@preview/i-figured:0.2.2" +#import "@preview/tablex:0.0.6": cellx, tablex, gridx, hlinex, vlinex, colspanx, rowspanx +#import "@preview/algo:0.3.3": algo, i, d, comment, code + +#import "elements.typ": * #set pagebreak(weak: true) @@ -126,7 +130,7 @@ pagebreak() make-abstract( - title: title-english, abstract: abstract-english, keywords: keywords-english, prompt: ("ABSTRACT", "Keywords: "), is-english: true, + title: title-english, abstract: abstract-english, keywords: keywords-english, prompt: ("ABSTRACT", "Key words: "), is-english: true, ) pagebreak() diff --git a/typst.toml b/typst.toml index a2f02f9..3e887c8 100644 --- a/typst.toml +++ b/typst.toml @@ -1,7 +1,9 @@ [package] name = "paddling-tongji-thesis" +# 修改版本号、准备release时,一定不要忘了同步更新package_release.diff +# Never forget to update package_release.diff when change the version and prepare to release version = "0.1.1" -entrypoint = "paddling-tongji-thesis/elements.typ" +entrypoint = "paddling-tongji-thesis/tongjithesis.typ" authors = ["TJ-CSCCG "] license = "MIT" description = "同济大学本科生毕业设计论文模板 | Tongji University Undergraduate Thesis Template"