I don't know if this is a TexMaths problem, a LibreOffice problem, or a generat tex problem, but it's happening from within TexMath, so I'll start here.
Since upgrading to LibreOffice 6.2 (from 5.something), I haven't been able to use TexMaths. After typing in an equation, I get the below error message when clicking on the LaTeX button. This happens for creating new equations, or existing equations in existing documents.
I have unistalled/reinstalled LibreOffice and MacTex, but this error still persists. If this isn't the right place to post this, let me know where I should go for help with this error.
Thanks.
Error below:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdftex)
\write18 enabled.
entering extended mode
(./tmpfile.tex
! Undefined control sequence.
l.1 \documentclass
[10pt]{article}
! Undefined control sequence.
l.4 \usepackage
{amsmath}
! Undefined control sequence.
l.5 \usepackage
{amssymb}
! Undefined control sequence.
l.6 \usepackage
[usenames]{color}
! Undefined control sequence.
l.18 \pagestyle
{empty}
! Undefined control sequence.
l.19 \begin
{document}
! Undefined control sequence.
l.20 \newsavebox
{\eqbox}
! Undefined control sequence.
l.20 \newsavebox{\eqbox
}
! Undefined control sequence.
l.21 \newlength
{\width}
! Undefined control sequence.
l.21 \newlength{\width
}
! Undefined control sequence.
l.22 \newlength
{\height}
! Undefined control sequence.
l.22 \newlength{\height
}
! Undefined control sequence.
l.23 \newlength
{\depth}
! Undefined control sequence.
l.23 \newlength{\depth
}
! Undefined control sequence.
l.25 \begin
{lrbox}{\eqbox}
! Undefined control sequence.
l.25 \begin{lrbox}{\eqbox
}
[1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )
(see the transcript file for additional information)
Output written on tmpfile.pdf (1 page, 14790 bytes).
Transcript written on tmpfile.log.
Try to compile the ./tmpfile.tex generated from outside the program (you have to locate it before), without closing LO. In the case of further error, post the content of the file.
There doesn't seem to be a tmpfile.txt on my computer. At least a search of "This Mac" in Finder couldn't produce one. Is there a specific directory it should be?
I think the file is generated in /tmp directory (but I don't use mac). I think you have to open a terminal and type in it: open $TMPDIR, but this may contain a mess of files and directories. Moreover, modifying the wrong one can seriosly damage your installation... so be careful!
There are other temp directories (like /tmp), so finding the right one can be frustrating!
Anyway the correct filename is "tmpfile.tex" and not "tmpfile.txt"...
So this turned out to be my error. I remember with previous versions needing to change the path after an upgrade to some version of the mac OS, so I just assumed I still needed to find the path to the tex files and change the settings by hand. It seems newer version of texMaths now has the correct paths. So I accepted the default values for those and everything has been working great.
(I should have posted this back when it started working several weeks ago)
We can close this issue.
Thanks!
My steps to reproduce:
x=\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}, then click XeLaTeX buttonActual results:

I got the follwing message:
And I must close TexMaths Equations before I close LibreOffice BASIC.
Last edit: He Xintong 2019-05-05
Same issue :/
The last issue reported by He Xintong is not the same as the issue reported by Howard Francis on MacOSX.
The last issue is due to a bug in LibreOffice 6.2.3. Please upgrade to LibreOffice 6.2.4 and the bug will disapear. See https://sourceforge.net/p/texmaths/bugs/119/ for an explanation.