想請問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}