Reorganized latextest.py. Primary use is printing out local type DA structure for the four main cases.