+ -
当前位置:首页 → 问答吧 → 按照站内的Slackware teTeX + Chinese mini-HOWTO设置。出现的错误

按照站内的Slackware teTeX + Chinese mini-HOWTO设置。出现的错误

时间:2005-04-23

来源:互联网

完全按照楼主的步骤进行,可是CJK还是不能用。
\documentclass[a4paper,11pt]{article}
%define the title
\author{Jin}
\title{Minimalism}
\usapackage{CJK}
\begin{document}
\begin{CJK}{GB}{song}

\maketitle
\tableofcontents
\section{Some Interesting Words}
Well, and here begins my lovely article.
\section{Good Bye world}
\ldots{} and here it ends.
\end{CJK}
\end{document}
如用pdftex *.tex,出现下面的信息。
(./lshort-2.tex{/usr/share/texmf-local/pdftex/config/pdftex.cfg}
! Undefined control sequence.
如用latex *.tex ,出现下面的信息。
(/usr/share/texmf/tex/latex/base/size11.clo))
! Undefined control sequence.
l.5 \usapackage
{CJK}
有劳大家抽空帮我看一下。

作者: fou   发布时间: 2005-04-23

第一行你是不是输入错误,应该是:
\documentclass[a4paper,11pt]{article}

另外,你的例子里面没有使用到中文字,怎么知道CJK不能运行呢?

作者: windrose   发布时间: 2005-04-23

第一行是粘帖是贴错了。
因为不能编译呀?难道这不是CJK的问题吗?谢谢

作者: fou   发布时间: 2005-04-23

你安装CJK之后有没有用texhash更新文件列表?

作者: windrose   发布时间: 2005-04-23

我用mktexlst了,不是用这个更新的吗?

作者: fou   发布时间: 2005-04-23

解决了。
是\usepackage{CJK}而不是\usapackage{CJK}

作者: fou   发布时间: 2005-04-24

作者: windrose   发布时间: 2005-04-24