Package Information
- Last Updated
- Minimum Typst Version
- 0.14.0
- Authors
- xialugui
- Categories
- thesis
- Dependencies
- @preview/a2c-nums:0.0.1@preview/cetz:0.3.4@preview/cheq:0.4.0@preview/cuti:0.2.1@preview/cuti:0.4.0@preview/hydra:0.6.2@preview/i-figured:0.1.0@preview/i-figured:0.2.4@preview/numbly:0.1.0@preview/outrageous:0.3.0@preview/pinit:0.1.3@preview/pointless-size:0.1.2@preview/tablex:0.0.8@preview/wordometer:0.1.4@preview/zh-format:0.1.0@preview/zh-kit:0.1.0
Preview
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/universal-tongji-thesis:0.1.02. Initialize from template
Create a new project from this template:
typst init @preview/universal-tongji-thesis:0.1.0Tongji University Graduate Thesis Template
A Typst template for Tongji University thesis.
[!WARNING]
This template is under active development and may contain some formatting issues. It's suitable for users who want to try Typst features.This is a community template and may not be endorsed by the university. Please be prepared to migrate your content to Word or LaTeX at any time.
About
Typst is a document typesetting system developed in Rust. You can write text documents following Typst syntax rules and compile them into PDF documents. Typst aims to achieve LaTeX-level typesetting quality with Markdown-level simplicity and compilation speed.
This template is a simple and easy-to-use Typst template for Tongji University thesis, planned to cover undergraduate, master's, and doctoral theses.
Usage
Local Editing (Recommended)
This method is suitable for most users.
- Install Typst
If you use the Scoop package manager, simply run:
scoop install typst
After installing Typst, run:
typst init @preview/universal-tongji-thesis:0.1.0
Typst will create a folder named universal-tongji-thesis. Navigate to this directory, modify thesis.typ, and run:
typst compile thesis.typ
[!TIP]
This template is under active development with frequent updates. Although it has been uploaded to Typst Universe, you can use Typst local packages to experience the latest version locally before it syncs to Typst Universe:
- Ensure Cargo environment is configured
- Install typship with
cargo install typship- Run
typship install localin the project root to deploy to the local@localnamespace- Import with
#import "@local/universal-tongji-thesis:0.1.0"at the template beginning
For more details, see Typship.
Online Editing
This template has been uploaded to Typst Universe. You can use Typst's official Web App for editing.
After logging into Typst Web App, click Start from template, select universal-tongji-thesis from the popup window, and create your project.
[!NOTE]
Typst Web App renders in the browser locally, so the real-time preview experience is almost identical to local editing.
By default, fonts may not display correctly in Web App because it doesn't provide Chinese typography fonts like
SimSunorTimes New Roman. To solve this, search for these font files:
TimesNewRoman.ttf(includingBold,Italic,Bold-Italicversions)SimSun.ttfSimHei.ttfFangSong.ttfKaiti.ttfUpload these files to the project root directory, or create a
fontsfolder for better organization. Typst Web App will automatically load these fonts.Since fonts need to be downloaded every time you open a project in Typst Web App, and Chinese fonts are large and slow to load, we recommend local editing.
Features / Roadmap
- Templates
- Master's thesis
- Doctoral thesis
- Bachelor's thesis
Known Issues
Typography
Although the font and size settings in this Typst template match the original Word template, there are still visual differences in paragraph layout due to character spacing, line spacing, and paragraph spacing.
References
- The university's requirements for reference formatting differ from the standard
GB/T 7714-2015 numericformat.
Other
Acknowledgments
- Thanks to modern-ecnu-thesis for providing implementation ideas for some features of this template.