Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to typeset my text and math latin/greek in Georgia, and digits (math mode) in Neo Euler.

I am using XeLaTeX with unicode-math. MWE below loses ldots, also the star and minus operators, and instead of {,} I get Euler's f and g. Also, no mathbf. Any pointers?

\documentclass{article}
\usepackage{fontspec}
\usepackage[vargreek-shape=unicode]{unicode-math}

\setmainfont{Georgia}
\setmathfont[range=\mathit/{latin,Latin,greek,Greek}]{Georgia-Italic}
\setmathfont[range=\mathup/{num}, bold-style=TeX]{Neo Euler}

\begin{document}    
    Answer: $(1+00)^*=\{1, \mathbf{00}, 001, 100, 10000, \ldots \}$\\
    and $b^2= 22 \times 22$, whereas $\alpha-\epsilon=90^\circ$.
\end{document}

Example results in loss of symbols

MikTeX 2.9, fontspec 2013/02/25 v2.3, unicode-math 2013/05/04 v0.7e.

share|improve this question
    
Additional to Enrico's answer you should be aware of the fact that Neo Euler isn't really complete, a lot of symbols are missing. –  Herbert Nov 28 '13 at 14:20
    
I see... so how does one keep CM for symbols? –  Alexander Pavlov Nov 28 '13 at 14:38
1  
use \setmathfont{latinmodern-math.otf} –  Herbert Nov 28 '13 at 15:04

1 Answer 1

up vote 9 down vote accepted

You're not defining a main math font.

\documentclass{article}
\usepackage{fontspec}
\usepackage[vargreek-shape=unicode]{unicode-math}

\setmainfont{Georgia}
\setmathfont{Neo Euler}
\setmathfont[range=\mathit/{latin,Latin,greek,Greek}]{Georgia-Italic}

\begin{document}    
Answer: $(1+00)^*=\{1, \mathbf{00}, 001, 100, 10000, \ldots \}$\\
and $b^2= 22 \times 22$, whereas $\alpha-\epsilon=90^\circ$.
\end{document}

enter image description here

share|improve this answer
    
Great! I really need to force myself to really understand how fontspec/unicode-math works, it's always like groping in the dark, using snippets from here and there. –  Alexander Pavlov Nov 28 '13 at 14:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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