--- name: fix-latex-errors-so-your-paper-builds description: "LaTeX error logs are hard to read. Your AI explains each error and suggests the smallest fix that keeps your meaning. Use for: Fix LaTeX errors so your paper builds." --- # Fix LaTeX errors so your paper builds LaTeX error logs are hard to read. Your AI explains each error and suggests the smallest fix that keeps your meaning. ## What you need from the user - The error log from your last build - The lines of your source near each error - Your journal or template rules ## What to give back A list of each build error, what caused it and the exact line change to fix it. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me fix the errors that stop my LaTeX paper from building. Build tool I use (pdflatex, xelatex or lualatex, plus biber or bibtex): [fill in] Error log from the last build: [paste] The lines near each error: [paste] Template or journal rules: [paste or link] 1. Go through the errors in order. The first one often causes the rest. 2. For each, explain the cause in plain words and show the exact change. 3. Flag missing packages, citations or labels separately. 4. If a fix might change the meaning of an equation, table or claim, stop and ask me. 5. If you're not sure what caused an error, say so instead of guessing. Don't rewrite my text or results. I'll make the changes and rebuild it myself. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Keep a copy of your working source before you change anything. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/compile-and-inspect-a-latex-paper-iteratively-550c7e45175c/ Original report: https://github.com/Prismer-AI/Prismer/blob/main/skills/latex-compiler/SKILL.md BotCurrent has not tested this skill. Check the result before you use it.