Part I : Document setup.
<1> 打開 Document > Settings...
<2> 設定 Language 中的 Encoding 設定成某種 unicode 例如說:
- Unicode (XeTeX) (utf8)
- Unicode (CJK) (utf8)
- Unicode (utf8)
<3>加入 LaTeX Preamble 如下:
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\newfontfamily{\c}{LiHei Pro}
\newfontfamily{\ch}{LiSong Pro}
Part II : Preference setup.
<1> 打開 Preference
<2> 設定 File formats
為了 XeTeX, 請將 Default Output Format 設定成 PDF (XeTeX),至於 Format 要不要設定成 LaTeX (XeTeX) 倒是無所謂。
沒有留言:
張貼留言