Commit Graph
6 Commits
Author SHA1 Message Date
Zhengshou Lai e6742d4e9e style(template): rewrite default docx template from scratch
- Create clean template with python-docx + lxml
- Normal: Cambria+SimSun, 12pt, firstLine=480, justify
- Title: centered
- Heading 1-5: left-aligned
- docDefaults: sz=24, kinsoku=1
2026-05-19 22:28:09 +08:00
Zhengshou Lai f9066d5bd8 style(template): change font size to 12pt and fix namespace prefix
- Normal style: sz 22→24 (11pt→12pt)
- docDefaults: sz/szCs 22→24
- Fix namespace prefix consistency (ns0→w) in styles.xml
2026-05-19 22:05:23 +08:00
Zhengshou Lai 4fd4477a27 style(template): update default docx with kinsoku, three-line tables and spacing
- Enable kinsoku for Chinese punctuation wrap control
- Set first-line indent to 2 characters (304800 EMU)
- Configure three-line table borders (1.5pt top/bottom, 0.75pt header)
- Add 6pt spacing after tables
- Use Cambria + SimSun font pairing
2026-05-19 21:52:20 +08:00
Zhengshou Lai 11f5635c94 feat(template): themed blockquotes, references, chapter-based numbering for textbook
- Add themed blockquote styles (课堂小实验, 关键洞察, etc.) via quote block
- Add #references() wrapper for bibliography formatting
- Implement chapter-based figure/table numbering (1-1, 2-1, ...)
- Start each chapter on a new page (except first)
- Increase list spacing to match long-form reading rhythm
- Fix first-line indent to apply on all paragraphs
2026-05-08 13:53:31 +08:00
Zhengshou Lai 9eafd7577f style(templates): increase list spacing for readability
Raise list/enum spacing to be ≥ leading line height across default
and manual templates, improving visual separation between items.
2026-05-08 13:53:24 +08:00
Zhengshou Lai 2791a785ff feat: add document conversion templates
Add md-to-pdf and md-to-docx templates for mytoolkit convert command.
Migrated from workspace/templates.
2026-05-06 00:11:37 +08:00