作者CaCaEgg (世界长什麽样?)
看板LaTeX
标题Re: [问题] CJK章节标题无法显示
时间Tue Jun 26 19:26:08 2012
自己解决了回覆一下,
加上CJK包覆就可以了
※ 引述《CaCaEgg (世界长什麽样?)》之铭言:
: 各位版上的前辈好
: 在用CJK章节标题时,编译出现错误如下
: ./chapter1.tex:3: Undefined control sequence.
: \CJK@digit ...ll \else \CJK@zero \fi \or \CJK@one
: \or \CJK@two \or \CJK@thre...
: l.3 \chapter{简单的介绍}
: 章节的定义如下:
: \def\@chapter[#1]#2{%
\begin{CJK}{UTF8}{cwyc}
: \ifnum \c@secnumdepth >\m@ne
: \refstepcounter{chapter}%
: % Done with frontmatter?
: \if@frontmatter
: \@frontmatterfalse
: \pagenumbering{arabic}
: \setcounter{page}{1}
: \fi
: \typeout{\@chapapp\space\thechapter.}%
: \if@inappendix
: \addcontentsline{toc}{chapter}{\@chapapp~\thechapter.~~#1}%
: \else
: \if@englishformat
: \addcontentsline{toc}{chapter}{\thechapter.~~#1}%
: \else
: \addcontentsline{toc}{chapter}{{第\CJKnumber{\thechapter}章}~~#1}%
: \fi
: \fi
: \else
: \addcontentsline{toc}{chapter}{#1}%
: \fi
: \chaptermark{#1}%
: \addtocontents{lof}{\protect\addvspace{10\p@}}%
: \addtocontents{lot}{\protect\addvspace{10\p@}}%
: \@makechapterhead{#2}%
: \@afterheading
: \normalbaselines
\end{CJK}
: }
: 我查过Google以後,有人说是CJKnumb的版本问题
: 也另外确定过系统中的CJK版本是4.8.2,另外本身使用的Mac,
: 安装的版本是TexLive 2011,为了这问题十分苦恼,
: 请问有没有哪位先进可以给些方向?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.37.73.187