latex-textbook-writerlisted
Install: claude install-skill xjsongphy/skills
# LaTeX Textbook Writer
## Shared narrative rules
Read and follow [the shared narrative and evidence rules](../shared/narrative-and-evidence.md). Apply the direct, reader-facing style when explaining mathematical content; do not add process-oriented or defensive source disclaimers to the textbook.
Professional assistant for writing mathematical textbooks using XeLaTeX with proper formatting, structure, and narrative style.
## Overview
This Skill provides comprehensive guidance for writing mathematics textbooks with:
- Professional box styles (definitions, theorems, examples, remarks)
- Correct color scheme (definitions in green, theorems in orange, examples in blue)
- Academically standard narrative style (explanation before definition, interwoven narrative and boxes)
- English and Chinese template support
## When to Use
Use this Skill when creating or modifying:
- Mathematics textbook chapters
- LaTeX formatting for theorems, definitions, proofs
- Professional styling for academic papers
- Projects requiring Chinese/English mathematical typesetting
## Language Settings (Critical!)
When using `ctex` package for Chinese support, theorem names and figure captions automatically become Chinese. **Always add these overrides for English documents:**
```latex
\usepackage{ctex}
\usepackage{amsmath,amssymb,amsthm}
\renewcommand{\proofname}{Proof} % Force English "Proof"
\renewcommand{\contentsname}{Contents} % Force English "Contents"
\usepackage{caption}
\captions