Merge pull request #1952 from hacman/latex

fix two aspects of latex printing: absolute values and imaginary unit