<div class="gmail_quote"><div>Hi Chien-leng,</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am very new to TeXShop (version 2.33) and having problems to get Chinese characters shown in my final document.<br>
I've been searching all day long but without any answers.<br>
Do I need to install any packages? Can someone help me?<br></blockquote><div><br></div><div>(This is assuming you're using LaTeX, I don't use XeLaTeX much.)</div><div><br></div><div>If you need only short snippets of Chinese, use the CJK package (as well as related font packages e.g. cjk-fonts, arphic)</div>
<div><br></div><div><div>\usepackage{CJK}</div></div><div>...</div><div>% if your file is saved as GB simplified encoding</div><div>... as we say in Chinese, \begin{CJK}{GB}{gbsn}路遥知马力\end{CJK}</div><div>% if you file is saved as Big5 traditional encoding</div>
<div><div>... as we say in Chinese, \begin{CJK}{Bg5}{bsmi}路遙知馬力\end{CJK}</div></div><div><br></div><div><br></div><div>But if you're saving as UTF-8 then you need CJKutf8.sty (included in CJK package):</div><div><br></div>
<div>\usepackage{CJKutf8}</div><div><div>... as we say in Chinese, \begin{CJK}{UTF8}{gbsn}路遥知马力\end{CJK} or \begin{CJK}{UTF8}{bsmi}路遙知馬力\end{CJK}</div></div><div><br></div><div><br></div><div>On the other hand, if your *entire* document is going to be in Chinese, you might be better off using the ctexart document class (in the ctex package):</div>
<div><br></div><div>\documentclass[UTF8]{ctexart}</div><div>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">\begin{document}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">\section{感想}</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">路遥知马力,日久见人心。</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">\end{document}</p></div><div><br></div><div>You'll need to copy some Windows Chinese font files (simsun.ttf, simkai.ttf, simli.ttf...) to your $localtexmf/fonts/truetype/... directory to use ctex propertly. In any case, for more help on the ctex package and ctexart.cls, you'd best ask for help at <a href="http://bbs.ctex.org/">http://bbs.ctex.org/</a> (CTEX 论坛). It's a Chinese-only forum BTW. ;-)</div>
<div><br></div><div>Hope that helps!</div><div><br></div><div>- Lian Tze -</div></div>