楼主:
s60984 (Angus)
2016-06-09 21:31:45想请问MacTex+Texmaker后
我使用以下范例进行编译
结果只有英文成功,但中文没出现
请问该如何修正
感谢~~
\documentclass{article}
\usepackage{fontspec} %加这个就可以设定字体
\usepackage{xeCJK} %让中英文字体分开设置
\setCJKmainfont{标楷体} %设定中文为系统上的字型,而英文不去更动,使用原TeX字型
\XeTeXlinebreaklocale "zh" %这两行一定要加,中文才能自动换行
\XeTeXlinebreakskip = 0pt plus 1pt %这两行一定要加,中文才能自动换行
\title{我是标题标题标题}
\author{我是作者}
\date{} %不要日期
\begin{document}
\maketitle
中文测试中文测试中文测试中文测试中文测试中文测试,中文测试中文测试,中文
测试中文测试中文测试中文测试中文测试中文测试,中文测试中文测试。中英文可以连打。
English Test. 插入中文字,看看如何? This is a simple template for a
XeLaTeX document using the article class, with the fontspec package to
easily select fonts.
\end{document}