Greetings,
I'm not very expert - so don't quiz me overly - but my understanding is
that setmathrm changes the maths roman font, whereas by default the
maths digits are drawn from the normal maths font. You can change which
font the digits are drawn from with:
\DeclareMathSymbol{0}\mathalpha{operators}{"30}
\DeclareMathSymbol{1}\mathalpha{operators}{"31}
\DeclareMathSymbol{2}\mathalpha{operators}{"32}
\DeclareMathSymbol{3}\mathalpha{operators}{"33}
\DeclareMathSymbol{4}\mathalpha{operators}{"34}
\DeclareMathSymbol{5}\mathalpha{operators}{"35}
\DeclareMathSymbol{6}\mathalpha{operators}{"36}
\DeclareMathSymbol{7}\mathalpha{operators}{"37}
\DeclareMathSymbol{8}\mathalpha{operators}{"38}
\DeclareMathSymbol{9}\mathalpha{operators}{"39}
I've been using this for a year or two to replace Euler digits (which
may have merits, but clearly don't match any text digits).
Hope that helps,
David
On 06/26/11 17:10, Tobias Schoel wrote:
Hi,
that is done by the range key in the \setmathfont-command from the
unicode-math package. (At least, if I have understood the documentation
of unicode-math correctly.)
bye
Toscho
Am 26.06.2011 15:34, schrieb Ernest Adrogué:
Hi there,
I was doing some tests with various math font packages
such as fourier, mathdesign, txfonts, etc., and I realised
that these packages could also be used with other text fonts
other than the fonts they were intended to be used with.
For example, mathdesign uses math symbols (italics and greek
letters) from Charter, which wouldn't look bad with Charis SIL,
given that Charis SIL itself is derived from Charter. The
problem is that if you try to use Charis SIL with
mathdesign/charter, the numbers in math mode are from Charter
and do not match the numbers that are not typeset in math mode,
the result being totally horrible.
So I was wondering if it is possible to change the font only
for numbers in math mode, while leaving everything else
unchanged. The command \setmathrm doesn't seem to do anything.
Cheers,
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
--
David Cottenden
PhD Student
Continence and Skin Technology Group
UCL
Phone: +44 (0)20 7288 3771
Fax: +44 (0)20 7288 3019
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex