We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用 XeLaTeX 编译:
\documentclass[fontset=fandol]{ctexbook} \ctexset{ chapter = { break = {}, beforeskip = 10pt, afterskip = 10pt, } } \begin{document} \chapter{} \begingroup \ctexset{chapter/numberformat = \zihao{0}} \chapter{} \endgroup \begingroup \ctexset{chapter/numberformat = \zihao{7}} \chapter{} \endgroup \ctexset{chapter/number = \arabic{chapter}} \chapter{} \begingroup \ctexset{chapter/numberformat = \zihao{0}} \chapter{} \endgroup \begingroup \ctexset{chapter/numberformat = \zihao{7}} \chapter{} \endgroup \end{document}
看问题应该还是来自 xeCJK 对空格的处理:
xeCJK
\huge\bfseries\centering \begin{tabular}{ll} 第\textit{\zihao{0}5}章 & 第\textit{\zihao{7}6}章 \\ 第\textit{\zihao{0}5} 章 & 第\textit{\zihao{7}6} 章 \\ 第 \textit{\zihao{0}5}章 & 第 \textit{\zihao{7}6}章 \\ 第 \textit{\zihao{0}5} 章 & 第 \textit{\zihao{7}6} 章 \\ \end{tabular}
LuaLaTeX 编译没有问题:
PS:这个其实是文档里面的例子(不带颜色),所以最好还是要处理一下。
The text was updated successfully, but these errors were encountered:
5
章
当 5 和 章 的字号差异较大时,就能看到前后间距异常的问题。
xecjk 目前的实现,\CJKecglue 总是采用下一个(非空格)字符的字号。不了解 luatex-ja 的实现方式。
\CJKecglue
\documentclass{article} \usepackage{xeCJK} \def\test#1{ \def\zihao##1{\fontsize{#1}{#1}\selectfont} \texttt{#1pt}: \begin{tabular}{*{4}{p{4em}}} 第\textit{\zihao{0}5}章 & 第\textit{\zihao{0}5} 章 & 第 \textit{\zihao{0}5}章 & 第 \textit{\zihao{0}5} 章 \\ \end{tabular}\par } \begin{document} \huge\bfseries \test{10} \test{15} \test{20} \test{40} \end{document}
Sorry, something went wrong.
这个好像很早就发现了:CTeX-org/forum#31 (comment)
切换字体时,中转西的「空格」使用组内西文字体指定的大小,西转中的「空格」使用组外当前中文字体指定的大小。总之就是 xeCJK 自动补回去的空格不能一致。
No branches or pull requests
使用 XeLaTeX 编译:
看问题应该还是来自
xeCJK
对空格的处理:LuaLaTeX 编译没有问题:
PS:这个其实是文档里面的例子(不带颜色),所以最好还是要处理一下。
The text was updated successfully, but these errors were encountered: