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

share|improve this question
    
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. –  Tiago Veloso Mar 7 '11 at 22:23

1 Answer 1

up vote 7 down vote accepted

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.

share|improve this answer
    
Like a charm. I wasn't aware that that package could be the problem. –  Tiago Veloso 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 –  Matsaya 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

 
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.