[XeTeX] fontspec & math(s)
Bruno Voisin
bvoisin at mac.com
Thu Nov 18 10:08:20 CET 2004
Le 18 nov. 04, à 09:46, Bruno Voisin a écrit :
> Le 18 nov. 04, à 05:54, Will Robertson a écrit :
>
>> However, I get the wrong symbols when using \{ \}, so I must be
>> messing something up somewhere, and I haven't had time to work out
>> what's going wrong. Any suggestions?
>
> I think your problem is an encoding issue: the math fonts in TeX are
> assumed to have special encodings OML, OMS, OMX and even OT1. [...]
> This may mess up some character declarations, regarding in particular
> \{ and \}, equivalent to \lbrace and \rbrace in math mode, and
> \textbraceleft and \textbraceright in text mode.
I forgot to add that I don't experience your problem:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image 1.pdf
Type: application/pdf
Size: 11291 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20041118/6c919da2/Image1-0001.pdf
-------------- next part --------------
wher the brackets are taken from Lucida NewMath. It's possible you get
the problem for the text-size braces { and } only, got with \{ and \},
and not for the extensible characters above, got from \left\{ and
\tight\} (actually \biggl\{ and \biggr\} here), since I think they are
taken from different fonts.
I just made a quick test, from the input "$\{$ and \{, and also $\}$
and \}". Loading first Lucida fonts in T1 encoding, then Hoefler on top
of it, I get:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image 2.pdf
Type: application/pdf
Size: 7598 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20041118/6c919da2/Image2-0001.pdf
-------------- next part --------------
Loading first CM/AMS fonts with the default settings (hence OT1
encoding), then Hoefler on top of it, I get:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image 3.pdf
Type: application/pdf
Size: 7483 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20041118/6c919da2/Image3-0001.pdf
-------------- next part --------------
It's obvious in both cases the two braces, obtained through $\{$ and
\{, are different, the first one yielding the math font (LMSY or CMSY)
and the second one yielding the text font (Hoefler Text). However in
both cases the final symbol is right. Possibly in your case the problem
is caused by the Euler fonts?
Bruno (off to real-life work now)
More information about the XeTeX
mailing list