Updated LaTeX Generator, no longer uses hex codes