--- title: "LaTeX Paper Writing" type: source tags: [] date: 2026-04-22 --- ## Source File - [[raw/Agent/usecases/latex-paper-writing.md]] ## Summary(用中文描述) - 核心主题:通过 AI Agent 实现对话式 LaTeX 论文写作与即时编译 - 问题域:本地 LaTeX 环境配置繁琐(TeX Live 体积庞大)、编译错误排查耗时、编辑器与 PDF 预览器切换破坏工作流 - 方法/机制:使用 Prismer Workspace 容器(内置完整 TeX Live + LaTeX 服务器),通过 latex-compiler skill 的 4 个工具让 Agent 替代用户完成 LaTeX 写作、编译、预览全流程 - 结论/价值:用户只需用自然语言描述论文内容,Agent 生成 LaTeX 源码并即时编译预览,无需本地安装 TeX 环境 ## Key Claims(用中文描述) - Agent + Prismer 容器 → 用户无需本地安装 TeX Live 即可完成 LaTeX 论文写作 - latex-compiler skill 提供 4 个工具(latex_compile、latex_preview、latex_templates、latex_get_template),覆盖完整写作流程 - 支持多种模板(article、IEEE、beamer、中文论文)和编译引擎(pdflatex、xelatex、lualatex) - BibTeX/BibLaTeX 文献管理内置支持,用户只需粘贴 .bib 内容 ## Key Quotes > "Setting up a local LaTeX environment is painful — installing TeX Live takes gigabytes, debugging compilation errors is tedious, and switching between your editor and PDF viewer breaks flow." — 问题陈述 > "Compile to PDF instantly with pdflatex, xelatex, or lualatex (no local TeX installation needed)" — 核心价值主张 > "Use xelatex if I need Chinese/CJK support, otherwise default to pdflatex." — 引擎选择策略 ## Key Concepts - [[LaTeX]]:科技论文排版系统,Prismer 提供完整 TeX Live 运行时 - [[BibTeX/BibLaTeX]]:LaTeX 参考文献管理工具,latex-compiler skill 内置支持 - [[Prismer Workspace]]:Docker 容器化工作环境,内置 LaTeX 服务器(端口 8080) - [[LaTeX Compiler Skill]]:4 工具技能集(latex_compile、latex_preview、latex_templates、latex_get_template) ## Key Entities - [[Prismer-AI]]:提供 Prismer Workspace 容器和 latex-compiler skill 的开源项目 - [[latex-compiler]]:Prismer 内置的 4 工具 LaTeX 技能 ## Connections - [[Prismer-AI]] ← provides runtime ← [[LaTeX Paper Writing]] - [[LaTeX Compiler Skill]] ← enables ← [[LaTeX Paper Writing]] ## Contradictions - 暂无冲突内容