[XeTeX] simple font installation question
Andrew Moschou
andmos at gmail.com
Mon Apr 21 10:42:36 CEST 2008
Dan,
XeLaTeX must be told which fonts to use, because Chinese characters do
not exist in Computer Modern or Latin Modern. To do this, use the
fontspec package.
I use FangZheng KaiTi (Simplified) here, which is not in Big5 but that
doesn't matter for this example, but you can use another font. The PDF
is attached.
\documentclass{book}
\usepackage{fontspec}
\setmainfont{FZKai-Z03S}
\begin{document}
Chinese 1 2 3 \\
中文 一二三 \\
end
\end{document}
I recommend you read the fontspec documentation to understand how to
set fonts in XeLaTeX.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c.pdf
Type: application/pdf
Size: 4412 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080421/bb9aa31e/attachment.pdf
More information about the XeTeX
mailing list