\frac not rendered correctly
Brought to you by:
baudinr
This is an issue, which was previously closed #112, however, I am getting it as well - here is more details. When you try even the simplest formula, e.g.
"\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}" or "\frac{1}{2}"
The enumerator appears before a fraction (not above). Rendered formula attached.
The fix is to enclose the fraction in brackets, e.g.
"\left(\frac{-b\pm\sqrt{b^{2}-4ac}}{2a} \right)" or "\left(\frac{1}{2}\right)"
Now the formula renders correctly but we get those unnecessary brackets. Interestingly, when the fraction appears inside the matrix, it is rendered as it should. The standalone Latex displays the above formulas just fine.
I am running LibreOffice 7.1.3.2, TexMath 0.49, on Ubuntu 18.04
One more thing - this problem appears only when selecting the "Latex" equation type, but not in "Display" or "Inline"
I may have figured it out, the Latex formula requires the \begin ... \end, which were missing above, when added the begin-end, the formula renders correctly!
Hi Jacob, you find yourself the solution. When using the LaTeX option, you need \begin ... \end.
Note that when using \begin{align}... \end{align} (for tables, matrices, etc.) the LaTeX option is automatically set for you.
So this bug can be closed.