[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
7.19 unicode
Import this package at the beginning of the file to instruct
LaTeX
to accept unicode
(UTF-8) standardized international
characters. You will also need to set up LaTeX
support for
unicode
by unpacking in your local LaTeX
source directory
(e.g. /usr/local/share/texmf/tex/latex
) the file
and then running the command
texhash
To use Cyrillic fonts, you will need to change the font encoding:
import unicode; texpreamble("\usepackage{mathtext}\usepackage[russian]{babel}"); defaultpen(font("T2A","cmr"));
Support for Chinese, Japanese, and Korean fonts is provided by the CJK package:
The following commands enable the CJK song family (within a label, you
can also temporarily switch to another family, say kai, by prepending
"\CJKfamily{kai}"
to the label string):
texpreamble("\usepackage{CJK} \AtBeginDocument{\begin{CJK*}{GBK}{song}} \AtEndDocument{\clearpage\end{CJK*}}");