Re: 图解Texlive2008的安装和XeTeX的简单中文排版
发表于 : 2009-02-24 12:45

代码: 全选
(/usr/local/texlive/2008/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
(/usr/local/texlive/2008/texmf-dist/tex/xelatex/xunicode/xunicode.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2008/../texmf-local/tex/xelatex/zhspacing/zhfont.sty
(/usr/local/texlive/2008/../texmf-local/tex/xelatex/zhspacing/zhspacing.sty
(/usr/local/texlive/2008/../texmf-local/tex/xelatex/zhspacing/usefulmacros.sty)
(/usr/local/texlive/2008/../texmf-local/tex/xelatex/zhspacing/myclass.sty
(/usr/local/texlive/2008/../texmf-local/tex/xelatex/zhspacing/usefulmacros.sty)
)) (/usr/local/texlive/2008/../texmf-local/tex/xelatex/zhspacing/zhulem.sty
(/usr/local/texlive/2008/texmf-dist/tex/latex/ltxmisc/ulem.sty)))
zhspacing installed.
kpathsea: Running mktextfm KaiTi
/usr/local/texlive/2008/texmf/web2c/mktexnam: Could not map source abbreviation K for KaiTi.
/usr/local/texlive/2008/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2008/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input KaiTi
This is METAFONT, Version 2.718281 (Web2C 7.5.7)
kpathsea: Running mktexmf KaiTi
! I can't find file `KaiTi'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input KaiTi
Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input KaiTi
Transcript written on mfput.log.
grep: KaiTi.log: 没有该文件或目录
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input KaiTi' failed to make KaiTi.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \zf@basefont=KaiTi at 10.0pt not loadable: Metric (TFM) file or installe
d font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt
\unless \ifzf@icu \zf@set@...
l.9 \setzhmainfont[BoldFont=LiHei Pro]{KaiTi}
%这里设置中文粗体和普...
代码: 全选
kpathsea: Running mktextfm KaiTi
/usr/local/texlive/2008/texmf/web2c/mktexnam: Could not map source abbreviation K for KaiTi.
/usr/local/texlive/2008/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2008/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input KaiTi
This is METAFONT, Version 2.718281 (Web2C 7.5.7)
代码: 全选
tseong@myUbuntu:~/Desktop/tex$ fc-list | grep KaiTi
楷体_GB2312,KaiTi_GB2312:style=Regular
代码: 全选
tseong@myUbuntu:~/Desktop/tex$ fc-list :lang=zh-cn
华文彩云,STCaiyun:style=Regular
WenQuanYi Bitmap Song:style=Bold
楷体_GB2312,KaiTi_GB2312:style=Regular
AR PL UMing TW:style=Light
AR PL UMing HK:style=Light
新宋体,NSimSun:style=Regular
AR PL UMing CN:style=Light
仿宋_GB2312,FangSong_GB2312:style=Regular
宋体,SimSun:style=Regular
华文仿宋,STFangsong:style=Regular
AR PL UKai TW MBE:style=Book
文泉驿正黑,文泉驛正黑,WenQuanYi Zen Hei:style=中等,Medium
华文新魏,STXinwei:style=Regular
黑体,SimHei:style=Regular
华文行楷,STXingkai:style=Regular
AR PL UKai CN:style=Book
AR PL UKai HK:style=Book
AR PL UKai TW:style=Book
WenQuanYi Bitmap Song:style=Regular
文鼎PL简中楷,AR PL KaitiM GB:style=Regular
华文细黑,STXihei:style=Regular
AR PL UMing TW MBE:style=Light
tseong@myUbuntu:~/Desktop/tex$
沒想到你回答這麼快,謝謝你的文章,但我的電腦上有楷體(見上),我不太熟悉,望見諒和指教一下。zhan 写了:楼上的,你的系统中没有 KaiTi 这个字体。
运行 fc-list :lang=zh-cn 出现的字体选择一个去替换源文件里面的 KaiTi
代码: 全选
\ifzhfont@fakebold
\newfontfamilywithslant\zhrmfont{SimSun}
\newfontfamilywithslant\zhsffont{SimHei}
\newfontfamilywithslant\zhttfont{FangSong_GB2312}
\else
\newfontfamilywithslantandbold\zhrmfont{SimSun}{SimHei}
\newfontfamilywithslant\zhsffont{SimHei}
\newfontfamilywithslantandbold\zhttfont{FangSong_GB2312}{KaiTi_GB2312}
代码: 全选
! Font \zf@basefont=KaiTi at 10.0pt not loadable: Metric (TFM) file or installed font not found.
这vim的配色是什么配色?kofshower 写了:lihei pro不是繁体字库的么,我这儿作为简体显示总觉得有点奇怪: