Latex generation added, not tested!
Remains: branches display, split into different files