1 %% This is file 'chinesebasic.sty'
4 %% The PUTeX Project and any individual authors listed elsewhere
6 %% This file is part of the PUTeX system. You are NOT allowed to
7 %% distribute a modified version of this file.
8 %% ----------------------------------------
9 %% This system is distributed in the hope that it will be useful,
10 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
11 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 \NeedsTeXFormat{LaTeX2e}[2003/12/01]
14 \ProvidesPackage{chinesebasic}[2004/09/13 1.1 PULaTeX standard package]
15 \newcommand*{\@PU}{P\kern-.15em\lower.5ex\hbox{U}}
16 \newcommand*{\PUTeX}{\@PU\kern-.2em\TeX}
17 \newcommand*{\PULaTeX}{\@PU\kern-.125em\LaTeX}
18 \newcommand*{\PULaTeXe}{\@PU\kern-.125em\LaTeXe}
19 \newcommand*{\@cnumber}[1]{\PUXcnumber #1}
20 \newcommand*{\@Cnumber}[1]{\PUXucnumber #1}
21 \newcommand*{\cnumber}[1]{\expandafter\@cnumber\csname c@#1\endcsname}
22 \newcommand*{\Cnumber}[1]{\expandafter\@Cnumber\csname c@#1\endcsname}
23 \ifnum\the\puxCharSet=1 % Big5
24 \newcommand*{\CDOTS}{\mbox{¡K\kern0pt¡K}}% Chinese center dots
26 \setcounter{roc@year}{\year}
27 \addtocounter{roc@year}{-1911}
28 \newcommand*{\rocyear}{\theroc@year}
29 \newcommand*{\roctoday}{¤¤µØ¥Á°ê \cnumber{roc@year} ¦~ \PUXcnumber\month ¤ë \PUXcnumber\day ¤é}
30 \newcommand*{\Roctoday}{¤¤µØ¥Á°ê \Cnumber{roc@year} ¦~ \PUXucnumber\month ¤ë \PUXucnumber\day ¤é}
31 \newcommand*{\pu@clist@name}{¤@¤G¤T}
32 \newcommand*{\pu@CLIST@name}{³ü¶L°Ñ}
33 \newcommand*{\pu@clist@sep}{¡N}
35 \newcommand*{\CDOTS}{\mbox{¡\kern0pt¡}}% Chinese center dots
36 \newcommand*{\pu@clist@name}{Ò»¶þÈý}
37 \newcommand*{\pu@CLIST@name}{Ò¼·¡²Î}
38 \newcommand*{\pu@clist@sep}{¡¢}
40 \newenvironment{\pu@clist@name}{%
41 \if@twocolumn\setlength\leftmargini{2.5em}\else\setlength\leftmargini{3.6em}\fi
42 \renewcommand*{\labelenumi}{\cnumber{enumi}\pu@clist@sep}
43 \renewcommand*{\labelenumii}{\arabic{enumii}.}
44 \renewcommand*{\labelenumiii}{(\alph{enumiii})}
45 \renewcommand*{\labelenumiv}{\roman{enumiv}.}
46 \begin{enumerate}}{\end{enumerate}}
47 \newenvironment{\pu@CLIST@name}{%
48 \if@twocolumn \setlength\leftmargini {2.5em} \else \setlength\leftmargini{3.6em}\fi
49 \renewcommand*{\labelenumi}{\Cnumber{enumi}\pu@clist@sep}
50 \renewcommand*{\labelenumii}{\arabic{enumii}.}
51 \renewcommand*{\labelenumiii}{(\alph{enumiii})}
52 \renewcommand*{\labelenumiv}{\roman{enumiv}.}
53 \begin{enumerate}}{\end{enumerate}}