按照置顶帖子设置好了,可是DVI中的中文都是乱码

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
头像
jazzi
帖子: 532
注册时间: 2005-10-16 23:26
来自: 泉州
送出感谢: 0
接收感谢: 3 次
联系:

按照置顶帖子设置好了,可是DVI中的中文都是乱码

#1

帖子 jazzi » 2006-07-28 0:11

安装好后测试了一下,中文全是乱码,英文显示正常。
不知是字体安装设置问题还是什么?
我的TEX源文件是这样的:
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{GBK}{song}
这是latex
\end{CJK}
\end{document}

$$$$$$$$$$$$
编译的log信息如下:
[quote]This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=latex 2006.7.26) 28 JUL 2006 08:30
entering extended mode
**tex-test.tex
(./tex-test.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
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/latex/CJK/CJK.sty
Package: CJK 2002/06/17 4.5.1

(/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty
File: MULEenc.sty 2002/06/17 4.5.1
)
(/usr/share/texmf/tex/latex/CJK/CJK.enc
File: CJK.enc 2002/06/17 4.5.1
)
LaTeX Info: Redefining \selectfont on input line 661.
\CJK@indent=\box26
)
No file tex-test.aux.
\openout1 = `tex-test.aux'.

LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C00/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C09/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C10/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C20/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C19/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C40/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C42/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C43/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C50/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C52/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C49/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C60/mj/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C61/mj/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C63/mj/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C64/mj/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C65/mj/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C70/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C31/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C32/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C33/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C34/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C35/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C36/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C37/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C80/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C81/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C01/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C11/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C21/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C41/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for C62/song/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
(/usr/share/texmf/tex/latex/CJK/standard.bdg
File: standard.bdg 2002/06/17 4.5.1
)
(/usr/share/texmf/tex/latex/CJK/extended.enc
File: extended.enc 2002/06/17 4.5.1
)
(/usr/share/texmf/tex/latex/CJK/extended.chr
File: extended.chr 2002/06/17 4.5.1
)
LaTeX Font Info: Try loading font information for C19+song on input line 5.

(/home/jazzihong/.texmf/tex/latex/CJK/GB/c19song.fd) [1

] (./tex-test.aux) )
Here is how much of TeX's memory you used:
1194 strings out of 94501
12036 string characters out of 1175811
59366 words of memory out of 1000000
4422 multiletter control sequences out of 10000+50000
4517 words of font info for 17 fonts, out of 500000 for 2000
580 hyphenation exceptions out of 8191
23i,4n,20p,165b,280s stack positions out of 1500i,500n,5000p,200000b,5000s
[/quote]
You make it fun
It will make you fun
头像
zhan
帖子: 1880
注册时间: 2005-08-15 0:04
来自: 南7技校
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 zhan » 2006-07-28 16:31

首先,确保你的tex文档保存为 GBK 的编码!
如果保存为GBK编码还有问题,兄弟不妨抓一个图放上来看看.不过我以为最可能的原因就是文件编码问题.
置顶帖的跟帖中有这样的问题,也贴出了截图,有空看看是不是一样的症状.
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
头像
jazzi
帖子: 532
注册时间: 2005-10-16 23:26
来自: 泉州
送出感谢: 0
接收感谢: 3 次
联系:

#3

帖子 jazzi » 2006-07-29 12:00

zhan 写了:首先,确保你的tex文档保存为 GBK 的编码!
如果保存为GBK编码还有问题,兄弟不妨抓一个图放上来看看.不过我以为最可能的原因就是文件编码问题.
置顶帖的跟帖中有这样的问题,也贴出了截图,有空看看是不是一样的症状.
谢谢zhan兄啊,如果是非GBK编码的能不能用,老要转换太麻烦
You make it fun
It will make you fun
头像
zhan
帖子: 1880
注册时间: 2005-08-15 0:04
来自: 南7技校
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 zhan » 2006-07-29 13:51

这个问题很多人有的貌似,可惜对于这个字体的映射方式不是很了解。所以一直没有研究过,查了一些资料,测试没有成功的。所以就搁置了..
哪位熟悉的大牛能够弄出来就好了..
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
回复

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