Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xeCJK] CJKspace=true 时,添加到 CJK 类的数字之前的空格不显示 #417

Closed
muzimuzhi opened this issue Apr 5, 2019 · 0 comments
Assignees

Comments

@muzimuzhi
Copy link
Contributor

  • 使用 CJKspace=true 保留 CJK 文字间空格,同时
  • 把数字和字母设为 CJK 类别时

汉字-数字间的空格无法保留,其余五种情况(汉字-汉字,数字-汉字,汉字-字母,字母-汉字),空格都得到保留。

例子

\documentclass{article}
\usepackage{xeCJK}

\xeCJKsetup{CJKspace=true}
\xeCJKDeclareCharClass{CJK}{`a, `0}
\setCJKmainfont{Source Han Serif}

\def\test#1{中文#1中 文 #1 中文\par}

\begin{document}
\test{0}
\test{a}
\end{document}

image

版本信息

   xeCJK.sty    2018/04/30 v3.7.1 Typesetting CJK scripts with XeLaTeX
   expl3.sty    2019-02-15 L3 programming layer (loader) 
  xparse.sty    2018-10-17 L3 Experimental document command parser
fontspec.sty    2019/01/25 v2.7a Font selection for XeLaTeX and LuaLaTeX
@qinglee qinglee self-assigned this Apr 6, 2019
@qinglee qinglee added the bug label Apr 6, 2019
@qinglee qinglee closed this as completed in c80b9fb Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants