ubuntu (SimSun) 缺少字體

ubuntu (SimSun) 缺少字體

之前我在 Windows 7 中使用 Miktex 使用 Xelatex 編譯了我的文件,並且工作正常。現在我在Ubuntu 12.04安裝TexLive 2009並再次編譯相同的文件,但編譯後出現以下錯誤(xelatex myfile.tex):

kpathsea: Running mktexmf SimSun
! I can't find file `SimSun'.
<*> ...:=ljfour; mag:=1; nonstopmode; input SimSun

Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input SimSun

Transcript written on mfput.log.
grep: SimSun.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input SimSun' failed to make SimSun.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font \zf@basefont=SimSun at 10.0pt not loadable: Metric (TFM) file or install
ed font not found.
<to be read again> 
               \let 
l.30 \setCJKmainfont{SimSun}
Set Chinese font, complusory
? 

有什麼方法可以在 Ubuntu 的 Window 7 中使用 MikTex 可用的字體嗎?或任何其他方式來處理它?

微量元素:

\documentclass[a4paper]{article}

\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\xeCJKsetup{PunctStyle=kaiming,CJKspace=true,CheckSingle=true} 

\begin{document}
宋體中文字
\end{document}

答案1

問題是檔案名稱在 (L)ubuntu 中區分大小寫,但在 Windows (XP) 中則不區分大小寫。當從 Windows 遷移到 Ubuntu 時,出現了這個問題。

相關內容