# Tag Info

1

It's apparently the ISO 639-1 code that is used. For Khmer the two-letter code is "km" (official source: Language codes - ISO 639).

2

As I explained in the comment, gb4e changes the category codes of character ^ and _, which makes CJK fail to decode Japanese characters. As is suggested in the gb4e doc, you can use \noautomath where you want to disable the special effects of _ and ^. Here is the solution. %!TeX encoding = UTF-8 %!TeX program = pdflatex \documentclass{article} ...

2

Punctuation spacing style is configurable. And there are 6 predefined styles in xeCJK: quanjiao, banjiao, kaiming, hangmobanjiao, CCT and plain. What you need is the plain style, which does not change the original width of punctuations. If you can read Chinese, you should read the package document of xeCJK first. \documentclass[12pt,a4paper]{article} ...

1


3

It is a known bug of CJKutf8 package. I reported the issue to Werner Lemberg months ago and the problem has been fixed: Git commit of LaTeX-CJK. You can download the develop version of CJKutf8.sty from the git host before the new release of CJK bundle. Or you can use this patch code after \usepackage{CJKutf8}: \makeatletter \endlinechar\m@ne ...

6

As the documentation for pinyin (texdoc pinyin) says use \Long and \LONG instead of \long and \Long (which you would expect): \long is a very important internal TeX command. Many packages would fail if we redefined \long. Thus you need to use \Long here.

Top 50 recent answers are included