Check and normalize paper LaTeX: document class/template sniffing (IEEE etc), balanced environments, unescaped special chars, bibliography presence, and cross-file undefined \cite/\ref. Use when the user asks to check LaTeX / paper format check / pre-compile check / typeset a paper / fix LaTeX errors / normalize tex per template / check for unclosed environments / check paper formatting / normalize LaTeX / fix LaTeX errors. Fails with rc=1 when the input file does not exist. Do NOT use for writing paper content or generating figures (use pub-plotter / article-drafter).