我这几天也刚好在搞tetex, 安装了如下软件包: latex-cjk-chinese latex-beamer texlive-fonts-recommended texlive-doc-zh texlive-fonts-extra fontforge latex-cjk-all
测试了你的文档, 可以编译. li...@guoliangc:~/tex$ cat 5.tex \documentclass[12pt]{article} \usepackage{CJK} \begin{document} \begin{CJK*}{GB}{song} \CJKtilde \title{\bf 中文\LaTeX~(CJK+LaTeX)的使用实例} \date{\today} \maketitle \end{CJK*} \end{document} li...@guoliangc:~/tex$ xelatex 5.tex This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) restricted \write18 enabled. entering extended mode (./5.tex LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, pinyin, loaded. (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) (/usr/share/texmf/tex/latex/CJK/CJK.sty (/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty) (/usr/share/texmf/tex/latex/CJK/CJK.enc)) (./5.aux) (/usr/share/texmf/tex/latex/CJK/standard.bdg) (/usr/share/texmf/tex/latex/CJK/standard.enc) (/usr/share/texmf/tex/latex/CJK/standard.chr) LaTeX Warning: No \author given. [1] (./5.aux) ) (see the transcript file for additional information) Output written on 5.pdf (1 page). Transcript written on 5.log. 不过pdflatex无法编译 pdf命令是那个软件包的? Liang 在 2010年5月15日 下午1:52,马耀辉 <stesench...@gmail.com>写道: > xetex的字体是系统字体,fc-list看到的 > 编译是用xetex > > 长时间不用,记不太清楚了 > > > 在 2010年5月15日 下午12:12,刘宇辉 <lyh19901...@gmail.com>写道: > > 还是那样,呵呵, 错误信息 >> >> 2010/5/15 刘宇辉 <lyh19901...@gmail.com> >> >> >>> >>> 2010/5/15 马耀辉 <stesench...@gmail.com> >>> >>>> 貌似要设置下、安装装字体才能用中文的吧,要不就texlive-xetex >>>> >>> >>> >>> latex-cjk-chinese-arphic-gkai00mp >>> latex-cjk-chinese-arphic-bsmi00lp >>> latex-cjk-chinese-arphic-bkai00mp >>> latex-cjk-chinese-arphic-gbsn00lp >>> 这几个应该包含了字体了吧, >>> >>> 我试一下texlive-xetex >>> >>> >>> >>>> 在 2010年5月15日 上午11:01,刘宇辉 <lyh19901...@gmail.com>写道: >>>> >>>> 刚刚接触到Latex, 今天早晨刚刚装了, >>>>> 为了减少出错的几率,用debian软件中心安装的(squeeze), >>>>> 安装了这几个软件包: >>>>> cjk-latex >>>>> >>>>> latex-cjk-chinese-arphic-gkai00mp >>>>> latex-cjk-chinese-arphic-bsmi00lp >>>>> latex-cjk-chinese-arphic-bkai00mp >>>>> latex-cjk-chinese-arphic-gbsn00lp >>>>> >>>>> latex-cjk-common >>>>> >>>>> ttf-arphic-gkai00mp >>>>> ttf-arphic-bsmi00lp >>>>> ttf-arphic-bkai00mp >>>>> ttf-arphic-gbsn00lp >>>>> 还有一些包是依赖关系安装上去的。 >>>>> >>>>> 测试了一下: >>>>> >>>>> \documentclass[12pt]{article} >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> \usepackage{CJK} >>>>> \begin{document} >>>>> \begin{CJK*}{GB}{song} >>>>> \CJKtilde >>>>> \title{\bf 中文\LaTeX~(CJK+LaTeX)的使用实例} >>>>> \date{\today} >>>>> \maketitle >>>>> \end{CJK*} >>>>> \end{document} >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> (这个是网上的例子) >>>>> >>>>> 然后pdf hello1.tex : >>>>> 输出: >>>>> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) >>>>> restricted \write18 enabled. >>>>> entering extended mode >>>>> (./hello1.tex >>>>> LaTeX2e <2009/09/24> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, >>>>> dumylang, noh >>>>> yphenation, pinyin, loaded. >>>>> (/usr/share/texmf-texlive/tex/latex/base/article.cls >>>>> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) >>>>> (/usr/share/texmf/tex/latex/CJK/CJK.sty >>>>> (/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty) >>>>> (/usr/share/texmf/tex/latex/CJK/CJK.enc)) (./hello1.aux) >>>>> (/usr/share/texmf/tex/latex/CJK/standard.bdg) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> (/usr/share/texmf/tex/latex/CJK/standard.enc) >>>>> (/usr/share/texmf/tex/latex/CJK/standard.chr) >>>>> >>>>> LaTeX Font Warning: Font shape `C10/song/bx/n' undefined >>>>> >>>>> >>>>> >>>>> >>>>> (Font) using `C10/song/m/n' instead on input line 8. >>>>> >>>>> ! Undefined control sequence. >>>>> t...@size@range ...extr...@rangefontinfo f...@info >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> <-*>@nil <@nnil >>>>> l.8 \maketitle >>>>> >>>>> ? >>>>> >>>>> >>>>> 查看了一下log >>>>> 并没有报错或者warning 。开始怀疑是编码的格式的原因(代码里的红色的GB),把他改为UTF8,问题依旧, >>>>> >>>>> >>>>> >>>>> >>>>> This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) >>>>> restricted \write18 enabled. >>>>> entering extended mode >>>>> (./hello1.tex >>>>> LaTeX2e <2009/09/24> >>>>> >>>>> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, >>>>> dumylang, noh >>>>> yphenation, pinyin, loaded. >>>>> (/usr/share/texmf-texlive/tex/latex/base/article.cls >>>>> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) >>>>> (/usr/share/texmf/tex/latex/CJK/CJK.sty >>>>> (/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty) >>>>> (/usr/share/texmf/tex/latex/CJK/CJK.enc)) (./hello1.aux) >>>>> (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.bdg) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.enc) >>>>> (/usr/share/texmf/tex/latex/CJK/UTF8/UTF8.chr) >>>>> >>>>> LaTeX Font Warning: Font shape `C70/song/bx/n' undefined >>>>> >>>>> >>>>> >>>>> >>>>> (Font) using `C70/song/m/n' instead on input line 8. >>>>> >>>>> ! Undefined control sequence. >>>>> t...@size@range ...extr...@rangefontinfo f...@info >>>>> <-*>@nil <@nnil >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> l.8 \maketitle >>>>> >>>>> ? >>>>> >>>>> >>>>> 由于是刚刚接触tex,希望各位指教,不胜感激!谢谢! >>>>> >>>>> >>>>> -- >>>>> ________________________ >>>>> wolf python london(WPL) >>>>> Do as you soul should do ! >>>>> ________________________ >>>>> >>>> >>>> >>> >>> >>> -- >>> ________________________ >>> wolf python london(WPL) >>> Do as you soul should do ! >>> ________________________ >>> >> >> >> >> -- >> ________________________ >> wolf python london(WPL) >> Do as you soul should do ! >> ________________________ >> > > -- Liang Guo http://bluestone.cublog.cn