Universe

Create project in app

GitLab 仓库 GitHub stars

点击此处注册 typst.app 并创建你的论文工程

当前还未完全符合学位论文格式要求,欢迎同学/校友们贡献代码/反馈问题(GitLab issue/邮件)!模板交流 QQ 群:797942860

Q:我不会 LaTeX,可以用这个模板写论文吗?

A:完全可以!Typst 是一个比 LaTeX 更简单的排版语言,同时安装更加方便,编译更加快速!

使用方法

typst.app

经过近一月紧张的迭代重构,本模板已经发布在typst.universe上,点击此处直接创建你的论文工程,并直接开始编写你的论文!

Windows 用户

  1. 下载本仓库,或者使用 git clone https://gitlab.com/sysu-gitlab/thesis-template/better-thesis 命令克隆本仓库。
  2. 右键 install_typst.ps1 文件,选择“用 Powershell 运行”,等待 Typst 安装完成。
  3. 根据 Typst 文档,参考 项目结构 中的说明,按照你的需要修改论文的各个部分。
  4. 双击运行 compile.bat,即可生成 thesis.pdf 文件。

Linux/macOS 用户

  1. 下载本仓库,或者使用 git clone https://gitlab.com/sysu-gitlab/thesis-template/better-thesis 命令克隆本仓库。
  2. 使用命令行安装 Rust 工具链以及 Typst:
# 安装 Rust 环境并激活,之前安装过则不需要执行下面这两行
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env

# 安装 Typst CLI
cargo install typst-cli

# 访问缓慢的话,执行以下命令设置清华镜像源,并从镜像站安装
cat << EOF > $HOME/.cargo/config
[source.crates-io]
replace-with = "tuna"

[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
EOF
cargo install typst-cli
  1. 根据 Typst 文档,参考 项目结构 中的说明,按照你的需要修改论文的各个部分。
  2. 执行 make 命令,即可生成 thesis.pdf 文件。

项目结构

详见 template\thesis.typ