发布网友
共1个回答
热心网友
试试这个例子nihao.tex:
\documentclass[a4paper,12pt]{article}
\usepackage{xeCJK}
\setCJKmainfont{KaiTi}
\usepackage{fontspec}
\setmainfont{Arial}
\usepackage[top=2cm,bottom=2cm,left=1.4cm,right=1.4cm]{geometry}
\begin{document}
\author{zhucl05}
\title{你好}
\date{2017}
\maketitle
你也好!
编译的时候用命令:
xelatex nihao.tex
这里那个中文字体KaiTi,英文字体Arial都可以换成你自己电脑上有的字体。
\end{document}