|
|
昨晚装了texlive-2008,之前网络上搜索搜的一篇Ubuntu下的Howto(点击打开)看了下,同时参照了论坛里一些朋友的方法。
- USE="xetex" emerge texlive
- emerge zhspacing
复制代码
其间依赖安装许多包,然后使用之前那篇howto中有个测试用例:
- \documentclass[11pt,a4paper]{article}
- %------------------------------------------------------------------------------------------------------
- \usepackage{xltxtra,fontspec,xunicode} %这里使用xetex相应的宏包
- \usepackage{zhfont} %这里调用zhspacing
- \zhspacing
- %------------------------------------------------------------------------------------------------------
- %------------------------------------------------------------------------------------------------------
- \setzhmainfont[BoldFont=LiHei Pro]{KaiTi}%这里设置中文粗体和普通字体
- \setmainfont{TeX Gyre Pagella} %这里设置英文衬线字体
- \setmonofont{Monaco} %英文等宽字体
- \setsansfont{Trebuchet MS} %英文无衬线字体
- %-------------------------------------------------------------------------------------------------------
- \begin{document}
- Cowards die many times before their deaths.\\
- 懦夫在未死之前,已身历多次死亡的恐怖了。
- \end{document}
复制代码
之后编译时候\setmainfont{TeX Gyre Pagella}出错提示。这个字体是在依赖安装dev-tex/texlive-fontsrecommended时候安
装的,其他的中文字体都正常。
我的locale是:en_US.UTF8 另外安装texlive的USE参数:CJK xetex linguas_zh
我觉得可能是有些use参数没有设置好或者是coding的问题。最后贴下出错的log:
- kpathsea: Invalid fontname `TeX Gyre Pagella', contains ' '
- ! Font \zf@basefont="TeX Gyre Pagella" at 10.0pt not loadable: Metric (TFM) fil
- e or installed font not found.
- \zf@fontspec ...ntname \zf@suffix " at \f@size pt
- \unless \ifzf@icu \zf@set@...
- l.10 \setmainfont{TeX Gyre Pagella}
- %这里设置英文衬线字体
- ?
复制代码
各位帮忙看看可能是什么地方出错了,谢谢! |
|