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] // TeXFormgives\epsilon;\[CurlyEpsilon] // TeXFormgives\varepsilon. You get what you inserted. Moreover, what's wrong with\leftand\right? – corey979 Jan 24 '18 at 18:54\leftand\rightbut sometimes I prefer that they are removed as they make very long Tex expressions hard to read. – AzJ Jan 24 '18 at 19:12