When converting an equation made with TexMaths to "Curve" (using right-click -> Convert), we obtain an SVG image, and it is thus possible to change the color of the equation to any color taken from the libreoffice menu. But the equation is not editable any more with the TexMaths functions...
Yet I noticed that opening the "Alt text" properties (with right-click -> Alt text) before conversion yields two fields : "Text" (which contains the string "Texmaths") and "Alt text" (which contains the texmaths options and the latex expression). Copying this two fields, proceeding to conversion to curve, and resetting these attributes to the values before conversion yields an interesting object :
An equation that is colorizable, and editable from the TexMaths menu (but editing it will set it back to black).
It could be an interesting feature and I think it is quite simple to implement it : Provide an option that will automatically convert to curve while preserving these 'Alt text' attributes after equation creation. So that it is colorizable and editable.
Hi, sorry for the long delay in answering.
You're right the feature you request is not complicated to implement. In fact, it was how TexMaths worked until version 0.52.1.
Indeed, I removed the Convert To Curve operation because it led to several bugs with some graphics LaTeX packages like tikz (example: https://sourceforge.net/p/texmaths/bugs/152/). These packages are often used by school teachers.
Maybe I could provide an option in the TexMaths Configuration dialog with some warning about the risk of problems with tikz and friends...
Last edit: Roland Baudin 2025-01-15
This should be great !
Something else that woud be great, but I don't know if it would be easy to implement :
Make the equations (once converted to curve) retain their color (chosen from the libreoffice properties panel) after the latex code is modified (from the TexMaths Equations dialog).