be sure not to block the build because of latex asking a question to the user (and no, batchmode does not seem to be the right solution)