[XeTeX] specifying two fonts

Nathan Sidoli nathan.sidoli at utoronto.ca
Thu Dec 1 15:54:43 CET 2011

There are various ways you can do this.

If I were doing it, I would probably put something like the following in 
the preamble:


And then in the text I would put all Greek text in a {\G } and all 
Chinese text in a {\C }, that way, if you want to change the font later 
on, you can just toggle the fonts in the preamble. This gives you the 
option of changing the main font independently of the Greek font. Also, 
you may want to scale the fonts a bit so they look good together.

On 11/12/01 8:46, Matthew Overland wrote:
> Dear all
> I am trying to learn xelatex after being given a large document that 
> has greek, english and simplified Chinese.  I can get most things 
> working but am stuck on one point.
> I don't know how to get BOTH the greek and mandarin displayed in the 
> document
> When I use the *\setmainfont* command I can only specify one type of 
> font.  The problem is that all of the greek fonts don't contain fonts 
> for the chinese characters, and the chinese fontns don't contain all 
> of the greek fonts (including capitals and diacritic marks).  I can't 
> get both the chinese and greek displayed at the same time.
> The Chinese and Greek is not in blocks, it alternates throughout the 
> document so I would prefer not to have to tag each instance where I 
> have to assign the font for the section.
> Is there a way to specify two types of fonts for the document?  i.e. 
> one for the western (including Greek) character set and one for the 
> CJK character set.  It is possible to do it in libreoffice.  Even 
> better, is it possible to specify a font for a set range of unicode 
> characters?
> This is probably the first of a series of questions.  Thanks in advance.
> Matthew
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>    http://tug.org/mailman/listinfo/xetex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20111201/e7ab6ffd/attachment.html>

More information about the XeTeX mailing list