blob: 60e2811644f069aec6e98bf7c9742b25139aa57a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
This is the file xCJK.txt of the CJK macro package ver. 4.8.0
(22-May-2008).
xCJK.sty
--------
This file provides support for the CJK package with XeLaTeX:
. Use the CJK package to deal with CJK characters, especially for
spaces and punctuation, while the font selection is left to XeLaTeX.
. Specify different default fonts for CJK and other characters,
respectively.
Usage:
\documentclass{...}
...
\usepackage[<options>]{xCJK}
...
\begin{document}
...
\begin{CJK*}{UTF8}{...}
...
\end{CJK*}
...
\end{document}
Available values for <options> are
boldfont simulate bold fonts for CJK characters
italicfont simulate italic fonts for CJK characters
To make `italicfont' work you need XeTeX version 0.997 or newer.
xCJK.sty provides three basic macros for font selection:
\setCJKmainfont[<font features>]{<font name>}
Set a default font for CJK characters.
\setCJKfamilyfont{<family name>}[<font features>]{<font name>}
Declare a CJK family and select a font for it. Switching font families
can be done as usual with \CJKfamily.
\setCJKmonofont[<font features>]{<font name>}
Declare a CJK font to be used in verbatim environments.
Note that \setCJKmainfont takes precedence over \setmainfont (which is
defined in the standard `fontspec' package for XeLaTeX).
For a full description of the parameters <font features> and <font name>
please read the documentation of the `fontspec' package; an example input
file is examples/xCJK.tex .
Remarks:
. To make the xCJK package work the following two commands must be called:
\XeTeXinputencoding "bytes"
\XeTeXdefaultencoding "bytes"
xCJK.sty automatically does this (using the \AtBeginDocument hook) but
other packages might override it.
. <font name> must be in English.
. If you use the `verbatim' package you should call \CJKverbatim to make
the verbatim environment select the CJK font as specified with
\setCJKmonofont automatically (\CJKverbatim redefines \verbatim@font).
---End of xCJK.txt---
|