看一个简单的示例:

\documentclass{ctexart}
\usepackage[T1]{fontenc}
\begin{document}
command~here
\end{document}
xelatex编译的时候会报出: ! LaTeX Error: Command \nobreakspace unavailable in encoding T1. 【解决方案】 这个错误是由 xunicode 造成的,xunicode对空格进行了重定义,可以把其定义改为原始定义即可, \DeclareRobustCommand\nobreakspace{\leavevmode\nobreak\ } 选自:http://tex.stackexchange.com/questions/66949/command-nobreakspace-unavailable-when-switching-to-t1-encoding-under-xelatex http://bbs.ctex.org/forum.php?mod=viewthread&tid=60547

点赞(1)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部