I am having some trouble with TeXForm output. Basically, I have many expressions that have an overall fractional factor, like 1/(16 Pi^2)
, in front. However, whenever I put the expression into TeXForm
, it puts the entire expression in the form \frac{numerator}{16 Pi^2}
. I was wondering if there is any way to force the overall factor to stay in front, without making one giant fraction.
A small example:
1/Pi Total[x^Range[10]]
TeXForm[%]
\frac{x^{10}+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x}{\pi }
TexForm
- the default output shows the same behavior of putting everything onto a single fraction $\endgroup$