将你的TeX保存成utf-8格式, 然后用xeLaTeX编译
加入mbox或在公式结束位置标记。按照标准的latex语法来,用户在输入公式的时候对中文部分自行加入mbox或在公式结束位置标记$结束符,这样行内公式和公式外的中文就能正常显示,合情合理方案二,由于数学公式没有明显起始标识,所以可以在把传入的字符中所有的连续中文在后台用mbox包裹起来,需要在代码中手动截取相应的连续中文并使用mbox包裹即可。数学公式是人们在研究自然界物与物之间时发现的一些联系,并通过一定的方式表达出来的一种表达方法。
不知道你的编辑器配置情况,只能胡乱猜测:有可能你的编辑器采用的中文编码是UTF8,而CJK则指定中文编码是GBK,这就不一致了。这种情况会导致中文编译出现问题。改法就是使二者一致:或者让你的编辑器采用GBK编码,或者让编辑器采用UTF8编码,而把LaTeX文件中的\begin{CJK*}{GBK}{song}改为\begin{CJK*}{UTF8}{gbsn}之类的.
123 浏览 4 回答
230 浏览 7 回答
283 浏览 4 回答
252 浏览 6 回答
334 浏览 7 回答
210 浏览 7 回答
351 浏览 3 回答
345 浏览 3 回答
240 浏览 5 回答
132 浏览 5 回答
150 浏览 5 回答
159 浏览 3 回答
272 浏览 6 回答
154 浏览 7 回答
219 浏览 2 回答
98 浏览 5 回答
320 浏览 5 回答
302 浏览 8 回答
121 浏览 4 回答
111 浏览 3 回答
119 浏览 5 回答
246 浏览 6 回答
113 浏览 6 回答
338 浏览 5 回答
225 浏览 2 回答