[問題] OS下中文編譯問題
想請問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}
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.168.129.184
※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1465479110.A.82B.html
推
06/09 21:43, , 1F
06/09 21:43, 1F
→
06/09 22:40, , 2F
06/09 22:40, 2F
→
06/10 01:10, , 3F
06/10 01:10, 3F
→
06/10 05:46, , 4F
06/10 05:46, 4F
→
06/10 05:48, , 5F
06/10 05:48, 5F
→
06/10 10:19, , 6F
06/10 10:19, 6F
→
06/11 10:33, , 7F
06/11 10:33, 7F
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章