图解Texlive2008的安装和XeTeX的简单中文排版

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
头像
tanzi1688
帖子: 343
注册时间: 2008-10-23 8:37
联系:

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#136

帖子 tanzi1688 » 2010-12-21 18:14

可歌可泣!~~~
个人网站:土木坛子INK SAY
thunderlast
帖子: 34
注册时间: 2010-09-18 21:21

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#137

帖子 thunderlast » 2011-05-25 0:57

2010版经验证通过此配置有效!
唯一DT的一点是
\section{中文无法显示}
subsection也是一样的,求解释???? :em20
pozhenzi
帖子: 17
注册时间: 2008-07-30 23:54

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#138

帖子 pozhenzi » 2011-06-17 19:56

楼主,我安装了texlive2010套装,而且通过了texlive中文指南里面的测试。但是您的第一个例子我就没有通过。我是这么做的:
1.把你的CODES复制粘帖到EMacs编辑器并保存为test1.tex;
捕获.PNG
2.在终端里面输入xelatex test1.tex

代码: 全选

ubuntu@ubuntu:~$ xelatex test1.tex
提示错误内容:

代码: 全选

This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
(./test1.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, basque, catalan, pinyin, ukenglish, us
englishmax, french, galician, german, ngerman, swissgerman, italian, latin, spa
nish, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/expl3.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3names.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3basics.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3expan.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3tl.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3intexpr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3quark.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3seq.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3toks.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3int.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prg.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3clist.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3token.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prop.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3msg.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3io.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3skip.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3box.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keys.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3precom.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3xref.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3file.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3fp.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/tools/calc.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/xpackages/xbase/xparse.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/local/texlive/2010/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.cfg))
kpathsea: Running mktextfm SimSun
/usr/local/texlive/2010/texmf/web2c/mktexnam: Could not map source abbreviation S for SimSun.
/usr/local/texlive/2010/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2010/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input SimSun
This is METAFONT, Version 2.718281 (TeX Live 2010)


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: 没有该文件或目录
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.3 \setmainfont{SimSun}
                        
? 


不是说xetex可以直接处理中文吗?为什么这里说找不到字体?
希望您赐教。
pozhenzi
帖子: 17
注册时间: 2008-07-30 23:54

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#139

帖子 pozhenzi » 2011-06-18 9:35

pozhenzi 写了:楼主,我安装了texlive2010套装,而且通过了texlive中文指南里面的测试。但是您的第一个例子我就没有通过。我是这么做的:
1.把你的CODES复制粘帖到EMacs编辑器并保存为test1.tex;
捕获.PNG
2.在终端里面输入xelatex test1.tex

代码: 全选

ubuntu@ubuntu:~$ xelatex test1.tex
提示错误内容:

代码: 全选

This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
(./test1.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, basque, catalan, pinyin, ukenglish, us
englishmax, french, galician, german, ngerman, swissgerman, italian, latin, spa
nish, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/expl3.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3names.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3basics.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3expan.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3tl.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3intexpr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3quark.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3seq.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3toks.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3int.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prg.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3clist.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3token.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prop.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3msg.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3io.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3skip.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3box.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keys.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3precom.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3xref.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3file.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3fp.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/tools/calc.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/xpackages/xbase/xparse.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/local/texlive/2010/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.cfg))
kpathsea: Running mktextfm SimSun
/usr/local/texlive/2010/texmf/web2c/mktexnam: Could not map source abbreviation S for SimSun.
/usr/local/texlive/2010/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2010/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input SimSun
This is METAFONT, Version 2.718281 (TeX Live 2010)


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: 没有该文件或目录
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.3 \setmainfont{SimSun}
                        
? 


不是说xetex可以直接处理中文吗?为什么这里说找不到字体?
希望您赐教。
发现原来是字体库没有这个字体。换了一个就行了。
liang_2008
帖子: 46
注册时间: 2010-07-28 15:19

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#140

帖子 liang_2008 » 2011-07-19 10:38

好帖,我都才开始在XP上练CTEX
从今天起,嫁与ubuntu,我无怨无悔!!!
shimingzhou
帖子: 269
注册时间: 2008-06-28 6:14

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#141

帖子 shimingzhou » 2011-11-08 19:19

我自己的linux 的tex中文设置,只使用三种字体,三种风格:黑体、明体、楷体,可以在数学环境中使用中文。无聊发上来共享。设置unix/linux tex中文字体的简单懒人包,只使用三种广泛流行的开源字体:文泉驿、ukai ,uming。
只要有这三种字体,下载该包到在tex源文件所在目录,使用\usepackage{unixfonts}导入即可。
附件
unixfonts.sty.tgz.txt
(1.44 KiB) 已下载 891 次
头像
a1457409696
帖子: 167
注册时间: 2010-12-30 22:59

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#142

帖子 a1457409696 » 2012-04-14 0:14

mrk
头像
lekoxnfx
帖子: 1
注册时间: 2012-03-28 12:28

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#143

帖子 lekoxnfx » 2012-04-14 9:42

mark~
liang_2008
帖子: 46
注册时间: 2010-07-28 15:19

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#144

帖子 liang_2008 » 2012-06-05 8:29

mark!!! :em09
从今天起,嫁与ubuntu,我无怨无悔!!!
头像
biowee
帖子: 287
注册时间: 2006-07-31 22:55
联系:

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#145

帖子 biowee » 2012-07-27 0:01

将安装和配置结果,打个deb就更好了。
yjf_victor
帖子: 78
注册时间: 2012-03-20 21:51

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#146

帖子 yjf_victor » 2012-08-07 13:29

ilsoviet1917 写了::em20 :em20 :em20
我装的是2009,安装的是xeCJK,纯英文文档倒是没问题,但是编译中文的时候报错

his is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
entering extended mode
(/home/user/桌面/test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, basque, pinyin, french,
german, ngerman, loaded.
(/usr/local/texlive/2009/../texmf-local/tex/xelatex/xecjk/ctex4xetex.cfg
(/usr/local/texlive/2009/texmf-dist/tex/latex/cjk/texinput/CJKnumb.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/ctexbook.cls
Document Class: ctexbook 2009/10/20 v0.95 ctexbook document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/opt/ctex-common-opts.def)
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/opt/ctex-caption-opts.def)
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/opt/ctex-class-opts.def)
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/def/ctex-loadclass.def
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/bk10.clo)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/def/ctex-common.def
(/usr/local/texlive/2009/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2009/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/indentfirst.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fix-cm.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def
(/usr/local/texlive/2009/../texmf-local/tex/xelatex/xecjk/xeCJK.sty
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex))
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1enc.def)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
(/usr/local/texlive/2009/../texmf-local/tex/xelatex/xecjk/xeCJKpunct.spa))
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def)
(/usr/local/texlive/2009/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.
def
kpathsea: Running mktextfm SimSun
/usr/local/texlive/2009/texmf/web2c/mktexnam: Could not map source abbreviation S for SimSun.
/usr/local/texlive/2009/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2009/texmf-dist/fonts/map/dvips/skak/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input SimSun
This is METAFONT, Version 2.718281 (TeX Live 2009)


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: 没有该文件或目录
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.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt
\unless \ifzf@icu \zf@set@...
l.5 {SimSun}

?

下面是代码:

\input{ctex4xetex.cfg}
\documentclass{ctexbook}

\usepackage[boldfont,slantfont,CJKnumber]{xeCJK}
\setCJKmainfont[BoldFont={Adobe Heiti Std}, ItalicFont={Adobe Kaiti Std}]{Adobe Song Std}
\setCJKsansfont{YouYuan}
\setCJKmonofont{Adobe Fangsong Std}

\begin{document}
你好!

\end{document}


我觉得是不是字体设置有问题啊?
还有,adobe那几种字体怎么安装?

把我的fc-list贴出来,感觉我的中文字体好少阿
Umpush:style=Oblique
Nimbus Sans L:style=Regular Italic
WenQuanYi Bitmap Song:style=Bold
LMRoman10:style=DunhillOblique
LMSans10:style=DemiCondensedOblique
LMSans9:style=Regular
LMSans8:style=Regular
URW Palladio L:style=Roman
Century Schoolbook L:style=Bold Italic
Lohit Punjabi:style=Regular
mry_KacstQurn:style=Regular
Norasi:style=Oblique
TlwgTypewriter:style=Oblique
FreeSans:style=obyčejné,Mittel,µεσαία,Medium,Normal,Medio,Gemiddeld,odmiana zwykła,Обычный,navadno,Vừa
LMRoman5:style=Bold
LMRoman7:style=Bold
LMRoman6:style=Bold
LMRoman9:style=Bold
LMRoman8:style=Bold
TlwgMono:style=Medium
Tlwg Typo:style=Medium
LMSans10:style=Bold
LMMathExtension10:style=Regular
Nimbus Sans L:style=Bold
OpenSymbol:style=Regular
Norasi:style=BoldOblique
UnDotum,은 돋움:style=Regular
文鼎PL中楷,AR PL KaitiM Big5:style=Regular
Tlwg Typo:style=BoldOblique
Purisa:style=BoldOblique
URW Chancery L:style=Medium Italic
Bitstream Charter:style=Bold Italic
wasy10:style=Normal
Mukti Narrow,মুক্তি:style=Regular
文泉驿等宽正黑,文泉驛等寬正黑,WenQuanYi Zen Hei Mono:style=中等,Medium
Nimbus Roman No9 L:style=Regular
AR PL UMing TW:style=Light
LMRoman10:style=CapsRegular
Loma:style=Oblique
cmex10:style=Medium
Century Schoolbook L:style=Bold
Century Schoolbook L:style=Italic
LMRoman10:style=CapsOblique
Mukti Narrow,মুক্তি পাতনা,Mukti Narrow Bold:style=Regular,Bold
AR PL UMing HK:style=Light
LMTypewriterVarWd10:style=Dark
LMMathSymbols5:style=BoldItalic
LMMathSymbols7:style=BoldItalic
FreeSerif:style=FettKursiv,BoldItalic,NegritaCursiva,GrasItalique,VetCursief,ОбычныйКурсив,polkrepko ležeče
KacstDecorative:style=Medium
AR PL UMing CN:style=Light
Norasi:style=BoldItalic
Nimbus Sans L:style=Regular
LMTypewriter10:style=CapsOblique
LMTypewriterVarWd10:style=Oblique
KacstBook:style=Medium
URW Palladio L:style=Italic
LMRoman10:style=DemiOblique
Garuda:style=Oblique
Mallige:style=Bold
Nimbus Sans L:style=Bold Condensed
TlwgTypewriter:style=Medium
LMSans8:style=Oblique
LMSans9:style=Oblique
UnBatang,은 바탕:style=Bold
URW Gothic L:style=Demi
LMRoman12:style=Regular
LMRoman10:style=Regular
LMRoman17:style=Regular
LMMathItalic5:style=BoldItalic
LMMathItalic7:style=BoldItalic
Nimbus Roman No9 L:style=Medium Italic
Bitstream Charter:style=Regular
Purisa:style=Bold
LMSansQuotation8:style=Regular
Garuda:style=BoldOblique
Nimbus Mono L:style=Bold Oblique
LMMathSymbols10:style=Italic
LMTypewriterVarWd10:style=LightOblique
Kinnari:style=Medium
LMRoman10:style=BoldOblique
Norasi:style=Italic
Dingbats:style=Regular
TlwgMono:style=Bold
LMTypewriter10:style=DarkOblique
Loma:style=BoldOblique
Waree:style=Oblique
LMRoman10:style=Demi
Nimbus Roman No9 L:style=Medium
LMTypewriter10:style=Italic
FreeSerif:style=Mittel,µεσαία,Medium,Normal,Gemiddeld,navadno
Nimbus Sans L:style=Bold Italic
LMTypewriter10:style=LightCondensed
Courier 10 Pitch:style=Bold Italic
AR PL UKai TW MBE:style=Book
文鼎PL简报宋,AR PL SungtiL GB:style=Regular
KacstOffice:style=Medium
文泉驿正黑,文泉驛正黑,WenQuanYi Zen Hei:style=中等,Medium
FreeSerif:style=Fett,Bold,Negrita,Gras,Vet,Обычный,polkrepko
Nimbus Mono L:style=Regular
FreeSans:style=Oblique,ležeče
Umpush:style=Book
Umpush:style=Bold
Norasi:style=Regular
cmsy10:style=Medium
Bitstream Charter:style=Italic
URW Gothic L:style=Book
LMRoman10:style=Italic
LMRoman12:style=Italic
Kinnari:style=Oblique
KacstLetter:style=Medium
KacstFarsi:style=Medium
LMSans10:style=DemiCondensed
LMTypewriterVarWd10:style=Light
Sawasdee:style=Bold
TlwgTypewriter:style=Bold
KacstNaskh:style=Medium
FreeMono:style=Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,BoldOblique,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,polkrepko ležeče,Lodi etzana
Rachana:style=Regular
KacstOne:style=Medium
LMRoman9:style=Italic
LMRoman8:style=Italic
LMRoman7:style=Italic
msam10:style=Medium
Waree:style=BoldOblique
Tlwg Typist:style=BoldOblique
LMSansQuotation8:style=Oblique
Courier 10 Pitch:style=Italic
AR PL UKai CN:style=Book
AR PL UKai HK:style=Book
TlwgTypewriter:style=BoldOblique
Purisa:style=Medium
KacstScreen:style=Medium,KacstScreen
LMTypewriter10:style=Dark
AR PL UKai TW:style=Book
KacstTitle:style=Medium
Tlwg Typist:style=Bold
VL PGothic,VL Pゴシック:style=regular
LMTypewriter10:style=CapsRegular
Tlwg Typo:style=Oblique
Kinnari:style=BoldItalic
Kinnari:style=BoldOblique
Nimbus Sans L:style=Regular Condensed Italic
LMRoman17:style=Oblique
LMRoman12:style=Oblique
LMRoman10:style=Oblique
LMRoman10:style=Unslanted
FreeSans:style=Bold,polkrepko
Norasi:style=Bold
URW Bookman L:style=Demi Bold
URW Bookman L:style=Light
FreeMono:style=Negreta,tučné,fed,Fett,Έντονα,Bold,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,polkrepko,đậm,Lodia
URW Gothic L:style=Demi Oblique
Standard Symbols L:style=Regular
Mallige:style=Normal
FreeMono:style=Normal,obyčejné,Standard,Κανονικά,Medium,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,navadno,thường,Arrunta
ori1Uni,utkal:style=Medium
Sawasdee:style=Regular
LMRoman8:style=Oblique
LMRoman9:style=Oblique
LMTypewriter10:style=Oblique
KacstTitleL:style=Medium,Regular
Courier 10 Pitch:style=Regular
LMMathItalic12:style=Italic
LMMathItalic10:style=Italic
LMMathSymbols10:style=BoldItalic
Vemana2000,Pothana2000:style=Pothana2000,Regular
KacstArt:style=Medium
Lohit Hindi:style=Regular
URW Palladio L:style=Bold
LMMathItalic9:style=Italic
LMMathItalic8:style=Italic
LMMathItalic5:style=Italic
LMMathItalic7:style=Italic
LMMathItalic6:style=Italic
cmr10:style=Medium
FreeSerif:style=Kursiv,Λειψίας,Italic,Cursiva,Italique,Cursief,Курсив,ležeče
Nimbus Sans L:style=Regular Condensed
KacstDigital:style=Medium
LMMathSymbols8:style=Italic
LMMathSymbols9:style=Italic
Sawasdee:style=BoldOblique
LMMathSymbols5:style=Italic
LMMathSymbols6:style=Italic
LMMathSymbols7:style=Italic
文鼎PL細上海宋,AR PL Mingti2L Big5:style=Regular,Reguler
KacstPoster:style=Medium
Loma:style=Bold
LMSans17:style=Oblique
LMSans12:style=Oblique
LMSans10:style=Oblique
Loma:style=Book
URW Bookman L:style=Light Italic
Umpush:style=Light
LMRoman10:style=Dunhill
Phetsarath OT:style=Regular
LMTypewriter10:style=LightOblique
WenQuanYi Bitmap Song:style=Regular
Century Schoolbook L:style=Roman
TlwgMono:style=Oblique
Nimbus Roman No9 L:style=Regular Italic
TlwgMono:style=BoldOblique
Courier 10 Pitch:style=Bold
Garuda:style=Book
Garuda:style=Bold
Lohit Tamil:style=Regular
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
Kinnari:style=Italic
URW Gothic L:style=Book Oblique
URW Palladio L:style=Bold Italic
LMTypewriterVarWd10:style=DarkOblique
LMTypewriter12:style=Regular
LMTypewriter10:style=Regular
Kinnari:style=Bold
KacstQurn:style=Medium,Regular
Sawasdee:style=Oblique
UnDotum,은 돋움:style=Bold
LMTypewriter9:style=Regular
LMTypewriter8:style=Regular
Nimbus Mono L:style=Regular Oblique
文鼎PL简中楷,AR PL KaitiM GB:style=Regular
LMSans10:style=BoldOblique
Symbol:style=Regular
Lohit Gujarati:style=Regular
UnBatang,은 바탕:style=Regular
LMRoman9:style=Regular
LMRoman8:style=Regular
LMRoman7:style=Regular
LMRoman6:style=Regular
LMRoman5:style=Regular
LMTypewriterVarWd10:style=Regular
msbm10:style=Medium
DejaVu Sans Mono:style=Book
DejaVu Sans Mono:style=Bold
LMTypewriter10:style=LightCondensedOblique
Umpush:style=BoldOblique
cmmi10:style=Medium
Umpush:style=LightOblique
Nimbus Mono L:style=Bold
FreeSans:style=BoldOblique,polkrepko ležeče
LMSans12:style=Regular
LMSans10:style=Regular
LMSans17:style=Regular
AR PL UMing TW MBE:style=Light
LMSansQuotation8:style=Bold
Tlwg Typist:style=Medium
LMMathItalic10:style=BoldItalic
Bitstream Charter:style=Bold
FreeMono:style=Cursiva,kurzíva,kursiv,Πλάγια,Oblique,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,Kursywa,Itálico,Курсив,İtalik,ležeče,nghiêng,Etzana
LMSansQuotation8:style=BoldOblique
Waree:style=Book
Waree:style=Bold
LMRoman10:style=Bold
LMRoman12:style=Bold
Nimbus Sans L:style=Bold Condensed Italic
LMTypewriter10:style=Light
URW Bookman L:style=Demi Bold Italic
LMRoman10:style=BoldItalic
Tlwg Typist:style=Oblique
Tlwg Typo:style=Bold
kacstPen:style=Medium
VL Gothic,VL ゴシック:style=regular
Purisa:style=Oblique
DejaVu Serif:style=Book
DejaVu Serif:style=Bold

缺少“宋体”(SimSun)
上次由 yjf_victor 在 2012-08-07 13:35,总共编辑 1 次。
yjf_victor
帖子: 78
注册时间: 2012-03-20 21:51

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#147

帖子 yjf_victor » 2012-08-07 13:32

lemd 写了:我试了一下,提示找不到字体,字体也安装了,该怎么办,请楼主指教,以下是具体提示:

代码: 全选

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009)
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, pinyin, ukenglish, loaded.
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1enc.def)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/fontspec/fontspec.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xunicode/xunicode.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/metalogo/metalogo.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetex-def/xetex.def))))
(/usr/local/texlive/2009/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xecjk/xeCJK.sty)
kpathsea: Running mktextfm MSYH
/usr/local/texlive/2009/texmf/web2c/mktexnam: Could not map source abbreviation M for MSYH.
/usr/local/texlive/2009/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2009/texmf-dist/fonts/map/dvips/skak/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MSYH
This is METAFONT, Version 2.718281 (TeX Live 2009)


kpathsea: Running mktexmf MSYH
! I can't find file `MSYH'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input MSYH
                                                  
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input MSYH
                                                  
Transcript written on mfput.log.
grep: MSYH.log: 没有该文件或目录
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input MSYH' failed to make MSYH.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font \zf@basefont=MSYH at 10.0pt not loadable: Metric (TFM) file or installed
 font not found.
<to be read again> 
                   \let 
l.6 \setCJKmainfont{MSYH}
                            % 设置缺省中文字体
? 
! Undefined control sequence.
\zf@set@font@type ...onttype \zf@basefont \zf@tfm 
                                                  \or \zf@atsuitrue \ifnum \...
l.6 \setCJKmainfont{MSYH}
                            % 设置缺省中文字体
?
tex文件的代码是用楼主的:

代码: 全选

% !Mode:: "TeX:UTF-8"
\documentclass[18pt,a4paper]{article}
\usepackage{xltxtra,fontspec,xunicode}
\usepackage[slantfont,boldfont]{xeCJK} % 允许斜体和粗体

\setCJKmainfont{MSYH}   % 设置缺省中文字体
\setCJKmonofont{Inconsolata}   % 设置等宽字体
\setmainfont{Inconsolata} % 英文衬线字体
\setmonofont{Inconsolata} % 英文等宽字体
\setsansfont{Inconsolata} % 英文无衬线字体

\begin{document}

\begin{verse}
Stray birds of summer come to my window to sing and fly away. \\
And yellow leaves of autumn, which have no songs, \\
flutter and fall there with a sign.\\

\hfill \emph{Rabindranath Tagore}
\end{verse}

\begin{verse}
夏天的飞鸟,飞到我的窗前唱歌,又飞去了。\\
秋天的黄叶,它们没有什么可唱,只叹息一声,飞落在那里。\\
\hfill \emph{罗宾德拉纳特·泰戈尔}
\end{verse}

\end{document}

缺少“微软雅黑”(MSYH)字体,下载微软雅黑字体就行
上次由 yjf_victor 在 2012-08-07 13:36,总共编辑 1 次。
yjf_victor
帖子: 78
注册时间: 2012-03-20 21:51

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#148

帖子 yjf_victor » 2012-08-07 13:34

xxdaystar 写了:這是上文中錯誤的開始,什麼意思?我的電腦上有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$ 
缺少“楷体”(KaiTi)。

“楷体”(KaiTi)和“楷体_GB2312”(KaiTi_GB2312)不是同一个字体。
yjf_victor
帖子: 78
注册时间: 2012-03-20 21:51

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#149

帖子 yjf_victor » 2012-08-07 13:35

xxdaystar 写了:執行到樓主說的 xelatex test.tex 時出現編譯錯誤,怎麼解決?

代码: 全选

(/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}
                                             %这里设置中文粗体和普...
缺少“楷体”(KaiTi)字体。
头像
晒晒太阳吹吹风
帖子: 89
注册时间: 2012-03-15 22:32

Re: 图解Texlive2008的安装和XeTeX的简单中文排版

#150

帖子 晒晒太阳吹吹风 » 2012-09-29 15:29

这帖子有点太老了吧? :em06 ,楼主有没有更新的打算?
ubuntu12.04LTS 64bit
神舟优雅A460-i5RD2 CPU:Intel 酷睿i5 2430M显卡:Inter HD3000 & NVIDIA GeForce GT540M

Ubuntu12.04 桌面入门操作指南
论坛精华贴全集
关于linux的书籍
Python3.2简明入门教程

每一楼的右下角可以感谢!
制作超链接:网址释义
回复