latex 设置出错?

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
leokan
帖子: 203
注册时间: 2008-10-11 17:56
系统: ubuntu 12.04
来自: 厦门
送出感谢: 3 次
接收感谢: 0

latex 设置出错?

#1

帖子 leokan » 2008-11-02 12:47

我按照http://hi.baidu.com/deckespace/blog/item/709c9839958d95f73a87ce85.html配置了latex
然后生成了下面的文件

代码: 全选

\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}
测试
\end{CJK}
\end{document}


执行pdflatex...

出来个这样的pdf

代码: 全选

/m/n/10/8b
/m/n
/m/n/8b/213/h


以下是終端的信息

代码: 全选

leokan@leokan-desktop:~/文档/latex$ pdflatex try.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./try.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, pinyin, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/CJK/CJKutf8.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/utf8.def
(/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
(/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))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty)) (./try.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)
! Argument of \CJK@XXX has an extra }.
<inserted text>
                \par
l.5
     ��试
?
Runaway argument?
! Paragraph ended before \CJK@XXX was complete.
<to be read again>
                   \par
l.5
     ��试
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Extra \endcsname.
\font@name ->\C70/ \par /m/n/10/8b\endcsname
                                             
l.5 测试
         
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Extra \endcsname.
\selectfont  ...me CJK@\curr@fontshape \endcsname
                                                  \fi \size@update \enc@update
l.5 测试
         
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Missing \endcsname inserted.
<to be read again>
                   \par
l.5 测试
         
?
! Extra \endcsname.
\CJK@altchar ...se \csname \reserved@a \endcsname
                                                  \fi \ifCJK@hangul@ \discre...
l.5 测试
         
?
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map
}] (./try.aux) )</usr/share
/texmf-texlive/fonts/type1/bluesky/cm/cmr10.pfb>
Output written on try.pdf (1 page, 5871 bytes).
Transcript written on try.log.


怎么办?
头像
runpin
帖子: 646
注册时间: 2005-09-29 11:13
来自: Boston, MA
送出感谢: 0
接收感谢: 0

Re: latex 设置出错?

#2

帖子 runpin » 2008-11-02 14:04

还是字体问题(没指定字体)。

代码: 全选

\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{song}
测试
\end{CJK}
\end{document}


问TexLive的问题还是去http://bbs.ctex.org/,那儿都是牛人。
回复

回到 “办公、图像、机械电子设计等”