# [luatex] Use Math Glyphs from Text Font

C. Comren ccomren at gmail.com
Sun Oct 10 18:24:05 CEST 2010

```Thanks for the pointer. Unfortunately, the mathspec package does not
compile with LuaLaTeX. After looking at mathspec's code, I tried

\newfontface\myfont{MyFont}
\DeclareMathSymbol{A}{\mathalpha}{myfont}{`A}

It does not work either. Is it possible to access a font that was
loaded with fontspec (similar to the above) within DeclareMathSymbol?

On 10/8/10, Diederick C. Niehorster <dcnieho at gmail.com> wrote:
> On Wed, Oct 6, 2010 at 05:27, C. Comren <ccomren at gmail.com> wrote:
>>> Then you can use unicode-math package, check its documentation
>>> especially the "using multiple fonts section".
>>
>> I tried
>>
>> \setmathfont[range=\mathbfsfit/{greek,Greek}]{NameOfTheFont}
>>
>> LuaLaTeX complains that the font does not contain script "Math" and
>> produces a PDF without any math in it.
>
> You might also try using the mathspec package, although its designed
> only for Xe(La)TeX for as far as I know. It does the job of switching
> the latin and greek characters to a specified font, without touching
> operators. I am not sure if it works on luatex at all (actually, the
> fact that Khaled and Will didn't mention it probably means that it
> doesn't), but give it a spin.
>
> Best,
> Dee
>
```