latex-formatting
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLaTeX Formatting
LaTeX格式处理
Set up and manage LaTeX formatting for academic papers.
为学术论文搭建并管理LaTeX格式。
Input
输入
- — Action:
$0,setup,fixcheck - — Venue name (for
$1) orsetupfile path (for.tex/fix)check
- — 操作类型:
$0(搭建)、setup(修复)、fix(检查)check - — 会议名称(用于
$1操作)或setup文件路径(用于.tex/fix操作)check
Scripts
脚本
Pre-submission format checker
提交前格式检查器
bash
python ~/.claude/skills/latex-formatting/scripts/latex_checker.py paper/main.tex --venue neurips --check-anonChecks: word count, required sections, TODO markers, anonymization, mismatched environments, content stats.
bash
python ~/.claude/skills/latex-formatting/scripts/latex_checker.py paper/main.tex --venue neurips --check-anon检查内容:字数统计、必填章节、TODO标记、匿名化情况、不匹配的环境、内容统计信息。
Validate citations and references
验证引用与参考文献
bash
python ~/.claude/skills/citation-management/scripts/validate_citations.py \
--tex paper/main.tex --bib paper/references.bib --check-figuresbash
python ~/.claude/skills/citation-management/scripts/validate_citations.py \
--tex paper/main.tex --bib paper/references.bib --check-figuresClean LaTeX text (fix special characters)
清理LaTeX文本(修复特殊字符)
bash
python ~/.claude/skills/latex-formatting/scripts/clean_latex.py \
--input paper/main.tex --output paper/main_cleaned.texReplaces special/non-UTF8 characters with LaTeX equivalents, skips math environments.
Key flags: ,
--dry-run--tables-onlybash
python ~/.claude/skills/latex-formatting/scripts/clean_latex.py \
--input paper/main.tex --output paper/main_cleaned.tex将特殊/非UTF8字符替换为LaTeX等效字符,跳过数学环境。关键参数:(试运行)、(仅处理表格)
--dry-run--tables-onlyAuto-fix after checking
检查后自动修复
bash
python ~/.claude/skills/latex-formatting/scripts/latex_checker.py paper/main.tex --venue neurips --fixRuns checks then applies clean_latex.py fixes, writing to .
main_fixed.texbash
python ~/.claude/skills/latex-formatting/scripts/latex_checker.py paper/main.tex --venue neurips --fix先执行检查,再应用clean_latex.py的修复,结果写入。
main_fixed.texReferences
参考资料
- Venue specs, project structure, packages, commands:
~/.claude/skills/latex-formatting/references/venue-templates.md
- 会议规范、项目结构、宏包、命令:
~/.claude/skills/latex-formatting/references/venue-templates.md
Action: setup
setup操作:setup
setupCreate the project directory structure and main.tex for the specified venue. Use the template from .
references/venue-templates.md创建指定会议的项目目录结构与主文件main.tex,使用中的模板。
references/venue-templates.mdAction: fix
fix操作:fix
fixFix common LaTeX issues: unescaped special chars, math mode errors, float placement, overfull/underfull boxes, cross-reference issues.
修复常见LaTeX问题:未转义的特殊字符、数学模式错误、浮动体位置问题、过宽/过窄盒子、交叉引用问题。
Action: check
check操作:check
checkRun for pre-submission validation. Check page count, anonymization, required sections, TODO markers.
latex_checker.py运行进行提交前验证,检查页数、匿名化情况、必填章节、TODO标记。
latex_checker.pyRelated Skills
相关技能
- Upstream: paper-writing-section, table-generation
- Downstream: paper-compilation
- See also: citation-management
- 上游:论文写作章节、表格生成
- 下游:论文编译
- 另见:引用管理