fixing up the tex output on the new algorithm
output tex works!

all I have to do now is a little bit of art and decide how to format
the splitting tree and the resonance pattern on the same PDF document
forgot that will make it crash