只需要在开头加上

\usepackage{fontspec, xunicode, xltxtra} 
\setmainfont{Microsoft YaHei} 
\usepackage{ctex}

结果如下:

 

 

Latex中使用中文

 

另外一种可以使用的方式是使用如下代码:

\documentclass[UTF8]{ctexart}
\begin{document}
    你好,world!
\end{document}

同样可以实现中英混排。

相关文章:

  • 2021-08-28
  • 2022-12-23
  • 2021-04-15
  • 2021-05-07
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-01-30
  • 2022-12-23
  • 2021-12-25
  • 2021-06-05
相关资源
相似解决方案