6

I am having problems printing an equation. I have the following definitions:

\documentclass{scrreprt}

\usepackage{mathspec}
\defaultfontfeatures{Mapping=tex-text,BoldFeatures={Weight=2}}

\setmathfont[
    Scale=0.95,
    Extension=.otf,
    UprightFont= *-regular,
    BoldFont=*-bold,
    ItalicFont=*-italic,
    BoldItalicFont=*-bolditalic,
]{texgyrethermes}

\usepackage{unicode-math}

\begin{document}
    \begin{equation} 
        \label{constraint:inference} 
        D \models C \iff V(D) \models \top \Longrightarrow V(C) \models \top 
    \end{equation}
\end{document}

This is the putput that I am getting:

enter image description here

2
  • it's helpful for this kind of question to post a complete minimal example (with \begin{document}...\end{document}) instead of the separate code pieces.
    – Alan Munn
    Mar 7 '11 at 22:16
  • 1
    Added a complete example. Mar 7 '11 at 22:23
7

Remove the \usepackage{unicode-math} command. This package is only for use with specific unicode math fonts (of which there are only about three: Cambria Math, Asana Math and xits). So you should stick with mathspec.

6
  • Like a charm. I wasn't aware that that package could be the problem. Mar 7 '11 at 22:17
  • @Tiago Yes, unless you are using one of those three fonts, you shouldn't use the package at all.
    – Alan Munn
    Mar 7 '11 at 22:19
  • 1
    In fact, unicode-math doesn't really behave well because it hijacks the math font selection even if its \setmathfont command isn't executed at all.
    – Philipp
    Mar 7 '11 at 22:47
  • @Alan, in fact their are also Neo Euler and Stix fonts
    – PHL
    Mar 7 '11 at 23:08
  • @Matsaya Thanks for the info. Is Neo Euler completely ready for use?
    – Alan Munn
    Mar 7 '11 at 23:49

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.