{xecjk} is a LaTeX package for typesetting Chinese, Japanese and Korean under the XeTeX engine.

learn more… | top users | synonyms

11
votes
4answers
2k views

Displaying pinyin over Chinese characters, without impacting word spacing

I want to display pinyin (romanized form) over Chinese characters. However, the two methods I know (using stackrel or tabular both change the spacing between characters. This demonstrates the problem: ...
11
votes
1answer
120 views

Detect if a character is Chinese character

(XeLaTeX + XeCJK) I am trying to translate an English document. I need to convert all '.' to '。' if the antecedent character is a Chinese character. I am using xstring to accomplish this object but I ...
9
votes
2answers
616 views

xeCJK messes with punctuation

Neither a question nor really a complain, but I find I cannot use xeCJK in multilingual documents (in the present case French + English + Chinese), simply because it messes with the punctuation in the ...
9
votes
1answer
934 views

Getting started with Chinese in ConTeXt

I am trying to setup a basic document with ConTeXt, but I am having difficulty even getting started. First, I tried the documentation at ConTeXt wiki: Chinese. I tried the sample code on that page: ...
8
votes
1answer
289 views

Old Korean han'gŭl in XeLaTeX?

Does anybody know if it's possible to typeset old han'gŭl (Korean alphabet) in XeLaTeX? I'm referring to these letters: http://en.wikipedia.org/wiki/Old_Hangul It is not possible to type outright ...
7
votes
4answers
421 views

Why doesn't my Chinese character display properly?

I'm trying to produce the character 𡰞, which is in unicode and as far as I'm able to ascertain included in my font HanaMinA. The character displays properly in Firefox as well as when I copy it into ...
7
votes
2answers
183 views

fail to add Chinese punctuation after CJKnumber in chatper title in xeLaTeX

I'm writing my thesis in Chinese with xeLaTeX and I've to format the chapter name and section name. The following command works ok: \usepackage[CJKnumber][xeCJK] ...
6
votes
3answers
312 views

Convert numbered pinyin to pinyin with tone marks

Is there any package which can convert numbered pinyin (e.g. dian4 nao3) to UTF-8 pinyin with tone marks (e.g. diàn​ nǎo)? I found this (http://stackoverflow.com/a/8200388/2421048) Python script, so ...
6
votes
3answers
129 views

Problem with the zhnumber package

I am trying to write about numerals and the use of symbols. As an example I would like to use chinese/japanese symbols to show a multiplicative system. I have come up with the package zhnumber which ...
6
votes
1answer
969 views

Combining Chinese, Japanese and Korean text with xeCJK

When combining Chinese, Japanese and Korean text in a document, is there a way to define individual fonts for the respective characters? Especially for Korean, since few fonts support Cn/Jp AND ...
6
votes
1answer
241 views

Temporarily changing the spacing between Chinese text and numerals

When mixing Chinese text and non-math mode numbers together within a sentence, narrow numbers are given the same amount of space as characters: \documentclass{article} \usepackage{ctexcap} ...
6
votes
1answer
147 views

Allow/force word wrapping at ideographic spaces

I am making a set of flashcards to help me practice my kanji, and the format I want is quite simple: On the front, I'll have the character, and on the back I will have its meanings and readings (with ...
6
votes
1answer
82 views

Strange spacing with ruby (furigana) package

If I use the ruby package to supply furigana for a kanji character, it seems to glue the characters right adjacent to the kanji closely together and preventing line breaks, creating odd and possibly ...
6
votes
1answer
168 views

Spurious dot with xeCJK, TikZ

I have a very strange problem when using TikZ and xeCJK. I managed to extract this MWE from my original sources: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{english} ...
5
votes
2answers
328 views

How to select a font for the main Chinese character and another font for its Furigana?

The objective is to make a list of Japanese vocabularies with Kanji stroke order for the main characters, its furigana (small kana characters placed above the main characters), and its meaning (in ...
5
votes
2answers
300 views

Finding and displaying UTF-8 characters with xesearch

The xesearch package allows one to replace text with other text. E.g.: \documentclass{ctexbook} \usepackage{fontspec} \usepackage{xesearch} \SearchList{list1}{newspaper}{book} \begin{document} ...
5
votes
1answer
124 views

Date and time macros in Chinese

Is there a way to get time and date stamps, or other standard counters, to appear in Chinese? I am using xeCJK. Package babel (with \selectlanguage{french} etc. in context) makes it simple for the ...
5
votes
1answer
102 views

Spacing only works in xeCJK for Chinese and Japanses but not Korean

\documentclass{article} \usepackage{xeCJK} \setCJKmainfont{Batang} \CJKspace \begin{document} 一二三四五 一 二 三 四 五 あいうえお あ い う え お 일이삼사오 일 이 삼 사 오 \end{document} I'm trying to write something ...
5
votes
2answers
369 views

Fix for CJK punctuation kerning in xetex?

When using xelatex with xeCJK to typeset a document in English with Japanese quotations, I get rather unsightly kerning with Japanese punctuation. In general, punctuation is shifted to the left, so ...
5
votes
1answer
174 views

Chinese punctuation problem

I am trying to move a Chinese punctuation mark to the head of a character. I am using the following macro, which works fine. But if I redefine the \CJKpunctsymbol, it will be a messy. Can any one help ...
4
votes
2answers
218 views

Translating titles with ctex

As best as I can understand, there are two ways to load the ctex package: as a document class (i.e. \documentclass{ctexbook} or as a package (i.e. \usepackage{ctex}). As I am using another document ...
4
votes
1answer
440 views

change to xeCJK under TeXLive 2012, since 2011?

Beginning in the late Spring of 2011, I have been using a few lines of code regularly in all my documents, making it possible to produce documents with regular Roman text, IPA, and all (or nearly all) ...
4
votes
1answer
283 views

xeCJK l3-too-old

I started using XeTeX and whenever I use the xeCJK package I get the following error: ! Critical xeCJK error: "l3-too-old" ! ! ! Support package 'expl3' too old. ! ! Please update an up to date ...
4
votes
2answers
4k views

Linebreak and \enquote

Using the \enquote{} command from the csquotes package my quotes seem to be wrapped to the next line a lot of times like this: This is an "example " sentence. Without the extra whitespace. Now ...
4
votes
1answer
599 views

How to write spaces between Korean words with XeCJK?

I'm just trying to get LaTeX output spaces between Korean words. At the moment all it can do is to give long chains of syllables just like in Chinese or in Japanese, ignoring all the spaces I set. ...
4
votes
1answer
131 views

fontspec and xeCJK conflict: tie (\t{}) over Latin character displaced one position

I want to create a tie over ng by typing: \t{ng}: The following minimal example causes the tie over ng to be displaced one position to the right, so that it appears over the g and empty space. The ...
4
votes
2answers
135 views

The package zhnumber without xeCJK

I need to use the function zhdigits from the package zhnumber to typeset a counter the way I want, i.e. convert 235 to 二三五. This package requires the package xeCJK to work properly, but xeCJK messes ...
4
votes
2answers
76 views

Incorrect Chinese punctuation spacing

When typing Chinese using xeCJK, periods and/or closing square brackets are too closely spaced together. How can I get more natural-looking spacings (e.g., tweaking xeCJK settings to match the Word ...
4
votes
1answer
83 views

Spacing issue in math environment with xeCJK package

I didn't notice until today that use \(...\) and $...$ with xeCJK (orctex) will produce different results, see the code: \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{SimSun} ...
4
votes
1answer
344 views

Vertical Chinese text that contains characters in a “CJK fallback family font”

I am having trouble with vertical (i.e. rotated) Chinese text that contains characters in two different fonts. Rare characters requiring the "CJK fallback family font" are not displaying in the ...
4
votes
1answer
213 views

Can xeCJK be used with the font Times?

The following minimal example fed into xelatex: \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{MingLiU} \usepackage{times} \begin{document} Test 汉语 \end{document} typesets the CJK ...
4
votes
1answer
500 views

Zhuyin fuhao tone marks ignoring \setCJKmainfont

My documents usually contain an equal amount of Chinese and English. Here is my preamble, which I found in a manual somewhere: \documentclass{ctexbook} \setmainfont{Minion Pro} ...
4
votes
1answer
151 views

Ideographic “bullet” (for separating entities within proper nouns) in xeCJK

In 20th century Chinese typography, within transliterated proper nouns and between the name of a book and its sections, a sort of centered bullet is sometimes used (see illustration). This symbol is ...
3
votes
1answer
729 views

Typesetting furigana above and below original text

I have followed Japanese Problem using MacTeX 2011 to set up Ruby Furigana with TeX. I'm wondering if it is possible to set up Furigana both above and below the original character?
3
votes
1answer
487 views

What packages are required for “setmainfont” and “setCJKmainfont”?

I've searched for this extensively but couldn't find anything that could help me, but if you know of some previous question that might help, feel free to point me to it. I have a document with ...
3
votes
1answer
338 views

What does this warning “** WARNING ** TrueType post table name index 32768 > 32767” mean?

I'm new to TeX and trying to compile this code: \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{WenQuanYi Zen Hei Mono} \begin{document} 你好,\TeX! \end{document} I get the pdf fine, but ...
3
votes
2answers
228 views

Fontspec/xeCJK AutoFakeBold and copyable Chinese characters in PDF

I'm writing a document in mixed English and Chinese (with the xeCJK package. I want to add some fake bold headlines using the font Kaiti SC. When I do this using the AutoFakeBold option, this makes it ...
3
votes
1answer
92 views

xeCJK messes up typographical quot and — [duplicate]

Using: XeTeX 3.1415926-2.5-0.9999.3 (TexLive 2013) on openSuse 13.1 Setting up a multilingual buddhist glossary I have encountered the problem that closing (German) typographical quotation marks “ ...
2
votes
1answer
193 views

CJK spacing suddenly no longer works

I have been using CJK script in my documents successfully for some time, but today it suddenly stopped working properly. I did update some packages through TeX Live today, and recently I reinstalled a ...
2
votes
2answers
76 views

Too narrow kerning with xeCJK

I'm trying to typeset Japanese using xelatex and the xeCJK package. For some reason, small kana cause odd kerning in the text. In the following example, I get too narrow spacing between two small ...
2
votes
1answer
163 views

xeCJK and paragraph indentation

I am using xelatex and want to use the xeCJK package, but without indenting the first paragraph of a section. I tried the setup directive below, which should do the trick. But it does not. The manual ...
2
votes
1answer
216 views

Problem with XeTeX input and output encoding

As we all known, the TeX engine XeTeX takes UTF-8 as its default input and output encoding format. However, it provides two new primitive control sequences that could define input encoding: ...
2
votes
1answer
56 views

My CJK punctuation sits in a margin

I'm trying to forge a macro to produce nice formatting for pairs of sample Japanese sentences and their translation, but I seem to have run into a problem with indentation. If I have a hard line ...
2
votes
1answer
155 views

Conflict between xeCJK and hyperref in TeXLive 2012

I find that in the presence together of packages hyperref and xeCJK, in either order, raises an Improper alphabetic constant error with an em-dash in commands \section, \subsection, etc. This happens ...
2
votes
0answers
102 views

Overlapping Chinese characters using xeLatex kaiu TrueType Font - Windows

I am quite new to using xeCJK and xelatex in general, so please bear with me. I tried the following code: Code: \documentclass{article} \usepackage{graphicx} % for \rotatebox ...
1
vote
1answer
450 views

Japanese Problem using MacTeX 2011

The XeLaTeX Japanese examples I find on TeX.sx seem to have this issue in common on my system. I'm running MacTeX 2011, fully updated at the time of writing. The following sample %!TEX TS-program = ...
1
vote
2answers
1k views

Getting xeCJK package to work with MikTeX

I am trying to write Chinese in LaTeX with MikTeX 2.9, and at the moment I am using fontspec, something like the below. However, I have heard good things about xeCJK, and I am considering switching to ...
1
vote
0answers
45 views

Missing characters when typesetting Chinese in LaTeX

I posted this question in stack overflow, but didn't get an answer, I'm trying here to see if I have better luck. I'm trying to include some Chinese characters in a LaTeX document. I've tried several ...
1
vote
0answers
25 views

Why does \noindent with CJK text prevent document from compiling?

I had a large linguistics example document with example text from many different languages, which stopped compiling when I transferred it to a new Mac (with all the same software and TeX ...
1
vote
0answers
80 views

Why xeCJK cannot work?

I tried to use LaTeX with the package xeCJK to typeset Chinese chars. But when I was compiling my .tex document, I got a lot of errors. The code and the screenshot of error msg are showed below. ...