[XeTeX] Use Type 1 Math Fonts with fontspec

Roland Kuhn rkuhn at e18.physik.tu-muenchen.de
Sat Mar 31 11:53:03 CEST 2007


On 30 Mar 2007, at 20:48, Will Robertson wrote:

> On 29/03/2007, at 17:46 , Jjgod Jiang wrote:
>
>> \usepackage[varg]{txfonts}
>> \usepackage{fontspec}
>>
>> can not change font of the digits
>
> This is because fontspec's maths support was written back before the
> xdvipdfmx driver, and only assumes a very small number of possible
> additional maths fonts. This needs to be re-examined, but
> unfortunately I don't really have any time at the moment. I'll keep
> an eye out for some spare time to investigate the problem.
>
I've had the same problem with a self-written Garamond-math style:  
fontspec installs an \AtBeginDocument handler which sets the  
\mathcodes, so to override the txfonts style needs to do the same and  
be loaded _after_ fontspec.

Ciao,
                     Roland

--
TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching
Telefon 089/289-12575; Telefax 089/289-12570
--
CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482
--
Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.  - Benjamin Franklin
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M 
+ !V Y+
PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
------END GEEK CODE BLOCK------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4324 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070331/a69fc472/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://tug.org/pipermail/xetex/attachments/20070331/a69fc472/attachment-0001.bin 


More information about the XeTeX mailing list