Latex for AI Agents: Dockerized TeX Compilation & ML Workflows