解压后放到${TEXLIVE}/texmf-local/tex/latex/下
我是用iso装的,TEXLIVE安装目录为/work/tools/texlive
$ ls /work/tools/texlive/texmf-local/tex/latex/ctex/
back  cfg  ctexart.cls  ctexbook.cls  ctexcap.sty  ctexrep.cls  ctex.sty
def  doc  engine  fd  fontset  opt  README  script  test


在 2011年5月14日 下午8:35,张启德(Zhang Qide) <[email protected]>写道:

> 用aptitude 安装源里的texlive texlive-latex-extra texlive-xetex
> latex-cjk-chinese等包,
> 测试如下的例子:
>
> % -*- coding: utf-8 -*-
> \documentclass[UTF8,nofonts]{ctexart}
> \setCJKmainfont[ItalicFont={AR PL KaitiM GB}]{AR PL SungtiL GB}% 文鼎宋体和楷书
> \setCJKsansfont{WenQuanYi Zen Hei}% 文泉驿的黑体
>
> \begin{document}
> 文章内容
> \end{document}
>
> 使用xelatex 编译出错:
>
> This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
> entering extended mode
> (./file.tex
> LaTeX2e <2009/09/24>
> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang,
> noh
> yphenation, pinyin, loaded.
>
> ! LaTeX Error: File `ctexart.cls' not found.
>
> Type X to quit or <RETURN> to proceed,
> or enter new name. (Default extension: cls)
>
> 从提示上看是缺少ctex宏包,在源里怎么也搜索不到ctex宏包相关的包,我从
>
> http://mirror6.bjtu.edu.cn/CTAN/language/chinese/
>
> 上面下载了ctex.zip,请问怎么安装ctex宏包?
>

回复