I am writing my thesis, and when I do copy to LaTeX from Mathematica, it changes the equation variables and also it rearranges the structure of the original equation.
How can I override that ??
New information and further reading : http://pages.uoregon.edu/noeckel/computernotes/Mathematica/EquationEditing.html
Its really annoying especially when I have to get the exact same form.
EXAMPLE:
1: Mathematica code:
TeXForm[HoldForm[E^(-I k( (\[Xi]/Subscript[z, 1]+u/Subscript[z, 2]) x+ (\[Eta]/Subscript[z, 1]+v/Subscript[z, 2]) y))]]
2: How it looks in Mathematica:
3 Mathematica Output:
\exp \left(-i
k\left(\left(\frac{\xi
}{z_1}+\frac{u}{z_2}\right)
x+\left(\frac{\eta
}{z_1}+\frac{v}{z_2}\right)
y\right)\right)
4 Copy paste #3 into LaTeX, the result:
Thanks
HoldForm
:TeXForm[HoldForm[1 + x]]
$\endgroup$HoldForm[U[x, y] = Subscript[E, 0]/(4 \[Pi]) E^(I k Subscript[z, 1])/Subscript[z, 1] E^(I k/(2 Subscript[z, 1]) ((\[Xi] - x)^2 + (\[Eta] - y)^2))]
$\endgroup$HoldForm
on the equation I wanted itself gave me rearraged one:U[x, y] = ( Subscript[E, 0] E^(I k Subscript[z, 1]) E^(( I k ((\[Xi] - x)^2 + (\[Eta] - y)^2))/( 2 Subscript[z, 1])))/((4 \[Pi]) Subscript[z, 1])
$\endgroup$