I have a latex output generated from Mathematica, in which it inderts $..$ inside an equation. But Latex does not like this. For example it generates
\left(\text{$\#$1}^3+\text{a2} \text{$\#$1}^2+\text{a1} etc..... and so when I copy this to a latex file and add \begin{align} .... \end{align} around the above, Latex complains about those $$ signs inside. Is there a way to have $$ inside equations?