All ideasMore in Work

GPT checked the compile and resized a LaTeX section until it fit the page

A LaTeX user's copied table code did not fit his page size at all. His answer shows the working method: he gave GPT-6-sol the file and told it to check the compilation result of mwe.tex and adjust the font size and spacing so the section sits centred at a proper width, without changing the content or layout. The answer posts the adjusted code that came back.

How it works

  1. He gives the agent his mwe.tex file
  2. The agent checks the compilation result
  3. It adjusts font size and spacing so the section centres at a proper width
  4. He posts the returned code as the answer

Why it’s worth knowing

The loop is the point: the agent compiles, looks at the result, and tunes measurements against the real output instead of guessing numbers.

Where it’s from

Summarized from a public post on tex.stackexchange.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.