I'm trying to get the ebgaramond-maths package to work properly in XeLaTeX. Everything seems to work well except for the numbers. The numbers in math mode still show up in the default Computer/Latin Modern typeface.
%!TEX program = xelatex
\documentclass{standalone}
\usepackage{ebgaramond}
\usepackage[cmintegrals,cmbraces]{newtxmath}
\usepackage{ebgaramond-maths}
\usepackage{anyfontsize}
\begin{document}
123 $123 ABC$
\end{document}
This code gives the following output with no warnings. As you can see, the numbers in math mode aren't set in EB Garamond.
If I remove the first line, to compile with pdfLaTeX, the package works fine and the numbers are in EB Garamond.
I think this has something to do with the encoding of the numbers. I have tried the declaring the math symbols manually using this code, but that didn't work in XeLaTeX (though it did work with pdfLaTeX). I also tried using the mathspec package, but that clashed with ebgaramond-maths.
Does anyone know how to get ebgaramond-maths with EB Garamond numbers in math mode using XeLaTeX?
ebgaramond-maths
is NOT designed for use with XeTeX or LuaTeX and such usage is entirely unsupported. That said, it should work if the traditional TeX maths configuration is left alone. That is, provided that letters and so on are taken from the OT1 type1 fonts and not from the Unicode opentype ones. But if it does not, it is not a bug. Also, it is not suitable for arbitrary mathematics. Only a limited subset of maths can reasonably be expected to look passably satisfactory, even with pdfTeX.