When working with complicated expressions I would like to easily export specific expressions to LaTex.
The ideal solution for me is the TeXForm command, but many times when using it I would like to customize the output.
For example TeXForm produces There are several things I would like to change about the about output
- removing \text around the variables
- changing \bar to \overline when needed.
- removing \left and \right
- changing \varepsilon to \epsilon
My question is
Is there a general way that I can parse the output of TeXForm (or any LaTex output method) so that it is format it to my preferences?
\[Epsilon] // TeXForm
gives\epsilon
;\[CurlyEpsilon] // TeXForm
gives\varepsilon
. You get what you inserted. Moreover, what's wrong with\left
and\right
? $\endgroup$\left
and\right
but sometimes I prefer that they are removed as they make very long Tex expressions hard to read. $\endgroup$