1 %% This is file `sunil.cls', modified version of `Book.cls'
3 %%% Created by Shashi Kumar / ITC [August 2008]
6 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
9 Standard LaTeX document class]
15 \newif\if@mainmatter \@mainmattertrue
16 \if@compatibility\else
17 \DeclareOption{a4paper}
18 {\setlength\paperheight {297mm}%
19 \setlength\paperwidth {210mm}}
20 \DeclareOption{a5paper}
21 {\setlength\paperheight {210mm}%
22 \setlength\paperwidth {148mm}}
23 \DeclareOption{b5paper}
24 {\setlength\paperheight {250mm}%
25 \setlength\paperwidth {176mm}}
26 \DeclareOption{letterpaper}
27 {\setlength\paperheight {11in}%
28 \setlength\paperwidth {8.5in}}
29 \DeclareOption{legalpaper}
30 {\setlength\paperheight {14in}%
31 \setlength\paperwidth {8.5in}}
32 \DeclareOption{executivepaper}
33 {\setlength\paperheight {10.5in}%
34 \setlength\paperwidth {7.25in}}
35 \DeclareOption{landscape}
36 {\setlength\@tempdima {\paperheight}%
37 \setlength\paperheight {\paperwidth}%
38 \setlength\paperwidth {\@tempdima}}
41 \renewcommand\@ptsize{0}
43 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
45 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
46 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
47 \if@compatibility\else
48 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
50 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
51 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
52 \if@compatibility\else
53 \DeclareOption{final}{\setlength\overfullrule{0pt}}
55 \DeclareOption{titlepage}{\@titlepagetrue}
56 \if@compatibility\else
57 \DeclareOption{notitlepage}{\@titlepagefalse}
62 \DeclareOption{openright}{\@openrighttrue}
63 \DeclareOption{openany}{\@openrightfalse}
65 \if@compatibility\else
66 \DeclareOption{onecolumn}{\@twocolumnfalse}
68 \DeclareOption{twocolumn}{\@twocolumntrue}
69 \DeclareOption{leqno}{\input{leqno.clo}}
70 \DeclareOption{fleqn}{\input{fleqn.clo}}
71 \DeclareOption{openbib}{%
73 \renewcommand\@openbib@code{%
74 \advance\leftmargin\bibindent
75 \itemindent -\bibindent
76 \listparindent \itemindent
79 \renewcommand\newblock{\par}}%
81 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
83 \DeclareOption{numbysec}{\@numbysectrue}
84 \newif\if@numberinsequence
85 \DeclareOption{numberinsequence}{\@numberinsequencetrue}
86 \newif\if@nocaptionbreak
87 \DeclareOption{NoCaptionBreak}{\@nocaptionbreaktrue}
89 \DeclareOption{sevenbyten}{\@sevenbytentrue}
91 \DeclareOption{cip}{\@ciptrue}
93 \DeclareOption{times}{\@timestrue}
95 \DeclareOption{chapnumonly}{\@chapnumonlytrue}
96 \newif\if@ChapterResetsPage
97 \DeclareOption{ChapterResetsPage}{\@ChapterResetsPagetrue}
99 \DeclareOption{ChapterTOCs}{\@ChapterTOCstrue}
101 \DeclareOption{EOCRefs}{\@EOCRefstrue}%
102 \newif\if@SuperscriptCites
103 \DeclareOption{SuperscriptCites}{\@SuperscriptCitestrue}%
104 \newif\if@UnnumberedReferences
105 \DeclareOption{UnnumberedReferences}{\@UnnumberedReferencestrue}%
107 \DeclareOption{pdf}{\@pdftrue}
108 \DeclareOption{sunil1}{\@sunilatrue}
110 \DeclareOption{sunil2}{\@sunilbtrue}
112 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
115 \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
122 \DeclareFontFamily{T1}{helvetica}{}%
123 \DeclareFontShape{T1}{helvetica}{m}{n}{<->s*[\helv@scale]phvr8t}{}%
124 \DeclareFontShape{T1}{helvetica}{m}{it}{<->s*[\helv@scale]phvro8t}{}%
125 \DeclareFontShape{T1}{helvetica}{m}{sc}{<->s*[\helv@scale]phvrc8t}{}%
126 \DeclareFontShape{T1}{helvetica}{b}{n}{<->s*[\helv@scale]phvb8t}{}%
127 \DeclareFontShape{T1}{helvetica}{b}{it}{<->s*[\helv@scale]phvbo8t}{}%
128 \DeclareFontShape{T1}{helvetica}{m}{sl}{<->s*[\helv@scale]phvro8t}{}%
129 \DeclareFontShape{T1}{helvetica}{b}{sc}{<->s*[\helv@scale]phvbc8t}{}%
130 \DeclareFontShape{T1}{helvetica}{b}{sl}{<->s*[\helv@scale]phvbo8t}{}%
131 \DeclareFontShape{T1}{helvetica}{bx}{n}{<->s*[\helv@scale]phvb8t}{}%
132 \DeclareFontShape{T1}{helvetica}{bx}{it}{<->s*[\helv@scale]phvbo8t}{}%
133 \DeclareFontShape{T1}{helvetica}{bx}{sc}{<->s*[\helv@scale]phvbc8t}{}%
134 \DeclareFontShape{T1}{helvetica}{bx}{sl}{<->ssub * helvetica/b/it}{}%
136 \DeclareFontFamily{OT1}{helvetica}{}%
137 \DeclareFontShape{OT1}{helvetica}{m}{n}{<->s*[\helv@scale]phvr7t}{}%
138 \DeclareFontShape{OT1}{helvetica}{m}{it}{<->s*[\helv@scale]phvro7t}{}%
139 \DeclareFontShape{OT1}{helvetica}{m}{sc}{<->s*[\helv@scale]phvrc7t}{}%
140 \DeclareFontShape{OT1}{helvetica}{b}{n}{<->s*[\helv@scale]phvb7t}{}%
141 \DeclareFontShape{OT1}{helvetica}{b}{it}{<->s*[\helv@scale]phvbo7t}{}%
142 \DeclareFontShape{OT1}{helvetica}{m}{sl}{<->s*[\helv@scale]phvro7t}{}%
143 \DeclareFontShape{OT1}{helvetica}{b}{sc}{<->s*[\helv@scale]phvbc8t}{}%
144 \DeclareFontShape{OT1}{helvetica}{b}{sl}{<->s*[\helv@scale]phvbo7t}{}%
145 \DeclareFontShape{OT1}{helvetica}{bx}{n}{<->s*[\helv@scale]phvb7t}{}%
146 \DeclareFontShape{OT1}{helvetica}{bx}{it}{<->s*[\helv@scale]phvbo7t}{}%
147 \DeclareFontShape{OT1}{helvetica}{bx}{sc}{<->s*[\helv@scale]phvbc8t}{}%
148 \DeclareFontShape{OT1}{helvetica}{bx}{sl}{<->s*[\helv@scale]phvbo7t}{}%
150 %%%%%%%%%%%%%%%%%%%%%
153 \input{bk1\@ptsize.clo}
154 \setlength\lineskip{1\p@}
155 \setlength\normallineskip{1\p@}
156 \renewcommand\baselinestretch{}
157 \setlength\parskip{0\p@ \@plus \p@}
161 \@beginparpenalty -\@lowpenalty
162 \@endparpenalty -\@lowpenalty
163 \@itempenalty -\@lowpenalty
165 \clubpenalty=0 % 'Club line' at bottom of page.
166 \widowpenalty=10000 % 'Widow line' at top of page.
167 \setcounter{topnumber}{2}
168 \renewcommand\topfraction{.7}
169 \setcounter{bottomnumber}{1}
170 \renewcommand\bottomfraction{.3}
171 \setcounter{totalnumber}{3}
172 \renewcommand\textfraction{.2}
173 \renewcommand\floatpagefraction{.5}
174 \setcounter{dbltopnumber}{2}
175 \renewcommand\dbltopfraction{.7}
176 \renewcommand\dblfloatpagefraction{.5}
178 % ****************************************
180 % ****************************************
182 % All margin dimensions measured from a point one inch from top and side
187 \oddsidemargin 6pc %5pc
188 \evensidemargin 5.7pc %5pc
199 \newdimen\normaltextheight
203 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Parameter Initializaton %%%%%%%%%%%%%%%%%%%%%%%%%%
209 \setlength\trimheight{9in}
210 \setlength\trimwidth{6in}
214 \textheight = 45\baselineskip
215 %\advance\textheight by \topskip
216 \addtolength\textheight{3pt}
218 \addtolength\textwidth{.5pt}
220 \oddsidemargin1.1875in
221 \evensidemargin1.1875in
227 \let\normaltextheight\textheight
230 % \advance\textheight by \topskip
240 \let\normaltextheight\textheight
242 \textheight = 43\baselineskip
243 %\advance\textheight by \topskip
244 \addtolength\textheight{3pt}
246 \addtolength\textwidth{.5pt}
248 \oddsidemargin1.1875in
249 \evensidemargin1.1875in
255 \let\normaltextheight\textheight
265 \skip\footins 12pt plus 3pt minus 1.5pt
268 %%%% Trim marks %%%%%%%%%%%
273 \def\top@cornermarks{%
275 \vbox to 0\p@{\vskip-\vtrimtop\llap{\copy\ul@box}\vss}%
276 \vbox to 0\p@{\vskip-\vtrimtop\rlap{\hskip\textwidth\hskip2\htrim\copy\ur@box}\vss}%
277 \vbox to 0\p@{\vskip\textheight\vskip\vtrimbot\llap{\copy\ll@box}\vss}%
278 \vbox to 0\p@{\vskip\textheight\vskip\vtrimbot\rlap{\hskip\textwidth\hskip2\htrim\copy\lr@box}\vss}%
280 \def\make@cornermarks{%
281 \sbox\ul@box{\rule{18\p@}{.25\p@}\hskip8\p@\hbox to.25\p@{\vbox to26\p@{\noindent\rule{.25\p@}{18\p@}}}}%
282 \sbox\ur@box{\hbox to.25\p@{\vbox to26\p@{\noindent\rule{.25\p@}{18\p@}}}\hskip8\p@\rule{18\p@}{.25\p@}}%
283 \sbox\ll@box{\rule{18\p@}{.25\p@}\hskip8\p@\lower34\p@\hbox to.25\p@{\vbox to26\p@{\noindent\rule{.25\p@}{18\p@}}}}%
284 \sbox\lr@box{\lower34\p@\hbox to.25\p@{\vbox to26\p@{\noindent\rule{.25\p@}{18\p@}}}\hskip8\p@\rule{18\p@}{.25\p@}}}
286 %%%%%%%%%%%%%%%%%%%% End Trim Marks %%%%%%%%%%%%
289 \def\ps@plain{\let\@mkboth\@gobbletwo
290 \let\@oddhead\top@cornermarks%\@empty
291 \def\@oddfoot{\reset@font\hfil\thepage
292 \hfil}\let\@evenhead\@empty\let\@evenfoot\@oddfoot}
298 {\@the@page\RunningHeadFont
304 \hfil{\RunningHeadFont
310 \def\@the@page{{\PageNumFont\thepage}}
315 \let\@mkboth\@gobbletwo
317 \let\@evenhead\@empty
319 \def\@oddfoot{\@cip\hfil}%
320 \def\@evenfoot{\@cip\hfil}%
323 \let\@evenfoot\@empty
324 \let\@evenhead\even@head
325 \let\@oddhead\odd@head
329 \def\ps@headings{\let\@mkboth\@gobbletwo%
331 \let\@evenhead\@empty
333 \def\@oddfoot{\@cip\hfil}%
334 \def\@evenfoot{\@cip\hfil}%
337 \let\@evenfoot\@empty
338 \let\@evenhead\even@head
339 \let\@oddhead\odd@head
344 \let\@oddfoot\@empty\let\@evenfoot\@empty
345 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
346 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
347 \let\@mkboth\@gobbletwo
348 \let\chaptermark\@gobble
349 \let\sectionmark\@gobble
352 \let\@mkboth\@gobbletwo
354 \let\@evenhead\@empty
356 \def\@oddfoot{\@cip\hfil}%
357 \def\@evenfoot{\@cip\hfil}%
360 \let\@oddhead\top@cornermarks
361 \let\@evenhead\top@cornermarks
363 \let\@evenfoot\@empty
367 \let\@mkboth\@gobbletwo
369 \let\@evenhead\@empty
371 \def\@oddfoot{\@cip\hfil}%
372 \def\@evenfoot{\@cip\hfil}%
374 \let\@oddhead\top@cornermarks
379 \textwidth\@ciprulewidth
381 \if@cip\rule{\@ciprulewidth}{.25pt}\par
382 \hbox{\vbox{\noindent\copy\@cipboxa\par\noindent\copy\@cipboxb}}\fi}}
384 \let\@evenhead\top@cornermarks%\odd@head
385 \let\@evenfoot\@oddfoot
388 \newcommand\HeadingsBookChapter{%
389 \def\chaptermark##1{%
392 \def\sectionmark##1{}}
393 \def\HeadingsChapterSection{%
394 \def\chaptermark##1{%
397 \def\sectionmark##1{%
400 \def\pdfon{\@pdftrue}
401 \def\pdfoff{\@pdffalse}
403 \def\@cip{{\fontsize{6\p@}{8\p@}\selectfont\copyright 2001 by CRC Press LLC}}
407 \newdimen\@ciprulewidth
409 \sbox\@cipboxa{\fontsize{6\p@}{8\p@}\selectfont #1}%
410 \sbox\@cipboxb{\fontsize{6\p@}{8\p@}\selectfont #2}%
411 \@ciprulewidth\wd\@cipboxa
412 \ifnum\@ciprulewidth<\wd\@cipboxb\@ciprulewidth\wd\@cipboxb\fi}%
417 \@cip{\rule{0pt}{9pt}0-8493-0052-5/00/\$0.00+\$.50}%
418 {\copyright\ \ 2001 by CRC Press LLC}}%
421 \newcommand\maketitle{\begin{titlepage}%
422 \let\footnotesize\small
423 \let\footnoterule\relax
424 \let \footnote \thanks
425 {\parindent \z@ \raggedright \baselineskip \z@ \lineskip \z@ \parskip \z@
428 {\baselineskip 10bp\lineskip 10bp\NameFont\uppercase{\@author}\par}
430 \AffiliationFont \@affiliation
434 {\baselineskip 24bp\lineskip 24bp\TitlePageTitleFont\@title\par}}}
438 \setcounter{footnote}{0}%
439 \global\let\thanks\relax
440 \global\let\maketitle\relax
441 \global\let\@thanks\@empty
442 \global\let\@author\@empty
443 \global\let\@date\@empty
444 % \global\let\@title\@empty
445 \global\let\title\relax
446 \global\let\author\relax
447 \global\let\date\relax
448 \global\let\and\relax
451 \newcommand\maketitle{\par
453 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
454 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
455 \long\def\@makefntext##1{\parindent 1em\noindent
457 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
459 \ifnum \col@number=\@ne
462 \twocolumn[\@maketitle]%
466 \global\@topnum\z@ % Prevents figures from going at top of page.
469 \thispagestyle{empty}\@thanks
471 \setcounter{footnote}{0}%
472 \global\let\thanks\relax
473 \global\let\maketitle\relax
474 \global\let\@maketitle\relax
475 \global\let\@thanks\@empty
476 \global\let\@author\@empty
477 \global\let\@date\@empty
478 \global\let\@title\@empty
479 \global\let\title\relax
480 \global\let\author\relax
481 \global\let\date\relax
482 \global\let\and\relax
488 {\parindent \z@ \raggedright \baselineskip \z@ \lineskip \z@ \parskip \z@
491 {\baselineskip 10bp\lineskip 10bp\NameFont\uppercase{\@author}\par}
493 \AffiliationFont \@affiliation
497 {\baselineskip 24bp\lineskip 24bp\TitlePageTitleFont\@title\par}}}
502 %%%%%%%%%%%%%% Font Defined %%%%%%%%%%%%%%%%%
508 \newcommand\SectionHeadFont{\fontsize{12}{14}\bfseries\selectfont}
509 \newcommand\SubsectionHeadFont{\fontsize{11}{13}\bfseries\selectfont}
510 \newcommand\SubsubsectionHeadFont{\fontsize{10}{12}\bfseries\selectfont}
511 \newcommand\PageNumFont{\fontsize{10}{12}\selectfont}
512 \newcommand\ChapNumFont{\fontsize{24}{24}\slshape\bfseries\selectfont}
513 \newcommand\ChapTitleFont{\fontsize{18}{20}\slshape\bfseries\selectfont}
514 \newcommand\FMHeadFont{\fontsize{18}{20}\slshape\bfseries\selectfont}
515 \newcommand\RunningHeadFont{\fontsize{10}{12}\itshape\selectfont}
516 \newcommand\NameFont{\fontsize{10}{12}\itshape\selectfont}
517 \newcommand\AffiliationFont{\fontsize{8}{10}\selectfont}
518 \newcommand\TitlePageTitleFont{\fontsize{24}{28}\slshape\bfseries\selectfont}
519 \newcommand\FigCapFont{\fontsize{10}{12}\bfseries\selectfont}
520 \newcommand\TableColHeadFont{\fontsize{10}{12}\bfseries\selectfont}
521 \newcommand\TableTitleFont{\fontsize{10}{12}\selectfont}
522 \newcommand\TableNumberFont{\fontsize{11}{13}\bfseries\selectfont}
523 \newcommand\TableBodyFont{\fontsize{9}{11}\bfseries\selectfont}
524 \newcommand\CAPlusOneFont{\fontsize{10}{12}\bfseries\selectfont}
525 \newcommand\CAAPlusOneFont{\fontsize{10}{12}\itshape\selectfont}
526 \newcommand\tocfont{\fontsize{10}{12}\selectfont}
527 \newcommand\extraFont{\fontsize{24}{28}\selectfont}
528 \newcommand\VfFont{\fontsize{10.5}{12.5}\selectfont}
531 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
534 \newcommand*\chaptermark[1]{}
535 \setcounter{secnumdepth}{3}
537 \newcounter {chapter}
538 \newcounter {section}[chapter]
539 \newcounter {subsection}[section]
540 \newcounter {subsubsection}[subsection]
541 \newcounter {paragraph}[subsubsection]
542 \newcounter {subparagraph}[paragraph]
543 \renewcommand \thepart {\@Roman\c@part}
544 \renewcommand \thechapter {\@arabic\c@chapter}
545 \renewcommand \thesection {\thechapter.\@arabic\c@section}
546 \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
547 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
548 \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
549 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
550 \newcommand\@chapapp{\chaptername}
551 \newcommand\frontmatter{%
554 \pagenumbering{roman}}
555 \newcommand\mainmatter{%
558 \pagenumbering{arabic}}
559 \newcommand\backmatter{%
566 \newcommand\part{\make@cornermarks%
572 \thispagestyle{plain}%
580 \secdef\@part\@spart}
583 \ifnum \c@secnumdepth >-2\relax
584 \refstepcounter{part}%
585 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
587 \addcontentsline{toc}{part}{#1}%
591 \interlinepenalty \@M
593 \ifnum \c@secnumdepth >-2\relax
594 \huge\bfseries \partname\nobreakspace\thepart
598 \Huge \bfseries #2\par}%
602 \interlinepenalty \@M
604 \Huge \bfseries #1\par}%
606 \def\@endpart{\vfil\newpage
610 \thispagestyle{empty}%
620 \def\secnumwidth{21pt}\def\subsecnumwidth{30pt}\def\ssubsecnumwidth{36pt}\fi
621 \long\def\@trplarg#1{\@ifnextchar[{\@xtrplarg{#1}}{\@ztrplarg{#1}}}
622 \long\def\@xtrplarg#1[#2]{\@ifnextchar[{#1[#2]}{\@ytrplarg{#1}[{#2}]}}
623 \long\def\@ytrplarg#1[#2]#3{#1[{#2}][{#2}]{#3}}
624 \long\def\@ztrplarg#1#2{#1[{#2}][{#2}]{#2}}
627 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
630 \if@ChapterTOCs\if@filesw\immediate\closeout\@chaptoc\fi\fi
631 \pagestyle{headings}%
632 \thispagestyle{folio}%
633 \if@ChapterResetsPage\global\c@page\@ne\fi
635 \gdef\chapterauthor{\@ca}%
636 \gdef\endchapterauthors{\end@cas}%
638 % \secdef\@chapter\@schapter
639 \@ifstar{\@schapter}{\@trplarg{\@chapter}}}
642 \def\@chapter[#1][#2]#3{%
643 \ifnum\c@secnumdepth>\m@ne
645 \refstepcounter{chapter}%
646 \typeout{\@chapapp\space\thechapter.}%
647 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
649 \addcontentsline{toc}{chapter}{#1}\fi
651 \addcontentsline{toc}{chapter}{#1}\fi
654 \addtocontents{lof}{\protect\addvspace{10\p@}}%
655 \addtocontents{lot}{\protect\addvspace{10\p@}}%
657 \@topnewpage[\@makechapterhead{#3}]%
659 \@makechapterhead{#3}%
661 \if@ChapterTOCs\if@filesw\immediate\openout\@chaptoc\thechapter.toc\fi\fi
663 \def\@makechapterhead#1{%
664 {\parindent \z@ \raggedright \baselineskip \z@ \lineskip \z@ \parskip \z@
675 {\baselineskip 20\p@\lineskip 20\p@\ChapTitleFont #1\par}%
682 \def\theequation{\thechapter.\arabic{equation}}}%
685 \def\@schapter#1{\if@twocolumn
686 \@topnewpage[\@makeschapterhead{#1}]%
688 \@makeschapterhead{#1}%
692 \def\@makeschapterhead#1{%
693 {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
700 \def\theequation{\thechapter.\arabic{equation}}}
702 \def\@startsection#1#2#3#4#5#6{%
703 \if@noskipsec\leavevmode\fi
707 \ifdim \@tempskipa <\z@
708 \@tempskipa -\@tempskipa \@afterindentfalse
713 \addpenalty\@secpenalty\addvspace\@tempskipa
716 {\@ssect{#1}{#3}{#4}{#5}{#6}}%
717 {\@trplarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
718 \def\@ssect#1#2#3#4#5#6{%
720 \ifdim \@tempskipa>\z@
723 \@hangfrom{\hskip #2}%
724 \interlinepenalty \@M #6\@@par}%
726 \csname #1mark\endcsname{#6}%
728 \def\@svsechd{#5{\hskip #2\relax #6}\csname #1mark\endcsname{#6}}%
731 \def\@sect#1#2#3#4#5#6[#7][#8]#9{%
732 \ifnum #2>\c@secnumdepth
736 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
739 \ifdim \@tempskipa>\z@
742 \@hangfrom{\hskip #3\relax\@svsec}\interlinepenalty \@M %
745 \csname #1mark\endcsname{%
747 \addcontentsline{toc}{#1}{%
748 \ifnum #2>\c@secnumdepth \else
749 \protect\numberline{\csname the#1\endcsname}%
756 \csname #1mark\endcsname{%
758 \addcontentsline{toc}{#1}{%
759 \ifnum #2>\c@secnumdepth \else
760 \protect\numberline{\csname the#1\endcsname}%
766 \newcommand\section{%
767 \gdef\chapterauthor{\@caplusone}%
768 \gdef\endchapterauthors{\end@casplusone}%
769 \@ifstar{\@ssection}{\@trplarg{\@section}}}
772 \myaddcontentsline{\@chaptoc}{chapsection}{\string\makebox[\secnumwidth][l]{}#1}\fi
773 \@startsection{section}{1}{\z@}{30\p@}{6\p@}{\sec@rule\nopagebreak\vskip13.5\p@\nopagebreak\SectionHeadFont}*{#1}}
774 \def\@section[#1][#2]#3{%
776 \addtocounter{section}{1}%
777 \myaddcontentsline{\@chaptoc}{chapsection}{\string\makebox[\secnumwidth][l]{\thesection}#1}%
778 \addtocounter{section}{-1}\fi
779 \@startsection{section}{1}{\z@}{30\p@}{6\p@}{\sec@rule\nopagebreak\vskip13.5\p@\nopagebreak\SectionHeadFont}[#2]{#3}}
780 \def\sectionauthor#1{\hfill{\ChapTOCAuthorFont #1}}
782 \newcommand\subsection{\@ifstar{\@ssubsection}{\@trplarg{\@subsection}}}
783 \def\@ssubsection#1{%
785 \myaddcontentsline{\@chaptoc}{chapsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi
786 \@startsection{subsection}{2}{\z@}{18\p@}{6\p@}{%
787 \SubsectionHeadFont}*{#1}}
788 \def\@subsection[#1][#2]#3{%
790 \addtocounter{subsection}{1}%
791 \myaddcontentsline{\@chaptoc}{chapsubsection}{\string\makebox[\subsecnumwidth][l]{\thesubsection}#1}%
792 \addtocounter{subsection}{-1}\fi
793 \@startsection{subsection}{2}{\z@}{18\p@}{6\p@}{%
794 \SubsectionHeadFont}[#2]{#3}}
796 \newcommand\subsubsection{\@ifstar{\@ssubsubsection}{\@trplarg{\@subsubsection}}}
797 \def\@ssubsubsection#1{%
799 \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi
800 \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{%
801 \SubsubsectionHeadFont}*{#1}}
802 \def\@subsubsection[#1][#2]#3{%
804 \addtocounter{subsubsection}{1}%
805 \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\hskip21pt\string\makebox[\ssubsecnumwidth][l]{\thesubsubsection}#1}%
806 \addtocounter{subsubsection}{-1}\fi
807 \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{%
808 \SubsubsectionHeadFont}[#2]{#3}}
812 \setlength\leftmargini {2em}
814 \setlength\leftmargini {2.5em}
816 \leftmargin \leftmargini
817 \setlength\leftmarginii {2.2em}
818 \setlength\leftmarginiii {1.87em}
819 \setlength\leftmarginiv {1.7em}
821 \setlength\leftmarginv {.5em}
822 \setlength\leftmarginvi {.5em}
824 \setlength\leftmarginv {1em}
825 \setlength\leftmarginvi {1em}
827 \setlength \labelsep {.5em}
828 \setlength \labelwidth{\leftmargini}
829 \addtolength\labelwidth{-\labelsep}
830 \@beginparpenalty -\@lowpenalty
831 \@endparpenalty -\@lowpenalty
832 \@itempenalty -\@lowpenalty
833 \renewcommand\theenumi{\@arabic\c@enumi}
834 \renewcommand\theenumii{\@alph\c@enumii}
835 \renewcommand\theenumiii{\@roman\c@enumiii}
836 \renewcommand\theenumiv{\@Alph\c@enumiv}
837 \newcommand\labelenumi{\theenumi.}
838 \newcommand\labelenumii{(\theenumii)}
839 \newcommand\labelenumiii{\theenumiii.}
840 \newcommand\labelenumiv{\theenumiv.}
841 \renewcommand\p@enumii{\theenumi}
842 \renewcommand\p@enumiii{\theenumi(\theenumii)}
843 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
844 \newcommand\labelitemi{\textbullet}
845 \newcommand\labelitemii{\normalfont\bfseries \textendash}
846 \newcommand\labelitemiii{\textasteriskcentered}
847 \newcommand\labelitemiv{\textperiodcentered}
848 \newenvironment{description}
849 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
850 \let\makelabel\descriptionlabel}}
852 \newcommand*\descriptionlabel[1]{\hspace\labelsep
853 \normalfont\bfseries #1}
854 \newenvironment{verse}
858 \listparindent\itemindent
859 \rightmargin \leftmargin
860 \advance\leftmargin 1.5em}%
863 \newenvironment{quotation}
864 {\list{}{\listparindent 1.5em%
865 \itemindent \listparindent
866 \rightmargin \leftmargin
867 \parsep \z@ \@plus\p@}%
870 \newenvironment{quote}
871 {\list{}{\rightmargin\leftmargin}%
875 \newenvironment{titlepage}
879 \@restonecoltrue\onecolumn
881 \@restonecolfalse\newpage
883 \thispagestyle{empty}%
886 {\if@restonecol\twocolumn \else \newpage \fi
889 \newenvironment{titlepage}
893 \@restonecoltrue\onecolumn
895 \@restonecolfalse\newpage
897 \thispagestyle{empty}%
898 \setcounter{page}\@ne
900 {\if@restonecol\twocolumn \else \newpage \fi
902 \setcounter{page}\@ne
906 \newcommand\appendix{\par
907 \setcounter{chapter}{0}%
908 \setcounter{section}{0}%
909 \gdef\@chapapp{\appendixname}%
910 \gdef\thechapter{\@Alph\c@chapter}}
911 \setlength\arraycolsep{5\p@}
912 \setlength\tabcolsep{6\p@}
913 \setlength\arrayrulewidth{.4\p@}
914 \setlength\doublerulesep{2\p@}
915 \setlength\tabbingsep{\labelsep}
916 \skip\@mpfootins = \skip\footins
917 \setlength\fboxsep{3\p@}
918 \setlength\fboxrule{.4\p@}
919 \@addtoreset {equation}{chapter}
920 \renewcommand\theequation
921 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
922 \newcounter{figure}[chapter]
923 \renewcommand \thefigure
924 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
928 \def\fnum@figure{\figurename\nobreakspace\thefigure}
929 \newenvironment{figure}
932 \newenvironment{figure*}
935 \newcounter{table}[chapter]
936 \renewcommand \thetable
937 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
941 \def\fnum@table{\tablename\nobreakspace\thetable}
942 \newenvironment{table}
945 \newenvironment{table*}
948 \newlength\abovecaptionskip
949 \newlength\belowcaptionskip
950 \setlength\abovecaptionskip{10\p@}
951 \setlength\belowcaptionskip{0\p@}
952 \long\def\@makecaption#1#2{%
953 \vskip\abovecaptionskip
954 \sbox\@tempboxa{#1: #2}%
955 \ifdim \wd\@tempboxa >\hsize
956 {\FigCapFont #1}: #2\par
958 \global \@minipagefalse
959 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
961 \vskip\belowcaptionskip}
962 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
963 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
964 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
965 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
966 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
967 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
968 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
969 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
970 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
971 \newcommand\@pnumwidth{1.55em}
972 \newcommand\@tocrmarg{2.55em}
973 \newcommand\@dotsep{4.5}
974 \setcounter{tocdepth}{3}
977 \newcounter{numauthors}
979 \newif\if@firstauthor
980 \newcommand\tableofcontents{%
982 \@restonecoltrue\onecolumn
986 \chapter*{\contentsname
988 \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
990 \let\author\toc@author
996 \if@restonecol\twocolumn\fi
1000 \addpenalty{-\@highpenalty}%
1004 \parindent\z@\rightskip\@pnumwidth
1005 \parfillskip-\rightskip
1008 \advance\leftskip\@tempdima
1013 \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1016 \penalty\@highpenalty\endgroup}
1022 \gdef\toc@draw{\draw@part{\large #1}{\large #2}}}
1025 \def\l@chapter#1#2{%
1027 \gdef\toc@draw{\draw@chapter{#1}{#2}}}
1028 \def\@pnumwidth{1.8em}
1029 \def\draw@chapter#1#2{%
1030 \addpenalty{-\@highpenalty}%
1034 \parindent\z@\rightskip\@pnumwidth
1035 \parfillskip-\rightskip
1038 \advance\leftskip\@tempdima
1043 \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1047 \penalty\@highpenalty\endgroup}
1048 \def\toc@author#1#2{%
1052 \ifx\@authors\@empty
1053 \xdef\@authors{\last@author}%
1055 \@cons{\@authors}{, \last@author}\fi\fi
1056 \stepcounter{numauthors}%
1057 %%%%%%% commented and deleted below the second part to aviod inaccessible error % shashi % September-2008
1058 %% \gdef\last@author{#1 {\rm\fontsize{9\p@}{11\p@}\selectfont #2}}
1059 \gdef\last@author{#1}
1064 \let\@t\last@author\fi
1067 \ifx\@authors\@empty
1070 \ifnum\c@numauthors>2,\fi
1073 \last@author\break\fi
1075 \def\reset@authors{%
1077 \gdef\last@author{}%
1079 \setcounter{numauthors}{0}}
1080 \newlength\section@toc@skip
1081 \section@toc@skip1.5em
1082 \newlength\SectionTOCWidth
1083 \SectionTOCWidth2.3em
1084 \def\l@section#1#2{%
1086 \gdef\toc@draw{\draw@section{#1}{#2}}}
1087 \def\draw@section#1#2{%
1088 \@dottedtocline{1}{\section@toc@skip}{\SectionTOCWidth}{#1 }{{
1090 \newlength\subsection@toc@skip
1091 \subsection@toc@skip\section@toc@skip
1092 \advance\subsection@toc@skip\SectionTOCWidth
1093 \newlength\SubSectionTOCWidth
1094 \SubSectionTOCWidth3.2em
1095 \def\l@subsection#1#2{%
1097 \gdef\toc@draw{\draw@subsection{#1}{#2}}}
1098 \def\draw@subsection#1#2{%
1099 \@dottedtocline{2}{\subsection@toc@skip}{\SubSectionTOCWidth}{#1}{{
1101 \newlength\subsubsection@toc@skip
1102 \subsubsection@toc@skip\subsection@toc@skip
1103 \advance\subsubsection@toc@skip\SubSectionTOCWidth
1104 \newlength\SubSubSectionTOCWidth
1105 \SubSubSectionTOCWidth4.1em
1106 \def\l@subsubsection#1#2{%
1108 \gdef\toc@draw{\draw@subsubsection{#1}{#2}}}
1109 \def\draw@subsubsection#1#2{%
1110 \@dottedtocline{3}{\subsubsection@toc@skip}{\SubSubSectionTOCWidth}{#1}{{
1112 \newlength\paragraph@toc@skip
1113 \paragraph@toc@skip\subsubsection@toc@skip
1114 \advance\paragraph@toc@skip\SubSubSectionTOCWidth
1115 \newlength\ParagraphTOCWidth
1116 \ParagraphTOCWidth4.1em
1117 \def\l@paragraph#1#2{%
1119 \gdef\toc@draw{\draw@paragraph{#1}{#2}}}
1120 \def\draw@paragraph#1#2{%
1121 \@dottedtocline{4}{\paragraph@toc@skip}{\ParagraphTOCWidth}{#1}{{
1123 \newlength\subparagraph@toc@skip
1124 \subparagraph@toc@skip\paragraph@toc@skip
1125 \advance\subparagraph@toc@skip\ParagraphTOCWidth
1126 \def\l@subparagraph#1#2{%
1128 \gdef\toc@draw{\draw@subparagraph{#1}{#2}}}
1129 \def\draw@subparagraph#1#2{%
1130 \@dottedtocline{5}{\subparagraph@toc@skip}{6em}{#1}{{
1133 \def\@dottedtocline#1#2#3#4#5{%
1134 \ifnum #1>\c@tocdepth
1136 \vskip \z@ \@plus.2\p@
1137 {\leftskip #2\relax\rightskip\@tocrmarg\parfillskip-\rightskip
1138 \parindent #2\relax\@afterindenttrue
1139 \interlinepenalty\@M
1142 \advance\leftskip\@tempdima\null\hskip-\leftskip
1146 \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}\hfill
1148 \hb@xt@\@pnumwidth{\hfil\normalfont\normalcolor #5}%
1152 \newcommand\chapterauthors{%
1153 \def\break{\string\break\ }%
1154 \def\protect##1{\string ##1 }}
1156 \def\end@casplusone{\vskip4pt\@doendpe}
1158 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1159 \def\make@chaptoc{% chapter author
1161 \newcommand\FolioBoldFont{}%
1163 \def\bullet{\raisebox{2pt}{$\scriptscriptstyle\@b$}}%
1164 \let\SubsectionItalicFont\it
1165 %\ifx\chapter@author\@empty\else
1166 {\rm\fontsize{10\p@}{10\p@}\bfseries\selectfont
1168 \ifnum\c@numauthors=1
1169 \chapter@authorone\vskip6\p@
1170 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1172 \ifnum\c@numauthors=2
1173 \chapter@authorone\vskip6\p@
1174 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1175 \chapter@authortwo\vskip6\p@
1176 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}
1178 \ifnum\c@numauthors=3
1179 \chapter@authorone\vskip6\p@
1180 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1181 \chapter@authortwo\vskip6\p@
1182 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1183 \chapter@authorthree\vskip6\p@
1184 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}
1186 \ifnum\c@numauthors=4
1187 \chapter@authorone\vskip6\p@
1188 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1189 \chapter@authortwo\vskip6\p@
1190 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1191 \chapter@authorthree\vskip6\p@
1192 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1193 \chapter@authorfour\vskip6\p@
1194 {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}
1197 \gdef\chapter@authorone{}\gdef\chapter@affiliationone{}%
1198 \gdef\chapter@authortwo{}\gdef\chapter@affiliationtwo{}%
1199 \gdef\chapter@authorthree{}\gdef\chapter@affiliationthree{}%
1200 \gdef\chapter@authorfour{}\gdef\chapter@affiliationfour{}%
1202 {\leftskip\secnumwidth\def\author##1##2{}\@input{\thechapter.toc}\par}%
1205 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1206 \newif\iffinishedfromone
1207 \global\finishedfromonefalse
1209 \newif\iffinishedfromtwo
1210 \global\finishedfromtwofalse
1212 \newif\iffinishedfromthree
1213 \global\finishedfromthreefalse
1215 \newif\iffinishedfromfour
1216 \global\finishedfromfourfalse
1217 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1219 \newcommand\singleauthorchapter{\finishedfromonetrue}
1220 \newcommand\twoauthorchapter{\finishedfromtwotrue}
1221 \newcommand\threeauthorchapter{\finishedfromthreetrue}
1222 \newcommand\fourauthorchapter{\finishedfromfourtrue}
1224 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1227 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1228 \newsavebox\@AUonebox
1229 \newsavebox\@AUtwobox
1230 \newsavebox\@AUthreebox
1231 \newsavebox\@AUfourbox
1233 \newsavebox\@AUaffonebox
1234 \newsavebox\@AUafftwobox
1235 \newsavebox\@AUaffthreebox
1236 \newsavebox\@AUafffourbox
1238 \newsavebox\@finalAUboxfromone
1239 \newsavebox\@finalAUboxfromtwo
1240 \newsavebox\@finalAUboxfromthree
1241 \newsavebox\@finalAUboxfromfour
1242 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1245 % \def\chapter@author{#1}%
1246 % \def\chapter@affiliation{#2}%
1249 \string\@writefile{toc}{\string\author{#1}{}}%
1254 \ifnum\c@numauthors>4
1255 \resetcounter{numauthors}
1257 \stepcounter{numauthors}
1259 \ifnum\c@numauthors=1 %
1260 \sbox\@AUonebox{\CAPlusOneFont#1}
1261 \sbox\@AUaffonebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1262 \sbox\@finalAUboxfromone{\copy\@AUonebox}
1263 \def\chapter@authorone{\copy\@finalAUboxfromone}
1264 \def\chapter@affiliationone{\copy\@AUaffonebox}
1265 \fi \ifnum\c@numauthors=2
1266 \sbox\@AUtwobox{\CAPlusOneFont#1}
1267 \sbox\@AUafftwobox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1268 \sbox\@finalAUboxfromtwo{\copy\@AUtwobox}
1269 \def\chapter@authortwo{\copy\@finalAUboxfromtwo}
1270 \def\chapter@affiliationtwo{\copy\@AUafftwobox}
1271 \fi \ifnum\c@numauthors=3
1272 \sbox\@AUthreebox{\CAPlusOneFont#1}
1273 \sbox\@AUaffthreebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1274 \sbox\@finalAUboxfromthree{\copy\@AUthreebox}
1275 \def\chapter@authorthree{\copy\@finalAUboxfromthree}
1276 \def\chapter@affiliationthree{\copy\@AUaffthreebox}
1277 \fi \ifnum\c@numauthors=4
1278 \sbox\@AUfourbox{\CAPlusOneFont#1}
1279 \sbox\@AUafffourbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1280 \sbox\@finalAUboxfromfour{\copy\@AUfourbox}
1281 \def\chapter@authorfour{\copy\@finalAUboxfromfour}
1282 \def\chapter@affiliationfour{\copy\@AUafffourbox}
1286 \def\@caplusone{\@ifstar{\@scaplusone}{\@ifnextchar[{\@xcaplusone}{\@xcaplusone[]}}}
1287 \def\@xcaplusone[#1]#2#3{%
1288 \def\@@empty{#1}\ifx\@empty\@@empty\@ca{#2}{#3}\else\@ca{#2}{#1}\fi\@scaplusone{#2}{#3}}
1289 \def\@scaplusone#1#2{%
1290 \ifhmode\vskip-12pt\fi
1292 %%% \noindent\hskip3pc{\CAPlusOneFont\baselineskip14pt #1\def\@t{#2}\ifx\@t\@empty\else,\fi}\hskip6pt{\CAAPlusOneFont #2}\par
1295 \def\chapterauthoronly#1#2{\@ca{#1}{}\@scaplusone{#1}{#2}}
1296 \def\myaddcontentsline#1#2#3{%
1299 \let\label\@gobble\let\index\@gobble\let\glossary\@gobble
1301 \def\protect##1{\string ##1 }%
1302 \@temptokena{\thepage}%
1303 \edef\@tempa{\write#1{\string\chapcontentsline{#2}{\string\raggedright\space #3}{\the\@temptokena}}}\@tempa
1304 \if@nobreak\ifvmode\nobreak\fi\fi
1307 \def\chapcontentsline#1{\csname l@#1\endcsname}
1308 \def\l@chapsection{\@mydottedtocline{1}{\z@}{6pt}}
1309 \def\l@chapsubsection{\@mydottedtocline{2}{\secnumwidth}{6pt}}
1310 \def\l@chapsubsubsection{\@mydottedtocline{3}{\subsecnumwidth}{36pt}}
1311 \newcount\c@chaptocdepth
1312 \setcounter{chaptocdepth}{3}
1313 \def\@mytocline#1#2#3#4#5{%
1314 \ifnum #1>\c@chaptocdepth
1316 \vskip 2pt plus.2\p@
1317 \ifnum #1=1\ifnum\c@chaptocdepth>1\addvspace{12pt}\fi\fi
1318 {\leftskip #2\relax% \rightskip \@tocrmarg \parfillskip -\rightskip
1319 \interlinepenalty\@M
1323 \vbox{\ChapTOCFont #4\nobreak}%
1325 \def\@mydottedtocline#1#2#3#4#5{%
1326 \ifnum #1>\c@chaptocdepth
1328 \vskip 2pt plus.2\p@
1329 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -21pt %-\rightskip
1330 % \parindent #2\relax\@afterindenttrue
1331 \interlinepenalty\@M
1336 \advance\hsize-\secnumwidth
1337 {\fontsize{9.5\p@}{\baselineskip}\selectfont #4
1338 \nobreak\leaders\hbox{$\m@th\mkern\@dotsep mu.\mkern\@dotsep mu$}
1339 \hfill\hbox to 1.5pc{\hfill#5}}
1342 \newcommand\listoffigures{%
1344 \@restonecoltrue\onecolumn
1348 \chapter*{\listfigurename}%
1349 \@mkboth{\MakeUppercase\listfigurename}%
1350 {\MakeUppercase\listfigurename}%
1352 \if@restonecol\twocolumn\fi
1354 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
1355 \newcommand\listoftables{%
1357 \@restonecoltrue\onecolumn
1361 \chapter*{\listtablename}%
1363 \MakeUppercase\listtablename}%
1364 {\MakeUppercase\listtablename}%
1366 \if@restonecol\twocolumn\fi
1368 \let\l@table\l@figure
1370 \setlength\bibindent{1.5em}
1371 \newenvironment{thebibliography}[1]
1372 {\chapter*{\bibname}%
1373 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
1374 \addcontentsline{toc}{section}{\bibname}
1375 \list{\@biblabel{\@arabic\c@enumiv}}%
1376 {\settowidth\labelwidth{\@biblabel{#1}}%
1377 \leftmargin\labelwidth
1378 \advance\leftmargin\labelsep
1380 \usecounter{enumiv}%
1381 \let\p@enumiv\@empty
1382 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
1385 \@clubpenalty \clubpenalty
1389 {\@latex@warning{Empty `thebibliography' environment}}%
1391 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
1392 \let\@openbib@code\@empty
1393 \newenvironment{theindex}
1394 {\cleardoublepage\if@twocolumn
1399 \twocolumn[\@makeschapterhead{\indexname}]%
1400 \@mkboth{\MakeUppercase\indexname}%
1401 {\MakeUppercase\indexname}%
1402 \pagestyle{headings}
1403 \addcontentsline{toc}{chapter}{\indexname}
1404 \thispagestyle{folio}\parindent\z@
1405 \parskip\z@ \@plus .3\p@\relax
1409 {\if@restonecol\onecolumn\else\clearpage\fi}
1410 \newcommand\@idxitem{\par\hangindent 40\p@}
1411 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
1412 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
1413 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
1414 \renewcommand\footnoterule{%
1416 \hrule\@width.4\columnwidth
1418 \@addtoreset{footnote}{chapter}
1419 \newcommand\@makefntext[1]{%
1422 \hb@xt@1.8em{\hss\@makefnmark}#1}
1423 \newcommand\contentsname{Contents}
1424 \newcommand\listfigurename{List of Figures}
1425 \newcommand\listtablename{List of Tables}
1426 \newcommand\bibname{Bibliography}
1427 \newcommand\indexname{Index}
1428 \newcommand\figurename{FIGURE}
1429 \newcommand\tablename{TABLE}
1430 \newcommand\partname{Part}
1431 \newcommand\chaptername{Chapter}
1432 \newcommand\appendixname{Appendix}
1433 \def\today{\ifcase\month\or
1434 January\or February\or March\or April\or May\or June\or
1435 July\or August\or September\or October\or November\or December\fi
1436 \space\number\day, \number\year}
1437 \setlength\columnsep{10\p@}
1438 \setlength\columnseprule{0\p@}
1439 \pagestyle{headings}
1440 \pagenumbering{arabic}
1452 \newcommand\crcrule{\hbox to\textwidth{\rule{\textwidth}{.5\p@}}}
1453 \newcommand\chap@rule{\crcrule}
1454 \newcommand\sec@rule{\crcrule}
1455 \def\@affiliate[#1]{\gdef\@affiliation{#1}}
1458 \def\def@theequation{%
1459 \if@numberinsequence
1461 \if@numbysec\thesection\else\thechapter\fi.%
1465 \if@numbysec\thesection\else\thechapter\fi.%
1466 \@arabic\c@equation}\fi}
1468 \def\affiliation#1{{\AffiliationFont\noindent #1\vskip 36bp}}
1471 \newdimen\nomenwidth
1473 \newenvironment{symbollist}[1]{%
1475 \setbox\tempbox\hbox{#1\hskip1em}%
1476 \global\nomenwidth\wd\tempbox
1477 %\section*{Sumbol Description}
1478 \noindent{\SectionHeadFont Symbol Description}\vskip6pt
1479 \begin{multicols}{2}}{%
1480 \end{multicols}\par\addvspace{12pt}}
1481 \def\symbolentry#1#2{\par\noindent\@hangfrom{\hbox to \nomenwidth{#1\hss}}#2\par}
1483 %%%%%%%%%%%%%%%%%%%%
1485 \def\Boxhead#1{\par\addvspace{3pt plus2pt}\noindent{\centering\bfseries#1\par}\vskip3pt}
1489 \newdimen\tempdimen%
1491 \newenvironment{shortbox}{\par\addvspace{12pt plus2pt}%
1493 \setbox\tempbox\vbox\bgroup\hsize27pc%
1495 \setbox\tempbox\vbox\bgroup\hsize32pc%
1497 \setbox\tempbox\vbox\bgroup\hsize25pc%
1501 \noindent\fboxsep6pt\fboxrule.5pt\hspace*{0pt}\fbox{\box\tempbox}
1502 \par\addvspace{12pt plus2pt}}%
1506 \def\grayink{\special{color cmyk 0 0 0 0.2}}
1507 \def\blackink{\special{color cmyk 0 0 0 1.0}} %
1508 \def\whiteink{\special{color cmyk 0 0 0 0}} % 0%
1510 \newenvironment{shadebox}{%
1511 \setbox\tempbox\hbox\bgroup\vbox\bgroup\leftskip12pt\rightskip\leftskip}{\par\addvspace{12pt}
1512 \egroup\egroup\par\addvspace{25pt}
1513 \tempdimen\ht\tempbox
1514 \advance\tempdimen by 1pc
1515 \noindent{\hbox to \wd\tempbox{\vbox to \ht\tempbox{\hsize\textwidth{\special{color push}\grayink\vspace*{-12pt}\noindent\vrule height\tempdimen width\textwidth
1516 \special{color pop}\blackink}}}}%
1517 \llap{\unhbox\tempbox}\par\addvspace{12pt}}
1520 %%%%%%%%%% Note %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1523 \newenvironment{notelist}[1]{%
1525 \setbox\tempbox\hbox{#1\hskip.57em}%
1526 \global\notewidth\wd\tempbox
1528 \par\addvspace{6pt}}
1530 \def\notes#1#2{\par\noindent\@hangfrom{\hbox to \notewidth{\bf #1\hss}}#2\par}
1531 %%%%%%%%%%%%%%%% wherelist %%%%%%%%%%%%%%%%
1533 \newdimen\wherewidth
1534 \newenvironment{wherelist}[1]{\leftskip10pt%
1536 \setbox\wherebox\hbox{#1\hskip1em}%
1537 \global\wherewidth\wd\wherebox
1538 \noindent\hspace*{-14pt} where
1540 \par\addvspace{6pt}}
1541 \def\whereentry#1#2#3{\par\noindent\@hangfrom{\hbox to \wherewidth{#1\hss}#2\hskip6pt}#3\par}
1543 \newenvironment{unnumlist}{%
1544 \ifnum \@enumdepth >3 \@toodeep\else
1545 \advance\@enumdepth\@ne
1547 \leftmargini27.5pt \leftmarginii17.5pt\leftmarginiv17.5pt
1548 % \leftmargin\parindent
1549 \advance\leftmargin-.2em
1550 \advance\leftmarginii.2em
1551 \advance\leftmarginiii.1em
1552 \advance\leftmarginiv.2em
1553 \def\makelabel##1{\hss\llap{##1}}}
1558 \newenvironment{extract}{%
1559 \par\addvspace{11.5pt minus2pt}%
1560 \leftskip2em\rightskip\leftskip
1561 \noindent\ignorespaces
1563 \par\addvspace{11.5pt minus2pt}%
1567 \def\VA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par #2\rightskip3em}
1569 \newenvironment{VF}{\VfFont%
1570 \par\addvspace{12pt minus2pt}%
1571 \noindent{\vrule height2pt width\textwidth}\par\vskip7.3pt
1572 \leftskip3em\rightskip\leftskip
1573 \noindent\ignorespaces
1575 \par\vskip6pt\leftskip0pt\noindent{{\vrule height2pt width\textwidth}}\par\addvspace{12pt minus2pt}%
1578 \def\VTA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par {\it #2}\rightskip3em}
1581 \def\VT{\par\addvspace{3.5pt}\noindent}
1583 \def\VH#1{{\normalfont\fontsize{12.5}{14.5}\itshape\centering\selectfont #1\par}\addvspace{5.5pt}}
1585 \newenvironment{VT1}{\VfFont%
1586 \par\addvspace{12pt minus2pt}%
1587 \noindent{\vrule height2pt width\textwidth}\par\vskip7.5pt
1588 \leftskip3em\rightskip\leftskip
1591 \noindent\ignorespaces
1593 \par\vskip6pt\leftskip0pt\noindent{{\vrule height2pt width\textwidth}}\par\addvspace{10pt minus2pt}%
1597 %%%%%%%%%%%% Glossary %%%%%%%%%%%%%%%%%%%%%%%
1598 \newenvironment{Glossary}
1599 {\list{}{\labelwidth\z@\leftmargin18pt \itemindent-18pt
1600 \let\makelabel\glosslabel}}
1602 \newcommand\glosslabel[1]{\hspace\labelsep\normalfont\bfseries #1:}
1606 \arrayrulewidth .5pt
1608 %\newcounter{subtable}[table]
1609 \newif\if@tablerules\@tablerulestrue
1610 \newif\if@centertable\@centertabletrue
1611 \newif\if@centertabletitle\@centertabletitletrue
1613 \newbox\@tabletitlebox
1614 \newdimen\@tablewidth
1615 \newdimen\@tabletitlewidth
1616 \newdimen\max@tablewidth
1617 \newcommand\automaticrules{\@tablerulestrue}
1618 \newcommand\noautomaticrules{\@tablerulesfalse}
1624 \@arabic\c@table\alph{subtable}}
1625 \def\resettableletter{\setcounter{subtable}{0}}
1627 \newcommand\tabletitle{\@ifnextchar[{\@xtabletitle}{\@tabletitlewidth\z@\@ytabletitle}}
1629 \newif\ifshorttabletitle
1630 \global\shorttabletitlefalse
1631 %\def\@xtabletitle#1{\@tabletitlewidth#1\@ytabletitle}
1633 \def\@xtabletitle[#1]#2{%
1634 \gdef\@@tabletitle{#1}%
1635 \gdef\@tabletitle{#2}%
1636 \let\@Tabletitle\@TableTitle
1637 \refstepcounter{table}%
1638 {\let\footnotemark\@empty
1639 \let\footnote\@gobble
1640 \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@@tabletitle}}}}
1642 %\long\def\@xtabletitle[#1]#2{%
1643 % \setbox\@ttbox\hbox{#1}\global\shorttabletitletrue
1644 % \def\@@tabletitle{\ifx\@ttbox\@empty\else#1\fi}%
1645 % \def\@tabletitle{#2}%
1646 % \let\@Tabletitle\@TableTitle
1647 % \refstepcounter{table}%
1648 % {\let\footnotemark\@empty
1649 % \let\footnote\@gobble
1650 % \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{%
1651 %\ifshorttabletitle\@@tabletitle\else\@tabletitle\fi}}}}
1655 \long\def\@ytabletitle#1{%
1656 \def\@tabletitle{#1}%
1657 \let\@Tabletitle\@TableTitle
1658 \refstepcounter{table}%
1659 {\let\footnotemark\@empty
1660 \let\footnote\@gobble
1661 \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@tabletitle}}}}
1662 \def\tabletitlelet{\@ifnextchar[{\@xtabletitlelet}{\@tabletitlewidth\z@\@ytabletitlelet}}
1663 \def\@xtabletitlelet[#1]{\@tabletitlewidth#1\@ytabletitlelet}
1664 \long\def\@ytabletitlelet#1{%
1665 \def\@tabletitle{#1}%
1666 \let\@Tabletitle\@TableTitle
1667 \ifnum\c@subtable=0\stepcounter{table}\fi
1668 \let\@currentlabel\thesubtable
1669 {\let\footnotemark\@empty
1670 \let\footnote\@gobble
1671 \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@tabletitle}}}}
1675 {{\TableNumberFont TABLE \thetable:\quad}}\TableTitleFont\@tabletitle}}
1677 %\long\def\caption##1{\tabletitle{##1}\@TableTitle\par}%
1680 \long\def\caption##1{\tabletitle{##1}\@TableTitle\par}%
1685 \if@centertable\hfil\fi
1687 \setbox\@tablebox\hbox\bgroup
1689 \global\let\@fn\@empty
1690 \def\footnote##1{\footnotemark\gdef\@fn{##1}}
1691 \renewcommand{\arraystretch}{.916666666667}%
1692 $\let\@acol\@tabacol
1693 \let\@classz\@tabclassz
1694 \let\@classiv\@tabclassiv
1698 \crcr\egroup\egroup $\egroup
1699 \@tablewidth\wd\@tablebox
1700 \ifnum\@tabletitlewidth>0
1701 {\hsize\@tabletitlewidth\raggedright\global\setbox\@tabletitlebox\vbox{\@Tabletitle}}%
1703 \setbox\@tabletitlebox\hbox{\@Tabletitle}%
1704 \ifnum\wd\@tabletitlebox>\@tablewidth
1705 {\hsize\@tablewidth\raggedright\global\setbox\@tabletitlebox\vbox{\@Tabletitle}}\fi
1706 \@tabletitlewidth\wd\@tabletitlebox\fi
1707 \ifnum\@tabletitlewidth>0
1708 \ifnum\@tabletitlewidth>\@tablewidth\@tablewidth\@tabletitlewidth\fi
1709 \hbox to\@tabletitlewidth{\if@centertabletitle\hfil\fi\box\@tabletitlebox\hfil}\par\fi
1710 \max@tablewidth\@tablewidth
1711 \ifnum\@tabletitlewidth>\max@tablewidth\max@tablewidth\@tabletitlewidth\fi
1713 \ifnum\@tabletitlewidth>0\vskip-6pt\fi
1714 \hbox to\max@tablewidth{\if@centertable\hfil\fi\rule{\@tablewidth}{1pt}\hfil}\par\fi
1715 \hbox to\max@tablewidth{\if@centertable\hfil\fi\box\@tablebox\hfil}\vskip1pt
1716 \if@tablerules\hbox to\max@tablewidth{\if@centertable\hfil\fi\rule{\@tablewidth}{1pt}\hfil}\par\fi
1717 \ifx\@fn\@empty\else\FootnoteFont\parindent\z@\noindent\@makefnmark\@fn\par\fi
1719 \vskip 0pt plus 12pt
1720 \gdef\@Tabletitle{}}
1722 \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
1723 \hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
1729 \def\tch#1{\TableColHeadFont #1\llstrut\hfill}
1730 \def\tsh#1{\TableSubheadFont #1\hfill}
1731 \newcommand\llstrut{\rule[-6pt]{0pt}{14pt}}
1732 \newcommand\flstrut{\rule{0pt}{10pt}}
1733 \newcommand\tabletitlestrut{\rule{0pt}{20pt}}
1734 \@centertabletitlefalse
1735 \HeadingsBookChapter
1736 %\HeadingsChapterSection
1739 %% End of file `sunil.cls'.