Created
October 3, 2016 13:50
-
-
Save Liam0205/27587edd0f7544646a29f8f4c0b68429 to your computer and use it in GitHub Desktop.
demo for CJKecglue and xCJKecglue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[UTF8]{ctexbook} | |
\begin{document} | |
汉字 English汉字 | |
% xCJKecglue 处理在源码里本来就有的中西文之间的空格 | |
% CJKecglue 处理在源码里没有的中西文之间的空格(需要 xeCJK 自己加上的) | |
\xeCJKsetup{ | |
CJKecglue = \hskip 0.1em plus 0.08\baselineskip, | |
xCJKecglue = true} | |
汉字 English汉字 | |
\xeCJKsetup{ | |
CJKecglue = \hskip 0pt, | |
xCJKecglue = true} | |
汉字 English汉字 | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Handy example. Thank you!