source code for LaTeX and Mathematica