作者yongtw123 (六円)
看板LaTeX
标题Re: [问题] MiKTeX 2.9 + xeCJK 转pdf失败
时间Mon Dec 3 12:46:26 2012
必须要在前面加一行
\xeCJKsetup{CJKglue=\hspace{0pt plus .08 \baselineskip }}
要不然一行只能有一个中文字
两个字以上就会跳出错误
MikTeX的xeCJK似乎不是最新版
所以这个问题没有修正
来源:
http://tex.stackexchange.com/q/84010/22842
※ 引述《yongtw123 (六円)》之铭言:
: 作业环境是Win7 64-bit
: 我现在使用Texmaker开UTF-8编辑
: MikTeX是最新版的2.9
: 已经用Package Manager安装XeCJK和fontspec
: 以下是测试tex文件
: =============================
: \documentclass{article}
: \usepackage{fontspec}
: \usepackage{xeCJK}
: \setmainfont{Times New Roman}
: \setCJKmainfont{kaiu.ttf}
: \begin{document}
: 测试
: \end{document}
: =============================
: 利用XeLatex build会跳出错误
: ! Missing number, treated as zero.<to be read again>\scan_stop: 测试
: ! Illegal unit of measure (pt inserted).<to be read again>\scan_stop: 测试
: 该段详细错误讯息如下
: =============================
: ! Missing number, treated as zero.
: <to be read again>
: \scan_stop:
: l.16 测试
: A number should have been here; I inserted `0'.
: (If you can't figure out why I needed to see a number,
: look up `weird error' in the index to The TeXbook.)
: ! Illegal unit of measure (pt inserted).
: <to be read again>
: \scan_stop:
: l.16 测试
: Dimensions can be in units of em, ex, in, pt, pc,
: cm, mm, dd, cc, bp, or sp; but yours is a new one!
: I'll assume that you meant to say pt, for printer's points.
: To recover gracefully from this error, it's best to
: delete the erroneous units; e.g., type `2' to delete
: two letters. (See Chapter 27 of The TeXbook.)
: =============================
: 我实在不懂它要一个数字是什麽意思
: 恳请高见!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.248.2.110