%<*head>
%
% This class file (c) Kluwer Academic Publishers.
% You are free to use this class file as you see fit, provided 
% that you do not make changes to the included macro files. 
% If you DO make changes, you are required to rename the files.
%        
\def\filedate{2000/04/29}
\def\kluclassname{kluwer}
\def\kluclassversion{1.3} % option kaplist turned on for 1.2
\def\klujnlname{none}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{kluwer}[\filedate\space \kluclassversion\space
    Kluwer base document class]
\newcommand\@ptsize{}
\newcommand\@pttensize{1}
\newif\if@restonecol
\newif\if@openright
%\DeclareOption{noid}{\PassOptionsToPackage{\CurrentOption}{kluedit}}
%\DeclareOption{namedreferences}{\PassOptionsToPackage{\CurrentOption}{kluref}}
%\DeclareOption{numreferences}{\PassOptionsToPackage{\CurrentOption}{kluref}}
%\DeclareOption{openbib}{\PassOptionsToPackage{\CurrentOption}{kluref}}
%\DeclareOption{thms}{\PassOptionsToPackage{\CurrentOption}{klumath}}
%\DeclareOption{mathsec}{\PassOptionsToPackage{\CurrentOption}{klumath}}
%\DeclareOption{fleqn}{\PassOptionsToPackage{\CurrentOption}{klumath}}
%\DeclareOption{leqno}{\PassOptionsToPackage{\CurrentOption}{klumath}}
%\DeclareOption{titlepage}{\PassOptionsToPackage{\CurrentOption}{klulist}}
%\DeclareOption{margspec}{\PassOptionsToPackage{\CurrentOption}{klulist}}
%\DeclareOption{klusym}{\PassOptionsToPackage{\CurrentOption}{klumac}}
% not specified in this file: leave handling to inserted package

\DeclareOption{a4paper}
   {\setlength\paperheight {297mm}%
    \setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}
   {\setlength\paperheight {210mm}%
    \setlength\paperwidth  {148mm}}
\DeclareOption{b5paper}
   {\setlength\paperheight {250mm}%
    \setlength\paperwidth  {176mm}}
\DeclareOption{letterpaper}
   {\setlength\paperheight {11in}%
    \setlength\paperwidth  {8.5in}}
\DeclareOption{legalpaper}
   {\setlength\paperheight {14in}%
    \setlength\paperwidth  {8.5in}}
\DeclareOption{executivepaper}
   {\setlength\paperheight {10.5in}%
    \setlength\paperwidth  {7.25in}}
\DeclareOption{landscape}
   {\setlength\@tempdima   {\paperheight}%                        
    \setlength\paperheight {\paperwidth}%
    \setlength\paperwidth  {\@tempdima}}
\DeclareOption{9pt}{\renewcommand\@pttensize{}\renewcommand\@ptsize{9}}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
\DeclareOption{openright}{\@openrighttrue}                       
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
\ExecuteOptions{a4paper,11pt,twoside,onecolumn,final,openright}
%\renewcommand{\encodingdefault}{T1} % handled by klups.sty
%</head>

% here, docstrip reads head part of Kluwer modules, with options

%<*neck>
\ProcessOptions % including options for modules
%</neck>

% here, docstrip reads neck part of Kluwer modules, with loading of
% third-party packages and after that the main parts

%<*tail>

% klulist
\@kaplisttrue

% klusec
\AtBeginDocument{\let\sectioncmd\section}               
\AtBeginDocument{\let\imarkboth\@gobbletwo}

% kluopen
\def\@date{\vskip \afterdateskip } % no default dates

% klufloa
\renewcommand{\fnum@figure}{{\itshape\figurename~\thefigure\figtabdot\/}}
\renewcommand{\thetable}{\Roman{table}}
\indentedcaptions

\def\Uppercase#1{#1}
\setlength\textheight{559pt}
\setlength\textwidth{28pc}
\setlength\marginparwidth{0pt}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand\baselinestretch{}
\@lowpenalty 51
\@medpenalty 151
\@highpenalty 301
\@beginparpenalty -\@lowpenalty
\@endparpenalty -\@lowpenalty
\@itempenalty -\@lowpenalty
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\providecommand{\cal}{\protect\pcal}
\newcommand{\pcal}{\@fontswitch{\relax}{\mathcal}}
\providecommand{\mit}{\protect\pmit}
\newcommand{\pmit}{\@fontswitch{\relax}{\mathnormal}}
\setlength\tabbingsep{\labelsep}
\clubpenalty=10000
\widowpenalty=10000
%%%%%%%                                            
\def\kapmathindent{14pt}
\pagestyle{headings}
\pagenumbering{arabic}
\frenchspacing
\endinput
%</tail>
%<*other>
%% 
%% End of file `kluwnew.dtx'.
                                        
% contents of kluwnew.ins:
\input docstrip
\generate{\file{kluwnew.cls}{
  \from{kluwnew.dtx}{head}
  \from{klumac.sty}{main}
  \from{klu11.clo}{main}
  \from{klulist.sty}{main}
  \from{kluopen.sty}{main}
  \from{kluedit.sty}{main}
  \from{klutab.sty}{main}
  \from{klufloa.sty}{main}
  \from{klunote.sty}{main}
  \from{kluref.sty}{main}
  \from{klumath.sty}{main}
  \from{klusec.sty}{main}
  \from{kluwnew.dtx}{tail}}}
\endbatchfile
\endinput
%</other>
