2

I'm begginer with lualatex, fontspec and unicode-math packages. I try load differents fonts for text and for math operators. But some math symbols not appears. For example, I try this (just to show differences fonts):

\documentclass{memoir}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{luaotfload,lualatex-math}
\usepackage{fontspec}
 \setmainfont{Niconne-Regular}[
              Path = /home/juanuni/.fonts/ ,
                              ]
\usepackage{unicode-math}
 \setmathfont[range=\mathup/{latin,Latin}]{Diavlo_BOOK_II_37}

\begin{document}
This is a proof $\sin x^2$ $\sum$ $\delta$
\end{document}

To get:

enter image description here

As you can see, the commands \sum and \delta have no output. What am I doing wrong?

2
  • It's probably not necessary to load the lualatex-math and luaotfload packages explicitly.
    – Mico
    Jun 21 '15 at 22:31
  • You are right, is not necessary.
    – juanuni
    Jun 21 '15 at 22:33
3

You have to declare a math font:

\documentclass{memoir}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{unicode-math}

\setmainfont{Zapfino}
\setmathfont{Latin Modern Math}
\setmathfont[range=\mathup/{latin,Latin}]{TeX Gyre Heros}

\begin{document}
This is a proof $\sin x^2$ $\sum$ $\delta$
\end{document}

enter image description here

11
  • Thanks. But how I know math fonts? I have problems with Cambria Math
    – juanuni
    Jun 21 '15 at 22:27
  • It may be a good idea to add the option Scale=MatchLowecase to the \setmathfont instructions.
    – Mico
    Jun 21 '15 at 22:29
  • @juanuni ......... to have equal x-heights across text and math fonts
    – Mico
    Jun 21 '15 at 22:32
  • Thanks. But now I have a problem with Cambria Math math font ...
    – juanuni
    Jun 21 '15 at 22:36
  • 1
    @juanuni If you have a problem with Cambria Math, that's another question.
    – egreg
    Jun 21 '15 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.