I am looking for an automated way of presenting my Mathematica results in latex. My workflow at the moment is the following
- I use
TeXForm[]Mathematica function to generate a latex code from my expression - I copy the output to a latex document to
dmathenvironment frombreqnpackage, so I don't have to care about line breaking when expressions are lengthy.
Unfortunately, the method above doesn't work when fractions generated by Mathematica are too long (namely dmath doesn't have a built-in way to break \frac{}{}).
How could I deal with it?
The only way to break fractions I know, is \splitfrac but one has to put it by hand, which can be cumbersome for lengthy expressions.
I also tried to force Mathematica to generate latex code that uses a division symbol / instead of \frac{}{}, but I didn't manage to get a neatly working solution (with this style of output dmath would be sufficient).
What are the other possible solutions? Could you provide both Mathematica and latex snippets? What is your general workflow when presenting Mathematica results in latex?
l.70 ...} \left(\sigma p_{0}^{4}+1\right)\right)} +\frac{i \delta m \left(1... I treat
x^1^2' essentially likex^1{}^2'.l.70 ...} \left(\sigma p_{0}^{4}+1\right)\right)}
I treat
– Paweł Korzeb Feb 25 '24 at 18:55x^1^2' essentially likex^1{}^2'.