centos安装texlive2012编译中文例子出错

45 views
Skip to first unread message

neuc...@gmail.com

unread,
Jan 21, 2015, 9:34:38 AM1/21/15
to ct...@googlegroups.com
大家好,
      我在centos上安装texlive2012,然后在使用pdflatex命令编译中文例子时出错,调了很久都没解决,大家有谁遇到过这种情况帮我看看呗,多谢了!
中文例子:
\documentclass{article}
\usepackage{CJK}
\begin{CJK}{UTF8}{gbsn}
\begin{document}
中文
\end{CJK}
\end{document}
用pdflatex编译时出错提示:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./cc.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))

! LaTeX Error: File `CJK.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:

Liam Huang

unread,
Jan 22, 2015, 1:02:40 AM1/22/15
to ct...@googlegroups.com
现在已经是 2015-01-22 了,TeX Live 最新的版本是 2014。你应该从 TUG 官网上下载
TeX Live 的 ISO 镜像,然后再安装。

这里的报错是提示没有 CJK 这个宏包,你安装的不全。

CJK 是已经过时的方式,尽量避免使用。现在推荐的方式是 xeCJK with XeLaTeX。你
可以在终端键入
     texdoc xeCJK
来查看 xeCJK 宏包的文档。
对中文版式的处理,推荐的方式是使用 ctex 宏包。类似的方法可以查看它的文档。

祝好。


--
您收到此邮件是因为您订阅了Google网上论坛上的“CTeX”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到ctex+uns...@googlegroups.com
要发帖到此群组,请发送电子邮件至ct...@googlegroups.com
访问此群组:http://groups.google.com/group/ctex
要查看更多选项,请访问https://groups.google.com/d/optout

Reply all
Reply to author
Forward
0 new messages