From eb97016c84519e4fe808e12147d06227d0fb80f4 Mon Sep 17 00:00:00 2001 From: maqiyuan Date: Mon, 2 Sep 2013 15:23:20 +0800 Subject: [PATCH] texmf/latex/putex. --- texmf/latex/putex/chinesebasic.sty | 54 +++++++++++++++++ texmf/latex/putex/chinesebook.inc | 92 +++++++++++++++++++++++++++++ texmf/latex/putex/chinesenames.sty | 34 +++++++++++ texmf/latex/putex/chineserbcomm.inc | 74 ++++++++++++++++++++++++ texmf/latex/putex/chineserbopts.inc | 26 +++++++++ texmf/latex/putex/chinesereport.inc | 82 ++++++++++++++++++++++++++ texmf/latex/putex/chinesesection.inc | 76 ++++++++++++++++++++++++ texmf/latex/putex/gbkarticle.cls | 21 +++++++ texmf/latex/putex/gbkbook.cls | 19 ++++++ texmf/latex/putex/gbkreport.cls | 19 ++++++ texmf/latex/putex/taiwan.sty | 109 +++++++++++++++++++++++++++++++++++ texmf/latex/putex/twarticle.cls | 21 +++++++ texmf/latex/putex/twbook.cls | 19 ++++++ texmf/latex/putex/twpkgpatch.sty | 19 ++++++ texmf/latex/putex/twreport.cls | 19 ++++++ 15 files changed, 684 insertions(+) create mode 100644 texmf/latex/putex/chinesebasic.sty create mode 100644 texmf/latex/putex/chinesebook.inc create mode 100644 texmf/latex/putex/chinesenames.sty create mode 100644 texmf/latex/putex/chineserbcomm.inc create mode 100644 texmf/latex/putex/chineserbopts.inc create mode 100644 texmf/latex/putex/chinesereport.inc create mode 100644 texmf/latex/putex/chinesesection.inc create mode 100644 texmf/latex/putex/gbkarticle.cls create mode 100644 texmf/latex/putex/gbkbook.cls create mode 100644 texmf/latex/putex/gbkreport.cls create mode 100644 texmf/latex/putex/taiwan.sty create mode 100644 texmf/latex/putex/twarticle.cls create mode 100644 texmf/latex/putex/twbook.cls create mode 100644 texmf/latex/putex/twpkgpatch.sty create mode 100644 texmf/latex/putex/twreport.cls diff --git a/texmf/latex/putex/chinesebasic.sty b/texmf/latex/putex/chinesebasic.sty new file mode 100644 index 0000000..80af89e --- /dev/null +++ b/texmf/latex/putex/chinesebasic.sty @@ -0,0 +1,54 @@ +%% This is file 'chinesebasic.sty' +%% +%% Copyright 1999-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesPackage{chinesebasic}[2004/09/13 1.1 PULaTeX standard package] +\newcommand*{\@PU}{P\kern-.15em\lower.5ex\hbox{U}} +\newcommand*{\PUTeX}{\@PU\kern-.2em\TeX} +\newcommand*{\PULaTeX}{\@PU\kern-.125em\LaTeX} +\newcommand*{\PULaTeXe}{\@PU\kern-.125em\LaTeXe} +\newcommand*{\@cnumber}[1]{\PUXcnumber #1} +\newcommand*{\@Cnumber}[1]{\PUXucnumber #1} +\newcommand*{\cnumber}[1]{\expandafter\@cnumber\csname c@#1\endcsname} +\newcommand*{\Cnumber}[1]{\expandafter\@Cnumber\csname c@#1\endcsname} +\ifnum\the\puxCharSet=1 % Big5 + \newcommand*{\CDOTS}{\mbox{¡K\kern0pt¡K}}% Chinese center dots + \newcounter{roc@year} + \setcounter{roc@year}{\year} + \addtocounter{roc@year}{-1911} + \newcommand*{\rocyear}{\theroc@year} + \newcommand*{\roctoday}{¤¤µØ¥Á°ê \cnumber{roc@year} ¦~ \PUXcnumber\month ¤ë \PUXcnumber\day ¤é} + \newcommand*{\Roctoday}{¤¤µØ¥Á°ê \Cnumber{roc@year} ¦~ \PUXucnumber\month ¤ë \PUXucnumber\day ¤é} + \newcommand*{\pu@clist@name}{¤@¤G¤T} + \newcommand*{\pu@CLIST@name}{³ü¶L°Ñ} + \newcommand*{\pu@clist@sep}{¡N} +\else % GBK + \newcommand*{\CDOTS}{\mbox{¡­\kern0pt¡­}}% Chinese center dots + \newcommand*{\pu@clist@name}{Ò»¶þÈý} + \newcommand*{\pu@CLIST@name}{Ò¼·¡²Î} + \newcommand*{\pu@clist@sep}{¡¢} +\fi +\newenvironment{\pu@clist@name}{% + \if@twocolumn\setlength\leftmargini{2.5em}\else\setlength\leftmargini{3.6em}\fi + \renewcommand*{\labelenumi}{\cnumber{enumi}\pu@clist@sep} + \renewcommand*{\labelenumii}{\arabic{enumii}.} + \renewcommand*{\labelenumiii}{(\alph{enumiii})} + \renewcommand*{\labelenumiv}{\roman{enumiv}.} + \begin{enumerate}}{\end{enumerate}} +\newenvironment{\pu@CLIST@name}{% + \if@twocolumn \setlength\leftmargini {2.5em} \else \setlength\leftmargini{3.6em}\fi + \renewcommand*{\labelenumi}{\Cnumber{enumi}\pu@clist@sep} + \renewcommand*{\labelenumii}{\arabic{enumii}.} + \renewcommand*{\labelenumiii}{(\alph{enumiii})} + \renewcommand*{\labelenumiv}{\roman{enumiv}.} + \begin{enumerate}}{\end{enumerate}} +\endinput diff --git a/texmf/latex/putex/chinesebook.inc b/texmf/latex/putex/chinesebook.inc new file mode 100644 index 0000000..d83bdd6 --- /dev/null +++ b/texmf/latex/putex/chinesebook.inc @@ -0,0 +1,92 @@ +%% This is file 'chinesebook.inc' +%% +%% Copyright 2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\InputIfFileExists{chineserbopts.inc}{}{% + \ClassError{pu@classname}{% + Can't load chineserbopts.inc}{}} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} +\ProcessOptions +\LoadClass{book} +\InputIfFileExists{chineserbcomm.inc}{}{% + \ClassError{pu@classname}{% + Can't load chineserbcomm.inc}{}} +\if@twoside + \def\ps@headings{% + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\thepage\hfil\slshape\leftmark}% + \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth {\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \twchaptername\ \ \ + \fi + \fi + ##1}}{}}% + \def\sectionmark##1{% + \markright {\MakeUppercase{% + \ifnum \c@secnumdepth >\z@ + \thesection. \ % + \fi + ##1}}}} +\else + \def\ps@headings{% + \let\@oddfoot\@empty + \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markright {\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \twchaptername\ \ \ + \fi + \fi + ##1}}}} +\fi +\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\twchaptername.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\twchaptername}#1}% + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \chaptermark{#1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \@afterheading + \fi} +\def\@makechapterhead#1{% + \vspace*{50\p@}% + {\parindent \z@ \pu@chhdalign \TWchapHeadingFont + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \twchaptername + \par\nobreak + \vskip 20\p@ + \fi + \fi + \interlinepenalty\@M + \pu@chhdalign #1\par\nobreak + \vskip 40\p@ + }} +\pagestyle{headings} +\endinput diff --git a/texmf/latex/putex/chinesenames.sty b/texmf/latex/putex/chinesenames.sty new file mode 100644 index 0000000..26581a5 --- /dev/null +++ b/texmf/latex/putex/chinesenames.sty @@ -0,0 +1,34 @@ +%% This is file 'chinesenames.sty' +%% +%% Copyright 1999 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesPackage{chinesenames}[2004/09/13 1.0 PULaTeX standard package] +\newcommand{\pu@l@n}[1]{\the\PUXlocalnames#1 }% don't remove the space after #1 +\@ifundefined{contentsname}{}{\renewcommand*{\contentsname}{\pu@l@n{96}\pu@l@n{97}}}%¥Ø¿ý +\@ifundefined{listfigurename}{}{\renewcommand*{\listfigurename}{\pu@l@n{98}\pu@l@n{99}\pu@l@n{96}\pu@l@n{97}}}%¹Ï§Î¥Ø¿ý +\@ifundefined{listtablename}{}{\renewcommand*{\listtablename}{\pu@l@n{100}\pu@l@n{101}\pu@l@n{96}\pu@l@n{97}}}%ªí®æ¥Ø¿ý +\@ifundefined{abstractname}{}{\renewcommand*{\abstractname}{\pu@l@n{105}\pu@l@n{106}}}%ºK­n +\@ifundefined{partname}{}{\renewcommand*{\partname}{\pu@l@n{95}}}%½g +\@ifundefined{prefacename}{}{\renewcommand*{\prefacename}{\pu@l@n{94}}}%§Ç +\@ifundefined{appendixname}{}{\renewcommand*{\appendixname}{\pu@l@n{104}\pu@l@n{97}}}%ªþ¿ý +\@ifundefined{indexname}{}{\renewcommand*{\indexname}{\pu@l@n{102}\pu@l@n{103}}}%¯Á¤Þ +\@ifundefined{figurename}{}{\renewcommand*{\figurename}{\pu@l@n{98}}}%¹Ï +\@ifundefined{tablename}{}{\renewcommand*{\tablename}{\pu@l@n{100}\pu@l@n{101}}}%ªí®æ +\@ifundefined{pagename}{}{\renewcommand*{\pagename}{\pu@l@n{107}}}%­¶ +\@ifundefined{seename}{}{\renewcommand*{\seename}{\pu@l@n{108}\pu@l@n{111}}}%°Ñ¨£ +\@ifundefined{alsoname}{}{\renewcommand*{\alsoname}{\pu@l@n{108}\pu@l@n{111}}}%°Ñ¨£ +\@ifundefined{notesname}{}{\renewcommand*{\notesname}{\pu@l@n{112}\pu@l@n{113}}}%³Æµù +\@ifundefined{headtoname}{}{\renewcommand*{\headtoname}{\pu@l@n{114}}}%­P +\@ifundefined{subjectname}{}{\renewcommand*{\subjectname}{\pu@l@n{115}\pu@l@n{116}¥D¦®}} +\@ifundefined{refname}{}{\renewcommand*{\refname}{\pu@l@n{108}\pu@l@n{109}\pu@l@n{120}\pu@l@n{121}}}%°Ñ¦Ò¤åÄm +\@ifundefined{bibname}{}{\renewcommand*{\bibname}{\pu@l@n{108}\pu@l@n{109}\pu@l@n{120}\pu@l@n{121}}}%°Ñ¦Ò¤åÄm +\endinput diff --git a/texmf/latex/putex/chineserbcomm.inc b/texmf/latex/putex/chineserbcomm.inc new file mode 100644 index 0000000..c02e599 --- /dev/null +++ b/texmf/latex/putex/chineserbcomm.inc @@ -0,0 +1,74 @@ +%% This is file 'chineserbcomm.inc' +%% +%% Common parts for chinese report and book +%% +%% Copyright 1999-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\usepackage{chinesenames} +\def\@pu@setref#1#2#3{% + \ifx#1\relax + \protect\G@refundefinedtrue + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#3' on page \thepage \space + undefined}% + \else + \pu@chapcnum\expandafter#2#1\null + \fi} +\newcommand*{\twref}[1]{\expandafter\@pu@setref\csname r@#1\endcsname\@firstoftwo{#1}} +\newcommand*{\TWchapHeadingFont}{\normalfont\Huge\bfseries} +\newcommand*{\TWchapContentFont}{\large\bfseries} +\ifnum\the\puxCharSet=1 % Big5 + \renewcommand*{\chaptername}{³¹} + \newcommand*{\twchaptername}{²Ä\pu@chapcnum\c@chapter \chaptername} +\else % GBK + \renewcommand*{\chaptername}{ÕÂ} + \newcommand*{\twchaptername}{µÚ\pu@chapcnum\c@chapter \chaptername} +\fi +\def\@makeschapterhead#1{% + \vspace*{50\p@}% + {\parindent \z@ \pu@chhdalign + \TWchapHeadingFont + \interlinepenalty\@M + #1\par\nobreak + \vskip 40\p@ + }} +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \renewcommand\@chapapp{\appendixname}% + \renewcommand\thechapter{\@Alph\c@chapter}% + \renewcommand\twchaptername{\appendixname \thechapter}} +\let\tw@numberline\numberline +\renewcommand*\l@chapter[2]{% + \ifnum \c@tocdepth >\m@ne + \addpenalty{-\@highpenalty}% + \vskip 1.0em \@plus\p@ + \begingroup + \parindent \z@ \rightskip \@pnumwidth + \parfillskip -\@pnumwidth + \leavevmode \TWchapContentFont + \def\numberline##1{% + \settowidth{\@tempdima}{##1}% + \addtolength{\@tempdima}{0.6em}% + \advance\leftskip \@tempdima + \hskip -\leftskip + \tw@numberline{##1}}% + #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss\normalsize #2}\par + \vskip 0.4em \@plus\p@ + \penalty\@highpenalty + \endgroup + \fi} +\if@twsec + \InputIfFileExists{chinesesection.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chinesesection.inc}{}} +\fi +\endinput diff --git a/texmf/latex/putex/chineserbopts.inc b/texmf/latex/putex/chineserbopts.inc new file mode 100644 index 0000000..0ca6da1 --- /dev/null +++ b/texmf/latex/putex/chineserbopts.inc @@ -0,0 +1,26 @@ +%% This is file 'chineserbopts.inc' +%% +%% Options for Chinese report and book +%% +%% Copyright 1999-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\RequirePackage{chinesebasic}[2004/09/13] +\let\pu@chapcnum\PUXcnumber +\DeclareOption{chapscnum}{\let\pu@chapcnum\PUXscnumber} +\DeclareOption{chapucnum}{\let\pu@chapcnum\PUXucnumber} +\DeclareOption{chapfcnum}{\let\pu@chapcnum\PUXfcnumber} +\DeclareOption{chapacnum}{\let\pu@chapcnum\PUXacnumber} +\let\pu@chhdalign\raggedright +\DeclareOption{rightchhd}{\let\pu@chhdalign\raggedleft} +\DeclareOption{centerchhd}{\let\pu@chhdalign\centering} +\newif\if@twsec \@twsecfalse +\DeclareOption{twsec}{\@twsectrue} +\endinput diff --git a/texmf/latex/putex/chinesereport.inc b/texmf/latex/putex/chinesereport.inc new file mode 100644 index 0000000..0963bed --- /dev/null +++ b/texmf/latex/putex/chinesereport.inc @@ -0,0 +1,82 @@ +%% This is file 'chinesereport.inc' +%% +%% Copyright 2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\InputIfFileExists{chineserbopts.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chineserbopts.inc}{}} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} +\ProcessOptions +\LoadClass{report} +\InputIfFileExists{chineserbcomm.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chineserbcomm.inc}{}} +\if@twoside + \def\ps@headings{% + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\thepage\hfil\slshape\leftmark}% + \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth {\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \twchaptername\ \ \ + \fi + ##1}}{}}% + \def\sectionmark##1{% + \markright {\MakeUppercase{% + \ifnum \c@secnumdepth >\z@ + \thesection. \ % + \fi + ##1}}}} +\else + \def\ps@headings{% + \let\@oddfoot\@empty + \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markright {\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \twchaptername\ \ \ + \fi + ##1}}}} +\fi +\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\twchaptername.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\twchaptername}#1}% + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \chaptermark{#1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \@afterheading + \fi} +\def\@makechapterhead#1{% + \vspace*{50\p@}% + {\parindent \z@ \pu@chhdalign \TWchapHeadingFont + \ifnum \c@secnumdepth >\m@ne + \twchaptername + \par\nobreak + \vskip 20\p@ + \fi + \interlinepenalty\@M + \pu@chhdalign #1\par\nobreak + \vskip 40\p@ + }} +\pagestyle{plain} +\endinput diff --git a/texmf/latex/putex/chinesesection.inc b/texmf/latex/putex/chinesesection.inc new file mode 100644 index 0000000..7c9429a --- /dev/null +++ b/texmf/latex/putex/chinesesection.inc @@ -0,0 +1,76 @@ +%% This is file 'chinesesection.inc' +%% +%% Copyright 1998-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\newcommand{\twsecsepchar}{.} +\newcommand{\twthesection}{\PUXcnumber\c@chapter\twsecsepchar\PUXcnumber\c@section} +\newcommand{\twthesubsection}{\twthesection\twsecsepchar\PUXcnumber\c@subsection} +\newcommand{\twthesubsubsection}{\twthesubsection\twsecsepchar\PUXcnumber\c@subsubsection} +\newcommand{\twsectionlabel}{\twthesection} +\newcommand{\twsubsectionlabel}{\twthesubsection} +\newcommand{\twsubsubsectionlabel}{\twthesubsubsection} +\newcommand{\twcsectionlabel}{\twthesection} +\newcommand{\twcsubsectionlabel}{\twthesubsection} +\newcommand{\twcsubsubsectionlabel}{\twthesubsubsection} +\def\@seccntformat#1{\csname tw#1label\endcsname\quad} +\def\@sect#1#2#3#4#5#6[#7]#8{% + \ifnum #2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{#1}% + \protected@edef\@svsec{\@seccntformat{#1}\relax}% + \fi + \@tempskipa #5\relax + \ifdim \@tempskipa>\z@ + \begingroup + #6{% + \@hangfrom{\hskip #3\relax\@svsec}% + \interlinepenalty \@M #8\@@par}% + \endgroup + \csname #1mark\endcsname{#7}% + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname twc#1label\endcsname}% + \fi + #7}% + \else + \def\@svsechd{% + #6{\hskip #3\relax + \@svsec #8}% + \csname #1mark\endcsname{#7}% + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname twc#1label\endcsname}% + \fi + #7}}% + \fi + \@xsect{#5}} +\def\@dottedtocline#1#2#3#4#5{% + \ifnum #1>\c@tocdepth \else + \vskip \z@ \@plus.2\p@ + {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip + \parindent #2\relax\@afterindenttrue + \interlinepenalty\@M + \leavevmode + \def\numberline##1{% + \settowidth{\@tempdima}{##1}% + \addtolength{\@tempdima}{0.6em}% + \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip + \tw@numberline{##1}}% + #4\nobreak + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak + \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% + \par}% + \fi} +\endinput diff --git a/texmf/latex/putex/gbkarticle.cls b/texmf/latex/putex/gbkarticle.cls new file mode 100644 index 0000000..aaab313 --- /dev/null +++ b/texmf/latex/putex/gbkarticle.cls @@ -0,0 +1,21 @@ +%% This is file 'gbkarticle.cls' +%% +%% Copyright 2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesClass{gbkarticle}[2004/09/13 v1.1 gbLaTeX standard class] +\def\gbk@classname{gbkarticle} +\RequirePackage{chinesebasic}[2004/09/13] +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions +\LoadClass{article} +\RequirePackage{chinesenames}[2004/09/13] +\endinput diff --git a/texmf/latex/putex/gbkbook.cls b/texmf/latex/putex/gbkbook.cls new file mode 100644 index 0000000..cc0ed92 --- /dev/null +++ b/texmf/latex/putex/gbkbook.cls @@ -0,0 +1,19 @@ +%% This is file 'gbkbook.cls' +%% +%% Copyright 2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesClass{gbkbook}[2004/09/13 v1.1 gbLaTeX standard class] +\def\pu@classname{gbkbook} +\InputIfFileExists{chinesebook.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chinesebook.inc}{}} +\endinput diff --git a/texmf/latex/putex/gbkreport.cls b/texmf/latex/putex/gbkreport.cls new file mode 100644 index 0000000..44084bb --- /dev/null +++ b/texmf/latex/putex/gbkreport.cls @@ -0,0 +1,19 @@ +%% This is file 'gbkreport.cls' +%% +%% Copyright 2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesClass{gbkreport}[2004/09/13 v1.1 gbLaTeX standard class] +\def\pu@classname{gbkreport} +\InputIfFileExists{chinesereport.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chinesereport.inc}{}} +\endinput diff --git a/texmf/latex/putex/taiwan.sty b/texmf/latex/putex/taiwan.sty new file mode 100644 index 0000000..da84e47 --- /dev/null +++ b/texmf/latex/putex/taiwan.sty @@ -0,0 +1,109 @@ +%% This is file 'taiwan.sty' +%% +%% NOTE: This file is obsoleted. Do not use it for new documents. +%% +%% Copyright 1998-1999 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[1998/06/01] +\ProvidesPackage{taiwan}[1999/03/20 1.0 PULaTeX standard package] +\RequirePackage{twbase}[1998/03/20] +\RequirePackage{twnames}[1998/03/20] +\def\@tw@setref#1#2#3{% + \ifx#1\relax + \protect\G@refundefinedtrue + \nfss@text{\reset@font\bfseries ??}% + \@latex@warning{Reference `#3' on page \thepage \space + undefined}% + \else + \pu@chapcnum\expandafter#2#1\null + \fi} +\newcommand*{\twref}[1]{\expandafter\@tw@setref\csname r@#1\endcsname\@firstoftwo{#1}} +\@ifundefined{chapter}{}{% +\@ifundefined{if@mainmatter}{\newif\if@mainmatter \@mainmattertrue}{}% for report.cls +\renewcommand*{\chaptername}{³¹} +\newcommand*{\tw@chapname}{²Ä\PUXcnumber\c@chapter \chaptername} +\if@twoside + \def\ps@headings{% + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{\thepage\hfil\slshape\leftmark}% + \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth {\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \tw@chapname\ \ + \fi + \fi + ##1}}{}}% + \def\sectionmark##1{% + \markright {\MakeUppercase{% + \ifnum \c@secnumdepth >\z@ + \thesection. \ + \fi + ##1}}}} +\else + \def\ps@headings{% + \let\@oddfoot\@empty + \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markright {\MakeUppercase{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \tw@chapname\ \ + \fi + \fi + ##1}}}} +\fi +\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\tw@chapname.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}#1}% + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \else + \addcontentsline{toc}{chapter}{#1}% + \fi + \chaptermark{#1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{#2}]% + \else + \@makechapterhead{#2}% + \@afterheading + \fi} +\def\@makechapterhead#1{% + \vspace*{50\p@}% + {\parindent \z@ \raggedright \normalfont + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \Huge\bfseries \tw@chapname + \par\nobreak + \vskip 20\p@ + \fi + \fi + \interlinepenalty\@M + \Huge \bfseries #1\par\nobreak + \vskip 40\p@ + }}% +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \renewcommand\@chapapp{\appendixname}% + \renewcommand\thechapter{\@Alph\c@chapter}% + \renewcommand\tw@chapname{\appendixname \thechapter}}% +}% \@ifundefined{chapter} +\endinput diff --git a/texmf/latex/putex/twarticle.cls b/texmf/latex/putex/twarticle.cls new file mode 100644 index 0000000..6036caf --- /dev/null +++ b/texmf/latex/putex/twarticle.cls @@ -0,0 +1,21 @@ +%% This is file 'twarticle.cls' +%% +%% Copyright 1999-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesClass{twarticle}[2004/09/13 v1.1 Big5LaTeX standard class] +\def\pu@classname{twarticle} +\RequirePackage{chinesebasic}[2004/09/13] +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions +\LoadClass{article} +\RequirePackage{chinesenames}[2004/09/13] +\endinput diff --git a/texmf/latex/putex/twbook.cls b/texmf/latex/putex/twbook.cls new file mode 100644 index 0000000..26d42e2 --- /dev/null +++ b/texmf/latex/putex/twbook.cls @@ -0,0 +1,19 @@ +%% This is file 'twbook.cls' +%% +%% Copyright 1999-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesClass{twbook}[2004/09/13 v1.1 Big5LaTeX standard class] +\def\pu@classname{twbook} +\InputIfFileExists{chinesebook.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chinesebook.inc}{}} +\endinput diff --git a/texmf/latex/putex/twpkgpatch.sty b/texmf/latex/putex/twpkgpatch.sty new file mode 100644 index 0000000..9ee4908 --- /dev/null +++ b/texmf/latex/putex/twpkgpatch.sty @@ -0,0 +1,19 @@ +%% This is file 'twpkgpatch.sty' +%% +%% Copyright 1998-1999 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[1998/06/01] +\ProvidesPackage{twpkgpatch}[1999/03/20 1.0 PULaTeX standard package] +\DeclareOption{fancyvrb}{% + \let\tw@FV@UseKeyValues\FV@UseKeyValues + \def\FV@UseKeyValues{\puxXspace 1 \tw@FV@UseKeyValues}} +\ProcessOptions +\endinput diff --git a/texmf/latex/putex/twreport.cls b/texmf/latex/putex/twreport.cls new file mode 100644 index 0000000..006f62d --- /dev/null +++ b/texmf/latex/putex/twreport.cls @@ -0,0 +1,19 @@ +%% This is file 'twreport.cls' +%% +%% Copyright 1999-2004 +%% The PUTeX Project and any individual authors listed elsewhere +%% in this file. +%% This file is part of the PUTeX system. You are NOT allowed to +%% distribute a modified version of this file. +%% ---------------------------------------- +%% This system is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +%% +\NeedsTeXFormat{LaTeX2e}[2003/12/01] +\ProvidesClass{twreport}[2004/09/13 v1.1 Big5LaTeX standard class] +\def\pu@classname{twreport} +\InputIfFileExists{chinesereport.inc}{}{% + \ClassError{\pu@classname}{% + Can't load chinesereport.inc}{}} +\endinput -- 2.11.0