I am currently using a combination of mathpazo and mathspec for my maths typesetting. To be specific, my preamble contains the following:
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{mathpazo}
\usepackage{mathtools}
\usepackage{mathspec}
\usepackage{xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Numbers=OldStyle]{Palatino Linotype}
\setsansfont{Optima}
\setmonofont{Consolas}
\setmathsf{Optima}
\setmathfont(Greek){Palatino Linotype}
\exchangeforms{phi}
However, I would like the option of using, say, the AMS blackboard bold fonts for mathbb, or the ones provided by STIX (or any other Unicode maths font) instead of the ones provided by mathpazo. So far nothing I've tried with \setmathbb has worked.
I have a similar problem with \setmathcal, and I notice that if I use calrsfs instead of mathrsfs there is no effect whatsoever.
\setmathfont[range={\mathcal,\mathbfcal}]{Neo Euler}The font can be downloaded at https://github.com/khaledhosny/euler-otf; then\mathscrwill give the rsfs font,\mathcalthe Euler Calligraphic. What's the problem with brackets? – egreg Jun 27 '11 at 20:30\vDash.\not\inis entirely broken, requiring the use of\notininstead. The command you suggested isn't what I meant — I want the default\mathcalfont, not the Euler font. Thanks for the link, however. – Zhen Lin Jun 27 '11 at 21:21\mathbb, and mathspec for the rest? – Zhen Lin Jul 18 '11 at 04:29Internal error: bad native font flag in `map_char_to_glyph'. The same error appears here. Is there any better workaround? Thank you. – Fang Hung-chien Nov 29 '14 at 13:48\hat{\mathbb{Z}}– egreg Nov 29 '14 at 13:56\mathbb{Z}as\bbZ, so I usually use\hat\bbZrather than\hat{\bbZ}by omitting the brackets. I just found this. It maybe helpful for others who have the same problem as mine. Thank you! – Fang Hung-chien Nov 29 '14 at 14:17\hat{\bbZ}anyway. – egreg Nov 29 '14 at 14:21range={\mathcal,\mathbfcal}was set (to get a minimal example, I only copied this line). But I load a font without setting the range. In the former case, both $\hat\bbZ$ and $\hat{\mathbb{Z}}$ work. But in my situation, neither of them works. So I think maybe I need to set the range manually so as to skip some range. – Fang Hung-chien Nov 29 '14 at 15:01