Files
awesome-openclaw-usecases/usecases/latex-paper-writing.md
willamhou d823dafb4d feat: add arXiv Paper Reader and LaTeX Paper Writing use cases
Two academic research use cases powered by Prismer's builtin OpenClaw skills:

- arxiv-reader: conversational arXiv paper reading (fetch, browse sections, compare abstracts)
- latex-compiler: conversational LaTeX writing with instant PDF compilation (no local TeX needed)

Both run inside a self-hosted Docker container with zero local setup.
2026-03-05 11:46:42 +08:00

2.0 KiB

LaTeX Paper Writing

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. You want to write and compile LaTeX papers conversationally without any local setup.

This workflow turns your agent into a LaTeX writing assistant with instant compilation:

  • Write LaTeX collaboratively with the agent — describe what you want and it generates the source
  • Compile to PDF instantly with pdflatex, xelatex, or lualatex (no local TeX installation needed)
  • Preview PDFs inline without switching to another app
  • Use starter templates (article, IEEE, beamer, Chinese article) to skip boilerplate
  • Bibliography support with BibTeX/BibLaTeX — just paste your .bib content

Skills you Need

  • latex-compiler skill (4 tools: latex_compile, latex_preview, latex_templates, latex_get_template)
  • Prismer workspace container (runs the LaTeX server on port 8080 with full TeX Live)

How to Set it Up

  1. Deploy Prismer with Docker (the LaTeX server with full TeX Live starts automatically):
docker compose -f docker/docker-compose.dev.yml up
  1. The latex-compiler skill is builtin — no installation needed. Prompt OpenClaw:
Help me write a research paper in LaTeX. Here's my workflow:

1. Start from the IEEE template (or article/beamer depending on what I need)
2. When I describe a section, generate the LaTeX source for it
3. After each major edit, compile and preview the PDF so I can check formatting
4. If there are compilation errors, read the log and fix them automatically
5. When I provide BibTeX entries, add them to the bibliography and recompile

Use xelatex if I need Chinese/CJK support, otherwise default to pdflatex.
Always run 2 passes for cross-references.
  1. Try it: "Start a new IEEE paper titled 'A Survey of LLM Agents'. Give me the template with abstract and introduction sections filled in, then compile it."