From thu-forge
Forge a Quarto book dissertation (.qmd chapters) into a thuthesis-formatted PDF via XeLaTeX. Trigger when the user asks to compile, build, or render a Quarto-based Tsinghua thesis, or when troubleshooting LaTeX/BibTeX errors in such a project.
npx claudepluginhub syfyufei/thu-forgeThis skill is limited to using the following tools:
`thu-forge` orchestrates the build pipeline that turns a [Quarto](https://quarto.org/) book (`.qmd` chapters) into a PDF typeset with the [thuthesis](https://github.com/tuna/thuthesis) LaTeX class. It handles chapter splitting, heading demotion, citation conversion, image path fixing, and BibTeX integration.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
thu-forge orchestrates the build pipeline that turns a Quarto book (.qmd chapters) into a PDF typeset with the thuthesis LaTeX class. It handles chapter splitting, heading demotion, citation conversion, image path fixing, and BibTeX integration.
This skill is an independent build orchestrator. It does not bundle, modify, or redistribute thuthesis. Users must obtain the upstream thuthesis class from https://github.com/tuna/thuthesis themselves. This project is not affiliated with or endorsed by the thuthesis maintainers (TUNA).
.qmd files → quarto render --to pdf → index.tex
→ split_quarto_tex_v2.py → chap01–09.tex
→ XeLaTeX (×3) + BibTeX → main.pdf
| File | Purpose |
|---|---|
_quarto.yml | Quarto config; must have bibliography and cite-method: natbib |
thuthesis/build.sh | One-click full build (runs entire pipeline) |
thuthesis/recompile.sh | XeLaTeX-only recompilation (3 passes + BibTeX) |
thuthesis/scripts/split_quarto_tex_v2.py | Chapter splitting + heading demotion + cleanup |
thuthesis/scripts/consolidate_bibs.py | Merge multiple .bib files into one |
thuthesis/thusetup.tex | Template config (fonts, macros, preamble fixes) |
thuthesis/main.tex | LaTeX main file (includes chapters, backmatter) |
references.bib | Master bibliography file |
/thu-forge:compile
See commands/compile.md for the full step-by-step execution checklist.
references/chapter-groups.md — How to update CHAPTER_GROUPS when chapter structure changesreferences/pitfalls.md — Known pitfalls with diagnosis and fixes