fixed the issue where complex numbers with two exponents were noch parsed correctly to tex. Also fixed the issue where such numbers could not be read using the totext function. Relates to the ticket #687.
Added the new method to_tex as described in ticket #687. The helper function formatNumberToTex is derived from the formatNumber function in the LaTeXTable class.