Najmi has previous posted about Jawi support on LaTeX. Well then, what about CJK (Chinese, Japanese, Korean) characters?
(The process may be simpler using XƎLaTeX, but I personally use LaTeX more, so this post won’t touch on XƎLaTeX.)
Short snippetsIf you need only short CJK snippets, use the CJK package. (While you’re at it, you may as well grab cjk-fonts and wadalab for the fonts.) On Debian-based systems, just grab latex-cjk-all and you should be good. Or if you don’t want the whole package (it’s huge), grab whatever you need for latex-cjk-chinese, latex-cjk-japanese or latex-cjk-korean (and whatever relevant font packages).
Here’s a basic example for Chinese:
But if you're saving as UTF-8 then you need CJKutf8.sty (included in CJK package):
You have a few font choices (make sure you get the latex-cjk-chinese-arphic-* files!)
- gbsn (简体宋体, simplified Chinese)
- gkai (简体楷体, simplified Chinese )
- bsmi (繁体细上海宋体, traditional Chinese)
- bkai (繁体标楷体, traditional Chinese)
Japanese and Korean text are typeset much the same way. If you save everything as UTF-8, then it’s just a matter of knowing what fonts to invoke:
The Japanese fonts are from the wadalab packages (latex-cjk-japanese-wadalab-*):
- min (明朝 Mincho)
- goth (ゴシック Gothic)
- maru (丸ゴシック Maru Gothic)
As for Korean, well I’ve only been able to get mj (明朝体 MyongJu) working so far.
Entire Document in ChineseOn the other hand, if your entire document is going to be in Chinese, you might be better off using the ctexart document class (in the ctex package):
There is a caveat, though. You’ll need to copy some Windows Chinese font files to your $localtexmf/fonts/truetype/... directory (don’t forget to run texhash!) to use ctex properly (font name in CJK/ctexart in brackets). These are all for simplified Chinese characters:
- simsun.ttc 宋体 (song, default)
- simfant.ttf 仿宋 (fs)
- simkai.ttf 楷书 (kai)
- simhei.ttf 黑体 (hei)
- simli.ttf 隶书 (li)
- simyou.ttf 幼圆 (you)
In any case, for more help on the ctex package and ctexart.cls, you’d best ask for help at the CTEX forum. (Language there is predominantly Mandarin Chinese.) I’m not aware of similar classes for Japanese nor Korean, though.
Pinyin and RubyYounger children learning Chinese characters (Hanzi/Kanji/Hanja) would often have the pronunciations annotated alongside/above/beneath the characters. For Chinese pinyin pronunciations, you would invoke
To cite Martin Duerst:
Ruby are small characters used for annotations of a text, at the right side for vertical text, and atop for horizontal text, to indicate the reading (pronounciation) of ideographic characters.And you can produce them with the ruby package:
The output of which looks something like this: