LaTeX的中文配置问题

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
Agnxy
帖子: 27
注册时间: 2009-04-18 22:33

LaTeX的中文配置问题

#1

帖子 Agnxy » 2009-05-17 21:48

在新立得里安装了texlive和latex-cjk-chinese的包,现在英文可以正常编译,中文却通不过,不知道还缺什么,求教~~
附测试用的源文件:

代码: 全选

\documentclass[12pt,titlepage]{article}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GBK}{song}

Today (\today) the rate of exchange between the British pound and American dollar is \pounds 1 =\$1.63, an increase of 1\% over yesterday.

中文测试
\end{CJK*}
\LaTeX
\end{document}
头像
runpin
帖子: 647
注册时间: 2005-09-29 11:13
来自: Boston, MA

Re: LaTeX的中文配置问题

#2

帖子 runpin » 2009-05-18 2:07

出错的 log 文件是啥,出错信息是啥,你都不贴出来谁知道啊?

你的源文件指定是 GBK,你装了 GBK 的宋体没有?如果装了,保存的时候有没有存为 gb2312 的编码格式呢。。。。。。。。。。
头像
peachcolor
帖子: 898
注册时间: 2006-05-20 14:03

Re: LaTeX的中文配置问题

#3

帖子 peachcolor » 2009-05-18 2:54

楼主可以试试我的方法

代码: 全选

\documentclass{article}
\usepackage{CJKutf8}
%% document begin -------------------------------------------------------------
\begin{document}
\begin{CJK*}{UTF8}{gbsn}
%% content begin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
你好~Ubuntu!
%% content end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{CJK*}
\end{document}
anewbie
帖子: 159
注册时间: 2009-02-24 19:39

Re: LaTeX的中文配置问题

#4

帖子 anewbie » 2009-05-18 8:19

显然是因为没装字体。
song -> gbsn

另外,XeTeX 多好,为啥不用?
Agnxy
帖子: 27
注册时间: 2009-04-18 22:33

Re: LaTeX的中文配置问题

#5

帖子 Agnxy » 2009-05-18 14:21

runpin 写了:出错的 log 文件是啥,出错信息是啥,你都不贴出来谁知道啊?

你的源文件指定是 GBK,你装了 GBK 的宋体没有?如果装了,保存的时候有没有存为 gb2312 的编码格式呢。。。。。。。。。。
我错了,想都没想就把windows下的东西照搬过来了,估计是没装字体,晚上回去再试试,感谢各位~~
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: LaTeX的中文配置问题

#6

帖子 adam8157 » 2009-05-18 14:32

我只用xetex...
回复