AGENT SKILL
text.convert_to_latex
Convert formulas in text to their Latex equivalent
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- model
- haiku
- description
- Convert formulas in text to their Latex equivalent
03 SKILL.md 正文
Goal
- Convert formulas to Latex leaving the structure of the text exactly the same
- Use the rules and conventions in
.claude/skills/latex.rules.md
Workflow
Convert Mathematical Formulas
- Convert mathematical formulas to Latex without changing their meaning
and formatting so that they are easily readable
-
Bad (uses Unicode symbols instead of LaTeX)
P(M | D) ∝ P(D | M) P(M) -
Good (uses LaTeX macros for a readable formula)
$$ \Pr(M | D) \propto \Pr(D | M)\, \Pr(M) $$ -
Bad (plain text notation, not LaTeX)
a* = argmax_a E_{M~P(M|D)}[Goal | do(a), M] -
Good (LaTeX formula)
$$ a^* = \arg\max_a \EE_{M | \Pr(M | D)} \left[ \text{Goal} | do(a), M \right] $$
-
Convert Symbols to Latex
- Convert symbols into Latex ones, together with variables if needed:
- Bad (Unicode arrow instead of LaTeX)
X → Y - Good (LaTeX symbol)
$X \to U$
- Bad (Unicode arrow instead of LaTeX)
- If there are expressions then leave them unchanged
- Bad
"If battery low" → seek charging station - Bad
"If battery low" $\to$ seek charging station
- Bad
Lint the File
- After the conversion run the command:
> lint_text.py -i <FILE>
Verification
- [ ] Confirm all formulas render correctly in LaTeX
- [ ] Confirm non-formula expressions remain unchanged
- [ ] Confirm
lint_text.py -i <FILE>completes without errors
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
★ 0
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
★ 0
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
★ 0
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
★ 0
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
★ 0
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage
★ 0