1 %% This is file 'taiwan.sty'
3 %% NOTE: This file is obsoleted. Do not use it for new documents.
6 %% The PUTeX Project and any individual authors listed elsewhere
8 %% This file is part of the PUTeX system. You are NOT allowed to
9 %% distribute a modified version of this file.
10 %% ----------------------------------------
11 %% This system is distributed in the hope that it will be useful,
12 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
13 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 \NeedsTeXFormat{LaTeX2e}[1998/06/01]
16 \ProvidesPackage{taiwan}[1999/03/20 1.0 PULaTeX standard package]
17 \RequirePackage{twbase}[1998/03/20]
18 \RequirePackage{twnames}[1998/03/20]
19 \def\@tw@setref#1#2#3{%
21 \protect\G@refundefinedtrue
22 \nfss@text{\reset@font\bfseries ??}%
23 \@latex@warning{Reference `#3' on page \thepage \space
26 \pu@chapcnum\expandafter#2#1\null
28 \newcommand*{\twref}[1]{\expandafter\@tw@setref\csname r@#1\endcsname\@firstoftwo{#1}}
29 \@ifundefined{chapter}{}{%
30 \@ifundefined{if@mainmatter}{\newif\if@mainmatter \@mainmattertrue}{}% for report.cls
31 \renewcommand*{\chaptername}{³¹}
32 \newcommand*{\tw@chapname}{²Ä\PUXcnumber\c@chapter \chaptername}
35 \let\@oddfoot\@empty\let\@evenfoot\@empty
36 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
37 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
40 \markboth {\MakeUppercase{%
41 \ifnum \c@secnumdepth >\m@ne
48 \markright {\MakeUppercase{%
49 \ifnum \c@secnumdepth >\z@
56 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
59 \markright {\MakeUppercase{%
60 \ifnum \c@secnumdepth >\m@ne
67 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
69 \refstepcounter{chapter}%
70 \typeout{\tw@chapname.}%
71 \addcontentsline{toc}{chapter}%
72 {\protect\numberline{\thechapter}#1}%
74 \addcontentsline{toc}{chapter}{#1}%
77 \addcontentsline{toc}{chapter}{#1}%
80 \addtocontents{lof}{\protect\addvspace{10\p@}}%
81 \addtocontents{lot}{\protect\addvspace{10\p@}}%
83 \@topnewpage[\@makechapterhead{#2}]%
85 \@makechapterhead{#2}%
88 \def\@makechapterhead#1{%
90 {\parindent \z@ \raggedright \normalfont
91 \ifnum \c@secnumdepth >\m@ne
93 \Huge\bfseries \tw@chapname
99 \Huge \bfseries #1\par\nobreak
102 \renewcommand\appendix{\par
103 \setcounter{chapter}{0}%
104 \setcounter{section}{0}%
105 \renewcommand\@chapapp{\appendixname}%
106 \renewcommand\thechapter{\@Alph\c@chapter}%
107 \renewcommand\tw@chapname{\appendixname \thechapter}}%
108 }% \@ifundefined{chapter}