Commit Graph
5 Commits
Author SHA1 Message Date
Zhengshou Lai 75bb7dec32 feat(convert): template-driven docx postprocess + pdf table left align
- Move docx post-processing from convert.py to template-specific postprocess.py hooks
- Resolve relative markdown image paths before pandoc for docx and pdf
- Auto-generate centered figure captions (图 1, 图 2...) in docx
- Center tables and apply three-line table borders in docx
- Left-align tables in PDF via template.typ show rule
2026-06-28 11:27:14 +08:00
Zhengshou Lai 322cd31bb2 style(template): enforce no first-line indent for table styles; default PDF indent 2em
- Set first-line-indent: 0 on all TABLE styles in default/review docx templates
  to prevent table cells from inheriting Normal paragraph indentation.
- Set default PDF template body first-line-indent to 2em (all: true).
- Change default PDF bookmark depth from 1 to 2 in CLI and build_pdf.
- Extend docx post-processing to copy Normal style typography from reference-doc,
  format headings/references, and handle BodyText paragraphs.
2026-06-09 14:38:35 +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