Skip to content

Instantly share code, notes, and snippets.

@Liam0205
Created October 3, 2016 13:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Liam0205/27587edd0f7544646a29f8f4c0b68429 to your computer and use it in GitHub Desktop.
Save Liam0205/27587edd0f7544646a29f8f4c0b68429 to your computer and use it in GitHub Desktop.
demo for CJKecglue and xCJKecglue
\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}
@IdiosApps
Copy link

Handy example. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment