safer latex execution (but still console needed)