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.

just a quick question about Xelatex and Minion Pro. By default, uppercase letters as well as lowercase greek letters in math mode are italics. Can I get them upright by hand?

So far, I am using:

\usepackage[MnSymbol]{mathspec}
\usepackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont[Mapping=tex-text]{Minion Pro}
\setsansfont[Mapping=tex-text]{Myriad Pro}
\setmathfont(Digits,Latin,Greek){Minion Pro}

maybe I should work with something like:

\setmathsfont[Set=Greek,Uppercase=Italic,Lowercase=Italic]{Minion Pro}

Thanks.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Just break your \setmainfont into two lines, and you should have separate control over Greek and Latin. E.g., to get Latin in italics and upright Greek:

 \setmathfont(Digits,Latin)[Uppercase=Italic,Lowercase=Italic]{Minion Pro}
 \setmathfont(Greek)[Uppercase=Regular,Lowercase=Regular]{Minion Pro}

(Reverse the options if you want upright Latin and italic Greek.)

Or maybe I just didn't understand what you were trying to do.

share|improve this answer
    
perfect. I think I want this : \setmathfont(Digits,Latin,Greek)[Uppercase=Regular,Lowercase=Italic]{Minion Pro}. There is still something unclear. If I define \DeclareMathOperator{\dive}{div} and use it whithin a math mode, the font of "div" is not Minion. Why? –  pluton Nov 9 '10 at 19:03
1  
\DeclareMathOperator uses the mathrm alphabet. So you'd need \setmathrm{Minion Pro} -- see page 5 of the mathspec documentation. –  frabjous Nov 9 '10 at 20:39

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.