Friday, March 23, 2007

LaTeX CJK 中文成功!

剛剛搞定LaTeX的中文環境。原來非常簡單。
在Debian下裝上這些套件
latex-cjk-common
latex-cjk-chinese
latex-cjk-chinese-arphic-bkai00mp
latex-cjk-chinese-arphic-bsmi00lp
使用的時候呢用法像這樣
\documentclass[12pt]{article}
\usepackage{CJK} %使用CJK套件
\usepackage[encapsulated]{CJK} %1.Dec. 2009更新:使用[encapsulate]才是正確的用法
\begin{document}
\begin{CJK}{UTF8}{bsmi} %開始CJK環境,設定編碼,設定字體
正體中文測試。This is a test.
\end{CJK} %有始有終
\end{document}
剛剛打了一份中德交雜的信件,目前看起來運作良好。

4 comments:

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Quinten Yearsley said...

多謝啦!很有幫助。