I have just started using Minion Pro and mathspec
for my work and now I have the following in my preamble:
\usepackage[MnSymbol]{mathspec}
\usepackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont[Numbers=OldStyle]{Minion Pro}
\setallsansfonts[Numbers={OldStyle,Proportional},Scale=MatchLowercase]{Myriad Pro}
\setallmonofonts[Numbers=OldStyle,Scale=MatchLowercase]{Ubuntu Mono}
\setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Minion Pro}
\setmathsfont(Greek)[Scale=MatchLowercase]{Minion Pro}
\setmathrm{Minion Pro}
\exchangeforms{phi}
Now I have a number of questions:
-
What fonts can you use for
mathbb
,mathcal
,mathfrak
, … I mean I don't even know what I have to choose from here. -
I want Myriad Pro Bold whenever I have either math or text bold. How can I do that?
-
I have been playing around with the
mathspec
commands but often I get the "too many fonts" error. How do I keep track of how many fonts I have defined? -
Also my mono font does not work. In other words
mathtt
is justmathrm
in my text.
Best Answer
Using
unicode-math
:(N.B.
unicode-math
loadsfontspec
,xltxtra
, andxunicode
)mathbb
,mathscr
, &c. all have sensible defaults with this. If you want, say, serifedmathbb
, you could add\setmathfont[range=\mathbb/{Latin}->\mathup,Scale=MatchUppercase]{Hoefler Text Engraved}
. The/{Latin}
part applies it only to uppercase latin letters.BoldFont
andBoldFeatures
withfontspec
. Forunicode-math
, I just used\let
commands, although I know there's probably a more elegant way to do this.MnSymbol
frees up a lot of math alphabets, andunicode-math
increases the limit.EDIT: To use Minion for even more symbols, you could replace the
\mathup
line with: