Rearrange things for IOI test generation.
Fix multiple input generator.
Ignore TeX logs.
Shunt extensions changes to separate function.