whatisgithub

What is sjtuthesis?

sjtug/sjtuthesis — explained in plain English

Analysis updated 2026-06-26

3,772TeXAudience · researcherComplexity · 2/5LicenseSetup · moderate

In one sentence

A ready-to-use LaTeX template for writing bachelor's, master's, and doctoral degree theses at Shanghai Jiao Tong University. It handles all SJTU formatting requirements so students can focus on writing their content.

Mindmap

mindmap
  root((sjtuthesis))
    What it does
      SJTU thesis formatting
      LaTeX template
      Chinese language support
    Tech stack
      LaTeX XeLaTeX
      TeX distribution
      Overleaf TeXPage
    Use cases
      Bachelor thesis
      Master thesis
      Doctoral thesis
    Audience
      SJTU students
      Academic writers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Write a bachelor's, master's, or doctoral thesis at SJTU using a pre-built LaTeX template that meets all university formatting requirements.

USE CASE 2

Edit and compile the thesis online via Overleaf or TeXPage without installing any software locally.

USE CASE 3

Use the built-in examples for math formulas, tables, algorithms, and references as a starting point for your own chapters.

USE CASE 4

Build and manage the thesis PDF locally on Linux, macOS, or Windows using the provided Makefile or batch script.

What is it built with?

LaTeXXeLaTeXTeX

How does it compare?

sjtug/sjtuthesisguanyingc/latex_paper_writing_tipsctex-org/lshort-zh-cn
Stars3,7723,7493,671
LanguageTeXTeXTeX
Setup difficultymoderateeasymoderate
Complexity2/51/52/5
Audienceresearcherresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires installing a recent TeX distribution with XeLaTeX support, online editing via Overleaf is the easiest path.

Dual-licensed under LPPL and Apache 2.0, use, modify, and distribute freely including in academic and commercial work.

So what is it?

SJTUThesis is a LaTeX template for writing degree theses at Shanghai Jiao Tong University, one of China's leading research universities. LaTeX is a document preparation system used widely in academia, particularly in technical and scientific fields, that produces precisely formatted PDFs from text-based source files. This template handles the specific formatting requirements that SJTU sets for its bachelor's, master's, and doctoral theses, so students do not have to build the layout from scratch. The template includes example code showing how to format the things that come up most often in academic writing: mathematical formulas, tables, algorithms, and bibliographic references. Students can either use those examples as a starting point or write their own content directly in the same structure. The underlying document class package, called SJTUTeX, has been accepted into CTAN, the central archive for LaTeX packages, which means it can be installed through standard TeX distribution update tools. To use the template, you install a recent TeX distribution, clone or download the repository, and compile the main file using XeLaTeX (the recommended engine for Chinese-language documents). On Linux and macOS this is done through a provided Makefile with commands to build, clean, and count words. On Windows a batch script handles the same tasks. For people who prefer to work online, ready-to-use versions are available on both Overleaf and TeXPage, where you can edit and compile without installing anything locally. The project is maintained by a community of students and is hosted under the SJTUG (Shanghai Jiao Tong University Linux User Group) organization. Questions and feedback are handled through the GitHub Discussions page, and the code is dual-licensed under the LaTeX Project Public License and the Apache 2.0 license.

Copy-paste prompts

Prompt 1
I am an SJTU student starting my master's thesis with sjtuthesis. Show me the folder structure I should use and how to compile the PDF using XeLaTeX on Ubuntu.
Prompt 2
How do I add a new chapter to sjtuthesis and include a numbered theorem, a table, and a bibliography reference in it?
Prompt 3
How do I set up sjtuthesis on Overleaf so I can edit and compile my thesis entirely in the browser?
Prompt 4
What is XeLaTeX and why does sjtuthesis use it instead of regular LaTeX for Chinese-language documents?
Prompt 5
How do I count the words in my sjtuthesis document using the Makefile command provided in the template?

Frequently asked questions

What is sjtuthesis?

A ready-to-use LaTeX template for writing bachelor's, master's, and doctoral degree theses at Shanghai Jiao Tong University. It handles all SJTU formatting requirements so students can focus on writing their content.

What language is sjtuthesis written in?

Mainly TeX. The stack also includes LaTeX, XeLaTeX, TeX.

What license does sjtuthesis use?

Dual-licensed under LPPL and Apache 2.0, use, modify, and distribute freely including in academic and commercial work.

How hard is sjtuthesis to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is sjtuthesis for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.