$apt-get install textlive-full
$apt-get install texmaker
就可以使用了
在xelatex裡使用中文字型:
\usepackage{fontspec} %加這個就可以設定字體
\usepackage{xeCJK} %讓中英文字體分開設置
\setmainfont{Times New Roman} %設定英文字型,不設的話就會使用預設的字型
\setCJKmainfont{AR PL UKai TW} %設定中文為系統上的字型,而英文不去更動\XeTeXlinebreaklocale "zh" %這兩行一定要加,中文才能自動換行
\XeTeXlinebreakskip = 0pt plus 1pt %這兩行一定要加,中文才能自動換行
安裝Times New Roman字型:
$apt-get install ttf-mscorefonts-installer
列出字型列表
$cf-list
中文字型名稱:
標楷體:Kai相關詞
細明體:Ming相關詞
例如:
$fc-list | grep Kai
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai CN:style=Book
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai HK:style=Book
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW:style=Book
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW MBE:style=Book
$ fc-list | grep Ming
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW MBE:style=Light
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW:style=Light
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing CN:style=Light
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing HK:style=Light
ref:
[1]http://pangomi.blogspot.tw/2012/11/latex-in-ubuntu.html
[2]http://leavedcorn.pixnet.net/blog/post/24773932