latex + CJK按置顶帖设置后出现错误,求解决方法

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
abacan
帖子: 29
注册时间: 2006-09-10 11:01
送出感谢: 0
接收感谢: 0

latex + CJK按置顶帖设置后出现错误,求解决方法

#1

帖子 abacan » 2007-01-06 0:06

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(/home/chenmo/misc/misc/latex/text.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf-tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-tetex/tex/latex/base/size10.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))
(/usr/share/texmf/tex/latex/CJK/standard.bdg)
(/usr/share/texmf/tex/latex/CJK/extended.enc)
(/usr/share/texmf/tex/latex/CJK/extended.chr)
No file text.aux.

LaTeX Font Warning: Font shape `C19/hei/m/n' undefined
(Font) using `C19/song/m/n' instead on input line 5.

(/usr/share/texmf/tex/latex/CJK/GB/c19song.fd)kpathsea: Running mktextfm gbk51
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input gbk51
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf gbk51
! I can't find file `gbk51'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input gbk51

Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input gbk51

Transcript written on mfput.log.
grep: gbk51.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input gbk51' failed to make gbk51.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font C19/song/m/n/10/51=gbk51 at 10.0pt not loadable: Metric (TFM) file not f
ound.
<to be read again>
relax
l.5 你
abacan
帖子: 29
注册时间: 2006-09-10 11:01
送出感谢: 0
接收感谢: 0

#2

帖子 abacan » 2007-01-06 0:09

latex文件你内容如下:
\documentclass{article}
\usepackage{CJK}
\begin{CJK}{GBK}{hei}
\begin{document}

\end{CJK}
\end{document}

生成的missfont.log文件内容如下:
mktextfm gbk77
mktextfm gbk19
mktextfm gbk18
mktextfm gbk77
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk58
mktextfm gbk51
mktextfm gbk51
mktextfm gbk51
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01
送出感谢: 0
接收感谢: 1 次

#3

帖子 xiechy » 2007-01-06 12:35

首先,置顶的文章已经有段日子了,这些方法在新的cjk下已经不是必须的了,相反,还有点不必要的麻烦。而且基本上是用的GBK的编码方案,文件要转码成为GBK才能正常编译。(TeXLive的没问题)
其次,你要检查是不是没有制作字体阿?
如果系统里没有hei体,那当然是找不到的阿。

如果是新手,就直接用TeXLive的光盘版本吧。如果要安装字体,用tex-cjkfonts包制作。在论坛搜这个包。我写过篇文章的。
abacan
帖子: 29
注册时间: 2006-09-10 11:01
送出感谢: 0
接收感谢: 0

#4

帖子 abacan » 2007-01-06 19:59

我把字体安装到了~/.texmf下,没有修改etc/texmf/texmf.cnf ,没有仔细看置顶帖,对不起。

但是不知道下面这段操作是干嘛的,请指教
1 修改dvips/config/config.ps

代码:
gedit dvips/config/config.ps


找到% p +myfonts.map一行,去掉注释(%号)修改为 p +texmf/cjk.map。
回复

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