Dear Werner,
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:
二零零八年十一月二十四日 星期一
In addition, Andrew <[EMAIL PROTECTED]> from the C.T.T. give me the following
example tested by him using XeLaTeX:
---------------------
\documentclass{article}
\usepackage{fontspec}
\setmainfont{KaiTi_GB2312}
\makeatletter
\newcounter{tempa}
\newcounter{tempb}
\newcounter{tempc}
\newcounter{tempd}
\setcounter{tempa}{\the\year}
\setcounter{tempb}{\thetempa}
[EMAIL PROTECTED] by 1000
\addtocounter{tempb}{-\thetempa000}
\setcounter{tempc}{\thetempb}
[EMAIL PROTECTED] by 100
\addtocounter{tempc}{-\thetempb00}
\setcounter{tempd}{\thetempc}
[EMAIL PROTECTED] by 10
\addtocounter{tempd}{-\thetempc0}
\def\zhnum#1{%
\ifcase#1 零\or
一\or 二\or 三\or 四\or 五\or
六\or 七\or 八\or 九\or 十\or
十一\or 十二\or 十三\or 十四\or 十五\or
十六\or 十七\or 十八\or 十九\or 二十\or
二十一\or 二十二\or 二十三\or 二十四\or 二十五\or
二十六\or 二十七\or 二十八\or 二十九\or 三十\or
三十一\fi}
\usepackage{eukdate}
[EMAIL PROTECTED]
[EMAIL PROTECTED]<1
[EMAIL PROTECTED]
\fi
\edef\today{%
\zhnum\thetempa\zhnum\thetempb%
\zhnum\thetempc\zhnum\thetempd 年%
\zhnum{\number\month}月%
\zhnum{\number\day}日%
[EMAIL PROTECTED]
\begin{document}
\today
\end{document}
---------------------
But, I want to fulfill it within CJK, would you like give me some hints?
Thanks in advance.
Regards,
--
Hongsheng Zhao <[EMAIL PROTECTED]>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493
2008-11-25
xelatex_date.tex
Description: Binary data
_______________________________________________ Cjk maillist - [email protected] https://lists.ffii.org/mailman/listinfo/cjk
