This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Typst-based typesetting system that provides professional document templates for academic papers, reports, notes, and presentations. The project migrated from LaTeX to Typst in v1.2.0 and focuses exclusively on Typst templates.
# Compile a single Typst document
typst compile <filename>.typ
# Compile with output path
typst compile <filename>.typ <output>.pdf
# Compile all templates from new structure (use --root for bibliography access)
find . -name "*.typ" -type f | while read file; do
typst compile --root . "$file" "${file%.typ}.pdf"
done
- No build system: Direct Typst compilation
- No testing framework: Manual testing through compilation
- No linting: Ensure code compiles without errors
typesetting/
├── academic/ # Academic and research documents
│ ├── report.typ # Weekly reports and academic reports
│ ├── review.typ # Paper review templates with scoring system
│ └── response.typ # Paper rebuttals (uses bamdone-rebuttal)
├── presentations/ # Presentation materials
│ └── slide.typ # Slides with animations and theorems
├── documents/ # General documents
│ └── note.typ # Simple notes and documentation
├── references.bib # Shared bibliography file
├── docs/ # Documentation (Docsify-based)
└── .github/workflows/ # CI/CD automation
- report.typ: Feature-rich Chinese weekly report template with:
- Custom color functions (redt, bluet, greent, etc.)
- Week planning boxes
- Table and figure management
- Bibliography support
- review.typ: Academic paper review template with:
- Scoring system with customizable score boxes
- Structured review sections (Innovation, Technical Quality, Experimental, Writing)
- Comment boxes for detailed feedback
- Color shorthand functions for highlighting issues
- response.typ: Academic rebuttal template using
@preview/bamdone-rebuttal:0.1.1- Enhanced with bold point formatting for better visual distinction
- slide.typ: Advanced presentation template with:
- Touying framework for animations
- CeTZ and Fletcher diagram support
- Mathematical theorem environments
- Chinese font support
- note.typ: Simple document template using
@preview/basic-document-props:0.1.0
- references.bib: Common bibliography file (in project root for easy access)
@preview/basic-document-props:0.1.0- Document properties package (documents/note.typ, academic/review.typ)@preview/bamdone-rebuttal:0.1.1- Academic rebuttal package (academic/response.typ)@preview/touying:0.6.1- Presentation framework (presentations/slide.typ)@preview/cetz:0.3.2- Drawing package for diagrams (presentations/slide.typ)@preview/fletcher:0.5.5- Flowchart diagrams (presentations/slide.typ)@preview/theorion:0.3.2- Mathematical theorems (presentations/slide.typ)
- All templates support bibliography via
references.bib - Chinese font configuration (commented out by default)
- Consistent styling functions and color shortcuts
- Figure and table caption management