
\typeout{Authors! Before beginning to work, please ftp the README file from}
\typeout{the directory /Kluwer/styles/books at ftp.std.com}
\typeout{to see if you have the current version of editedbk.sty!}
\typeout{If not, please ftp the current version. Thank-you.}
\typeout{\space\space\space\space\space\space\space\space\space}
\typeout{This version is dated December 5, 1994}
\typeout{\space\space\space\space\space\space\space\space\space}

%% THIS FILE TO BE USED WITH LATEX 2.09

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Edited Book Style                                                    %%
%% Kluwer Academic Publishers                                           %%
%%                                                                      %%
%% Prepared by Amy Hendrickson, TeXnology Inc.                          %%
%%                                                                      %%
%% Inquiries to Suzanne M. Rumsey, net address: prod@world.std.com      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% This file is to be used in conjunction with kluwerbk.sty, for
%% edited books of chapters.

%% Start your file with either
      %\documentstyle[psfonts,editedbk]{kluwerbk}  or
      %\documentstyle[editedbk]{kluwerbk}
%%
%% Documentation is in editedbk.doc.

\def\authortitlepage{\newpage
\ifodd\c@page\else\hbox to\textwidth{\hfill}\newpage\fi%
\thispagestyle{empty}
\null\vskip-6pc
\vbox to\textheight{\parskip=0pt
\hrule height 1.5pt\vskip24pt
\hyphenpenalty=10000 % No hyphenation in chapter heads
\parfillskip=0pt
\bigraggedleft
{\Huge\authortitlepagefont{\def\\ {\vskip\parskip}\titlepagetitle}

}
\normalsize
\vskip24pt
\hrule height 1.5pt
\vskip36pt
{\affilfont EDITED BY}
{\def\\ {\vskip\parskip}\parfillskip=0pt \vskip2pt
\advance \authorcount by1 
\loopcount=1
\loop\expandafter\ifnum\loopcount<\authorcount
\ifnum\loopcount=1 \vskip18pt\else
\vrule height 12pt width12pt depth0pt\vskip12pt\fi
{\authorfont\csname theauthor\the\loopcount\endcsname}\vskip3pt
{\affilfont\csname theaffil\the\loopcount\endcsname}\vskip6pt
{\affilfont\csname theloc\the\loopcount\endcsname}
\vskip12pt \global\advance\loopcount by1 \repeat}
\vfill
\theimprint
}
\newpage\thispagestyle{empty}\null\newpage}


\def\TOCauthor#1{\def\thetocauthor{#1}}
\let\TOCauthors\TOCauthor
\def\thetocauthor{Please enter TOCauthor! See documentation or
edbksamp.tex for example.}

\newbox\articlebox

{\obeylines
\gdef\articleauthor{\bgroup\obeylines\xarticleauthor}
\gdef\xarticleauthor#1{\global\setbox\articlebox=\vbox\bgroup%
{\def\\ {\vskip3pt\noindent\hfill}\parskip=4pt%
\parfillskip=0pt\obeylines\everypar={\hskip0pt plus 1fil\relax}%
\sectionfont #1

}}


\gdef\articleaffil{\bgroup\obeylines\def\\
{\vskip12pt}%
\xarticleaffil}
\long\gdef\xarticleaffil#1{\vskip12pt%
{\parskip=1pt%
\parfillskip=0pt\obeylines\everypar={\hskip0pt plus 1fil\relax}%
\relax\it#1

}
\egroup\egroup\egroup}}

\def\abstract{\let\chapter\savechapter\section*{ABSTRACT}\small}
\def\endabstract{}

%%% Code for contributorpage ==>
\def\keepblankline{\futurelet\next\lookatline}

{\obeylines
\gdef\lookatline{\ifx\next\keepblankline%
\let^^M\seewhatisnext%
\else%
\let^^M=\keepblankline%
\vskip1sp\let\go\relax\fi\go}

\gdef\seewhatisnext{\futurelet\next\lookforend}
\gdef\lookforend{\ifx\next\end\let\go\relax\else\let\go\xlookatline\fi\go}

\gdef\xlookatline{\let^^M=\keepblankline%
\iffirstcontrib\global\firstcontribfalse%
\let\go\firstblankline\else%
\goodbreak\vskip\baselineskip%
\let\go\everyblankline\fi\go}
}


\newif\iffirstcontrib
%\firstcontribtrue
\newif\ifnothinghere

{\obeylines
\gdef\everyblankline#1^^M{\egroup\ifnothinghere\global\nothingherefalse%
\else\vbox{\unvbox0}\fi%
\global\setbox0=\vbox\bgroup\noindent{\bf #1}\vskip1pt}%

\gdef\firstblankline#1^^M{%
\def\one{#1}%
\ifx\one\empty\relax\global\nothingheretrue%
\bgroup\else%
\global\setbox0=\vbox\bgroup\noindent{\bf #1}\vskip1pt%
\fi\def\firstblankline{\everyblankline}}

\gdef\contributorpage{\obeylines\xcontributorpage}

\long\gdef\xcontributorpage{\newpage
\bgroup
\thispagestyle{empty}
\markboth{Contributors}{Contributors}
\twocolumn[
\vbox to 7.5pc{\hrule height 1.5pt
\hyphenpenalty=10000 % No hyphenation in chapter heads
\vskip12pt\vskip-\parskip
\def\\ {\vskip-\parskip}\parfillskip=0pt
\LARGE\bigraggedleft
\chaptitle\uppercase{CONTRIBUTORS}\vskip1sp\vfill}]\small%
\parskip=0pt%
\obeylines%
\let^^M=\keepblankline%
\firstblankline
\global\everypar={\bf\global\everypar={\rm\global\everypar={}}}%
}

\gdef\endcontributorpage{\egroup\vskip1sp\vbox{\unvbox0}%
\egroup\onecolumn\newpage\markboth{}{}}
}

%%% <== End code for contributorpage

% before LCR Modification --> no use of \small in either location

%%% BEGIN LCR MODIFICATION %%%

\def\references{\section*{REFERENCES}
 \addcontentsline{toc}{section}{\protect
 \numberline{REFERENCES\string\hss}}
 \bgroup\list
 {{\small [\arabic{enumi}]}}{\settowidth\labelwidth{[99]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}\small}
 \def\newblock{ \hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax\frenchspacing}

%%% END LCR MODIFICATION %%%

\def\endreferences{\endlist\vskip1sp\egroup\parindent=0pt\relax}

% before LCR Modification --> no use of \small in either location

%%% BEGIN LCR MODIFICATION %%%

\def\thebibliography#1{\section*{REFERENCES}\small \list 
 {{\small[\arabic{enumi}]}}{\settowidth\labelwidth{[99]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}\small}
 \def\newblock{ \hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax\frenchspacing}

%%% END LCR MODIFICATION %%%

\def\endthebibliography{\endlist\vskip1sp\parindent=0pt\relax}

\def\thesection {\ifappendix\thechapter.\fi\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}

\def\thetable{\ifappendix\thechapter.\fi\@arabic\c@table}
\def\thefigure{\ifappendix\thechapter.\fi\@arabic\c@figure}



\def\xnumberline#1{\hbox to1.1in{#1\hfil}}

\newcount\c@appcounter

\let\savechapter\chapter
\let\savesection\section

\def\appendix{\let\chapter\xappendix\relax}

\def\appsection{\@startsection {section}{1}{\z@}{1sp plus 2pt}{1sp}
{\Large\sectionfont\gdef\section{\savesection}}}



\def\xappendix#1{\let\section\appsection%
\ifappendix\else\setcounter{appcounter}{0}\fi
\global\appendixtrue
\global\advance \c@appcounter by1
\setcounter{section}{0}
\def\thechapter{\Alph{appcounter}}
\edef\@currentlabel{\thechapter}
{\def\\ { }\xdef\apptitle{#1}}
\addcontentsline{toc}{section}{\protect
\xnumberline{APPENDIX \thechapter\string\hss}{\apptitle\string\hfill}}
{\def\\ { }
\vskip40pt
\setcounter{section}{0}
\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\vbox to 7.5pc{%
{\chaptitle \rightline{APPENDIX \thechapter}}
\vskip8pt
\hrule height 1.5pt
\hyphenpenalty=10000 % No hyphenation in chapter heads
\vskip12pt\vskip-\parskip
\def\\ {\vskip-\parskip}\parfillskip=0pt
\LARGE\bigraggedleft
\sectionfont\uppercase{#1}\vskip1sp\vfill}%
\ignorespaces}\nointerlineskip}

\def\acks{\section*{Acknowledgements}}

%%%



\let\articletitle\chapter


%% new==>
\def\bigraggedleft{\leftskip0pt plus1fil\relax}

\newif\ifsettoroman

\gdef\@chapter[#1]#2{\global\newchaptrue
\global\appendixfalse
\def\thechapter{\arabic{chapter}}
 \refstepcounter{chapter}
 \typeout{\@chapapp\space\thechapter.}
{\def\\ { }
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}%
\string\uppercase{#1}\string\newline\space{\string\it\space\thetocauthor}}
 \chaptermark{#1}%% fix made Aug. 30
 \addcontentsline{lof}{listenv}{{\bf\@chapapp\ \thechapter}}
 \addcontentsline{lot}{listenv}{{\bf\@chapapp\ \thechapter}}
}% end curly to delimit \def\\ { }
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}] 
 \else \@makechapterhead{#2}
 \@afterheading \fi }


% before LCR modification
% only next line modified ---->
%\def\@makechapterhead#1{\null\vskip-5pc  <===
%\setbox0=\vbox{\hbox to\textwidth{\hfill\chapnumber\thechapter}
%\hyphenpenalty=10000 % No hyphenation in chapter heads
%\vskip8pt
%\hrule height 1.5pt
%\vskip12pt\vskip-\parskip
%\def\\ {\vskip-\parskip}\parfillskip=0pt
%\bigraggedleft
%\LARGE\chaptitle\uppercase{\def\\ {\vskip-\parskip}#1}\vskip1sp
%\vskip.5\baselineskip
%\vbox {\unvbox\articlebox}%
%}
%\ifdim\ht0>17pc
%\unvbox0
%\else
%\vbox to17pc{\unvbox0\vfill}\fi
%\ifnum\c@chapter=1
%\ifappendix\else
%\setcounter{page}{1}
%\ifsettoroman\else\global\settoromantrue
%\pagenumbering{arabic}\fi\fi\fi
%\gdef\thepage{\@arabic\c@page}}

%%% BEGIN LCR MODIFICATION %%%

\def\@makechapterhead#1{\null\vskip-2pc
\setbox0=\vbox{\hbox to\textwidth{\hfill\chapnumber\thechapter}
\hyphenpenalty=10000 % No hyphenation in chapter heads
\vskip8pt
\hrule height 1.5pt
\vskip12pt\vskip-\parskip
\def\\ {\vskip-\parskip}\parfillskip=0pt
\bigraggedleft
\LARGE\chaptitle\uppercase{\def\\ {\vskip-\parskip}#1}\vskip1sp
\vskip.5\baselineskip
\vbox {\unvbox\articlebox}%
}
\ifdim\ht0>17pc
\unvbox0
\else
\vbox to17pc{\unvbox0\vfill}\fi
\ifnum\c@chapter=1
\ifappendix\else
\setcounter{page}{1}
\ifsettoroman\else\global\settoromantrue
\pagenumbering{arabic}\fi\fi\fi
\gdef\thepage{\@arabic\c@page}}

%%% END LCR MODIFICATION %%%


\let\shortenedtitle\chaptermark

\newcount\thankscounter
\def\thankssym{\ifcase\thankscounter\else *\else **\else\dagger\else
\ddagger\fi}



%% Default values, for complete book.
\title{Edited Book Title}
\author{Editor or Editors of Book}
\affil{Editor Affiliation}
\location{Affiliation Location}
\advance\authorcount by-1 \relax


\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty}
\null\vskip-6pc
\hrule height 1.5pt\vskip24pt\vskip-\parskip
{\hyphenpenalty=10000 % No hyphenation in chapter heads
\parfillskip=0pt
\bigraggedleft
\Huge\booktitle{\def\\ {\vskip\parskip}\titlepagetitle}\newpage
\thispagestyle{empty}
\null\newpage}}


\endinput

%% Change Log

%% Nov 30, 1994
%% Made authortitlepage start on page i, following page blank.

%% Nov 21, 1994
%% Changed \parfillskip=0pt in \authortitlepage so that \\ will work
%% right.

