On Tuesday, November 25, 2008 at 16:36, [EMAIL PROTECTED] wrote:

>> I want to use the \date{} or \today command in the title page of my
>> Chinese beamer presentation, so the date format should be better in
>> Chinese.  In detail, I want the following data format something like
>> the following are given:
>> 
>> 二零零八年十一月二十四日 星期一

> Use CJKnumb.sty which provides a \CJKnumber macro for any Chinese
> number; this can replace \zhnum.  For a representation with Chinese
> digits, use \CJKdigits.  However, the latter uses ○ instead of 零.
> Right now I've added a new command \CJKdigits* to the git repository
> which uses 零.

>   \CJKnumber{2008}  ->  二千零八
>   \CJKdigits{2008}  ->  二○○八
>   \CJKdigits*{2008} ->  二零零八

I've installed the latest git version of CJK and use the following
example to do test:

--------------------
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GBK}{song}

\CJKnumber{2008}

\CJKdigits*{2008}

\end{CJK*}
\end{document}
-------------------

But I'll meet the following errors:

----------------------
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(xelatex_date.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo"))
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\CJK.sty
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\mule\MULEenc.
sty) (F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\CJK.enc)
) (xelatex_date.aux)
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\standard.bdg)
 (F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\extended.enc
)
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\extended.chr)

! Undefined control sequence.
l.6 \CJKnumber
              {2008}
?
-----------------------

And this:

------------------------
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(xelatex_date.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo"))
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\CJK.sty
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\mule\MULEenc.
sty) (F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\CJK.enc)
) (xelatex_date.aux)
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\standard.bdg)
 (F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\extended.enc
)
(F:\zhaohs\TeX-Fonts-CJK\localtexmf-miktex\tex\latex\cjk\texinput\extended.chr)

! Undefined control sequence.
l.8 \CJKdigits
              *{2008}
?
------------------------

Why?

Regards,
-- 
Hongsheng Zhao <[EMAIL PROTECTED]> 
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences 
GnuPG DSA: 0xD108493
2008-11-25


_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to