Prompt file imported from LARi-UQAC/ResearchTools (
.github/prompts/latex.prompt.md). Copyright stays with the author.
Diagnose and fix the LaTeX problem described or visible in the file open in the IDE.
Procedure:
- If a
.logfile exists inout/, read it first to identify errors with exact line numbers - For each error: cite the problematic line, explain the cause in one sentence, apply the fix directly in the file
- Priority checks:
\resizeboxor\scaleboxwrapping atikzpicturethat uses thebackgroundslibrary → replace withtransform canvasor reduce node dimensions\\inside a TikZ node withtext centeredstyle → change toalign=center\addcontentslineplaced after\lstlistoflistings→ swap order- Missing packages → add to preamble
- After fixing, state whether a two-pass recompilation is needed (required when cross-references change)
Read only the files strictly necessary for the diagnosis. Fix directly — do not ask "would you like me to...". Respond in French.
the file(s) or topic given after the command in the chat message (if none was given, use the file currently open in the editor)
