12

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.

  • 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. – user2478 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} – user2478 Nov 28 '13 at 15:04
12

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

  • 1
    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

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.