all: rewrite of tex build script, add log parser, update makefiles