Add XeTeX suport for TexMaths
Brought to you by:
baudinr
Cambria Math, Asana Math, XITS Math are new mathematics fonts with unicode support, however only for the package unicode-math.
This package is not compatible with LaTeX, requiring the use of the XeTeX engine. Enable use of the XeTeX (or XeLaTeX) in TeXMaths allow new options of fonts and access to using unicode characters!
In the future, is possible enable it?
Not planned, sorry! TexMaths will only supoport Latex.
RB
Would you be willing to explain why xelatex support would be difficult? At the moment, lack of support for xelatex means that I cannot have a consistent font throughout my Impress presentation.
Also, off topic to this issue, but I'm having a difficult time finding the source code to TexMaths. All I can find in the download are files where the source has been embedded in XML, which doesn't seem like the ideal format for editing things. Is there a source repository somewhere?
If I understand well, Xetex provides Unicode support. Certainly, it's a major feature for people who write texts in their own language, but why do you need Unicode support for writing equations ?
To edit TexMaths source code, you simply need to open the LibreOffice macro editor...
Thanks for the reply! Point #2 is especially helpful. (And thanks too for all the work on TexMaths.)
In my presentation, I need to be able to have portions of text with inline math. There seem to be two ways to do this:
Write my text in a Impress text box, then try to add enough space for each equation, make the equations in TeXMaths, and visually align them so they are roughly in the correct place. This is a lot of extra effort, and never leads to a perfect result; or,
Write my entire text with inline equations within $ $, and have TexMaths render in "LaTeX" mode instead of "Display" or "Inline". But then I am stuck only with fonts available to regular old latex; there is no way to match the font in the remainder of my presentation.
In other words, it's not the unicode support I want; it's the ability to include the "fontspec" package, which only works on xelatex and lualatex. With that, I could use any font available to LibreOffice in my text by putting two extra lines in the preamble to load the package and select the font.
https://www.ctan.org/pkg/fontspec?lang=en
OK, I understand your point. Anyway, I write a lot of presentations at work and I use method #1 without much effort. I think it's the best way to use TexMaths in Impress.
I think with a recent version of dvisvgm that supports DVI version 6 (XDV) it should be quite easy to replace "latex“ by "xelatex -no-pdf", at least on linux.
Here is what I changed in TexMaths-0.42.sh:
Unfortunately my dvisvgm is too old and I couldn't find a recent version for my old Ubuntu 12.04 to try it out.
[1] http://tex.stackexchange.com/questions/254864/set-dvi-version-output-in-xelatex