AGENT SKILL

book_chapter.fix_rendered_pdf

Make sure that the PDF rendered from a Typst file looks good

使用场景文档处理
License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
2026-11-02
Stars
★ 0
Forks
1

01 前言 Front Matter

model
haiku
description
Make sure that the PDF rendered from a Typst file looks good

03 SKILL.md 正文

Goal

  • Make sure that the book chapter from <TYP_FILE> compiles and the PDF looks good

Inputs

  • <TYP_FILE>: Typst file
    • E.g., msml610/book/Lesson01.2-AI_and_Machine_Learning.typ

Workflow

Generate the PDF

  • Create the PDF from the <TYP_FILE>

    > run_typst.py -i <TYP_FILE>
    
  • The generated file is in the same dir as <TYP_FILE>

    • E.g., msml610/book/Lesson01.2-AI_and_Machine_Learning.pdf

Check the Typst Source Code

  • Make sure the Typst file follows the rules in .claude/skills/typst.rules.md and .claude/templates/typst.template.typ

Check the PDF

  • Read the generated PDF <PDF_FILE> and for each page make sure the layout looks good, e.g.,
    • The figures are readable and not too small
    • There is no excessive space around the figure due to poorly wrapping text
  • If there are visual problems, change the Typst file without changing the text and regenerate the PDF (see ## Generate the PDF) until it looks good

Verification

  • [ ] Confirm the Typst file follows .claude/skills/typst.rules.md and .claude/templates/typst.template.typ
  • [ ] Confirm every page's figures are readable and not too small
  • [ ] Confirm there is no excessive space around a figure from poorly wrapped text

04 同仓库更多 Skills