]> AND Private Git Repository - book_gpu.git/blob - BookGPU/sunil.cls
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
[book_gpu.git] / BookGPU / sunil.cls
1 %% This is file `sunil.cls', modified version of `Book.cls'
2
3 %%% Created by Shashi Kumar / ITC [August 2008]
4
5
6 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7 \ProvidesClass{sunil}
8               [2005/09/16 v1.4f
9  Standard LaTeX document class]
10 \newcommand\@ptsize{}
11 \newif\if@restonecol
12 \newif\if@titlepage
13 \@titlepagetrue
14 \newif\if@openright
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}}
39 \fi
40 \if@compatibility
41   \renewcommand\@ptsize{0}
42 \else
43 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
44 \fi
45 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
46 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
47 \if@compatibility\else
48 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
49 \fi
50 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
51 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
52 \if@compatibility\else
53 \DeclareOption{final}{\setlength\overfullrule{0pt}}
54 \fi
55 \DeclareOption{titlepage}{\@titlepagetrue}
56 \if@compatibility\else
57 \DeclareOption{notitlepage}{\@titlepagefalse}
58 \fi
59 \if@compatibility
60 \@openrighttrue
61 \else
62 \DeclareOption{openright}{\@openrighttrue}
63 \DeclareOption{openany}{\@openrightfalse}
64 \fi
65 \if@compatibility\else
66 \DeclareOption{onecolumn}{\@twocolumnfalse}
67 \fi
68 \DeclareOption{twocolumn}{\@twocolumntrue}
69 \DeclareOption{leqno}{\input{leqno.clo}}
70 \DeclareOption{fleqn}{\input{fleqn.clo}}
71 \DeclareOption{openbib}{%
72   \AtEndOfPackage{%
73    \renewcommand\@openbib@code{%
74       \advance\leftmargin\bibindent
75       \itemindent -\bibindent
76       \listparindent \itemindent
77       \parsep \z@
78       }%
79    \renewcommand\newblock{\par}}%
80 }
81 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
82 \newif\if@numbysec
83 \DeclareOption{numbysec}{\@numbysectrue}
84 \newif\if@numberinsequence
85 \DeclareOption{numberinsequence}{\@numberinsequencetrue}
86 \newif\if@nocaptionbreak
87 \DeclareOption{NoCaptionBreak}{\@nocaptionbreaktrue}
88 \newif\if@sevenbyten
89 \DeclareOption{sevenbyten}{\@sevenbytentrue}
90 \newif\if@cip
91 \DeclareOption{cip}{\@ciptrue}
92 \newif\if@times
93 \DeclareOption{times}{\@timestrue}
94 \newif\if@chapnumonly
95 \DeclareOption{chapnumonly}{\@chapnumonlytrue}
96 \newif\if@ChapterResetsPage
97 \DeclareOption{ChapterResetsPage}{\@ChapterResetsPagetrue}
98 \newif\if@ChapterTOCs
99 \DeclareOption{ChapterTOCs}{\@ChapterTOCstrue}
100 \newif\if@EOCRefs
101 \DeclareOption{EOCRefs}{\@EOCRefstrue}%
102 \newif\if@SuperscriptCites
103 \DeclareOption{SuperscriptCites}{\@SuperscriptCitestrue}%
104 \newif\if@UnnumberedReferences
105 \DeclareOption{UnnumberedReferences}{\@UnnumberedReferencestrue}%
106 \newif\if@pdf
107 \DeclareOption{pdf}{\@pdftrue}
108 \DeclareOption{sunil1}{\@sunilatrue}
109 \newif\if@sunila
110 \DeclareOption{sunil2}{\@sunilbtrue}
111 \newif\if@sunilb
112 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113
114
115 \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
116 \ProcessOptions
117
118 %%%%%%%%%%%%%%%%%%%
119
120 \def\helv@scale{.82}
121 %
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}{}%
135
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}{}%
149
150 %%%%%%%%%%%%%%%%%%%%%
151
152
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@}
158 \@lowpenalty   51
159 \@medpenalty  151
160 \@highpenalty 301
161 \@beginparpenalty -\@lowpenalty
162 \@endparpenalty   -\@lowpenalty
163 \@itempenalty     -\@lowpenalty
164 %
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}
177
178 %  ****************************************
179 %  *            PAGE LAYOUT               *
180 %  ****************************************
181 %
182 % All margin dimensions measured from a point one inch from top and side
183 % of page.
184 %
185 % SIDE MARGINS:
186 %
187 \oddsidemargin  6pc %5pc
188 \evensidemargin 5.7pc %5pc
189 \marginparwidth 4pc
190 \marginparsep   1pc
191 \topmargin  12pt %0pt
192 \headheight 12pt
193 \headsep    12pt
194 \footskip   2pc
195 %
196 % DIMENSION OF TEXT:
197 \newdimen\trimheight
198 \newdimen\trimwidth
199 \newdimen\normaltextheight
200 \newdimen\tempa
201 \newdimen\tempdimen
202 %
203 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Parameter Initializaton %%%%%%%%%%%%%%%%%%%%%%%%%%
204
205 \newdimen\htrim
206 \newdimen\vtrimtop
207 \newdimen\vtrimbot
208
209 \setlength\trimheight{9in}
210 \setlength\trimwidth{6in}
211 %
212 %
213 \if@sunila
214 \textheight = 45\baselineskip
215   %\advance\textheight by \topskip
216 \addtolength\textheight{3pt}
217   \textwidth 28pc
218 \addtolength\textwidth{.5pt}
219   \topmargin0in
220   \oddsidemargin1.1875in
221   \evensidemargin1.1875in
222   \htrim.7365in
223   \vtrimtop1.068in
224   \vtrimbot1.068in
225   \hoffset-15pt
226   \voffset39pt
227 \let\normaltextheight\textheight
228 \else\if@sunilb
229   \textheight = 51pc
230 %  \advance\textheight by \topskip
231   \textwidth 33pc
232   \topmargin0in
233   \oddsidemargin.5in
234   \evensidemargin.5in
235   \htrim.75in
236   \vtrimtop.8607in
237   \vtrimbot1.027in
238   \hoffset-.1in
239   \voffset-.15in%.04in
240 \let\normaltextheight\textheight
241 \else
242 \textheight = 43\baselineskip
243   %\advance\textheight by \topskip
244 \addtolength\textheight{3pt}
245   \textwidth 26pc
246 \addtolength\textwidth{.5pt}
247  \topmargin0in
248   \oddsidemargin1.1875in
249   \evensidemargin1.1875in
250   \htrim5.05pc
251   \vtrimtop7.7pc
252   \vtrimbot5.44pc
253 %  \hoffset-5pt
254   \voffset45pt
255 \let\normaltextheight\textheight
256   \fi
257 \fi
258 %
259 \columnsep 1pc
260 \columnseprule 0pt
261 %
262 % FOOTNOTES
263 %
264 \footnotesep 6.65pt
265 \skip\footins 12pt plus 3pt minus 1.5pt
266 %
267
268 %%%%  Trim marks %%%%%%%%%%%
269 \newsavebox\ul@box
270 \newsavebox\ur@box
271 \newsavebox\ll@box
272 \newsavebox\lr@box
273 \def\top@cornermarks{%
274   \hskip-\htrim
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}%
279   \hskip\htrim}
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@}}}
285
286 %%%%%%%%%%%%%%%%%%%%  End Trim Marks %%%%%%%%%%%%
287
288
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}
293
294
295
296 \def\even@head{%
297 \top@cornermarks
298   {\@the@page\RunningHeadFont
299     \hfil
300 \leftmark
301     }\hfil}
302 \def\odd@head{%
303 \top@cornermarks
304   \hfil{\RunningHeadFont
305 \rightmark
306     }
307 \hfil
308     \@the@page
309   }
310 \def\@the@page{{\PageNumFont\thepage}}
311
312
313 \if@twoside
314 \def\ps@headings{%
315   \let\@mkboth\@gobbletwo
316   \if@pdf
317     \let\@evenhead\@empty
318     \let\@oddhead\@empty
319     \def\@oddfoot{\@cip\hfil}%
320     \def\@evenfoot{\@cip\hfil}%
321   \else
322 \let\@oddfoot\@empty
323 \let\@evenfoot\@empty
324     \let\@evenhead\even@head
325     \let\@oddhead\odd@head
326   \fi
327   }
328 \else
329   \def\ps@headings{\let\@mkboth\@gobbletwo%
330 \if@pdf
331     \let\@evenhead\@empty
332     \let\@oddhead\@empty
333     \def\@oddfoot{\@cip\hfil}%
334     \def\@evenfoot{\@cip\hfil}%
335   \else
336 \let\@oddfoot\@empty
337 \let\@evenfoot\@empty
338     \let\@evenhead\even@head
339     \let\@oddhead\odd@head
340   \fi
341 }
342 \fi
343 \def\ps@myheadings{%
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
350     }
351 \def\ps@empty{%
352   \let\@mkboth\@gobbletwo
353   \if@pdf
354     \let\@evenhead\@empty
355     \let\@oddhead\@empty
356     \def\@oddfoot{\@cip\hfil}%
357     \def\@evenfoot{\@cip\hfil}%
358   \else
359     \make@cornermarks
360     \let\@oddhead\top@cornermarks
361     \let\@evenhead\top@cornermarks
362     \let\@oddfoot\@empty
363     \let\@evenfoot\@empty
364   \fi
365   }
366 \def\ps@folio{%
367   \let\@mkboth\@gobbletwo
368   \if@pdf
369     \let\@evenhead\@empty
370     \let\@oddhead\@empty
371     \def\@oddfoot{\@cip\hfil}%
372     \def\@evenfoot{\@cip\hfil}%
373   \else
374 \let\@oddhead\top@cornermarks
375     \def\@oddfoot{%
376       \parindent\z@
377       \baselineskip7\p@
378       \hbox{%
379         \textwidth\@ciprulewidth
380         \vbox{%
381           \if@cip\rule{\@ciprulewidth}{.25pt}\par
382             \hbox{\vbox{\noindent\copy\@cipboxa\par\noindent\copy\@cipboxb}}\fi}}
383       \hfill\@the@page}
384     \let\@evenhead\top@cornermarks%\odd@head
385     \let\@evenfoot\@oddfoot
386   \fi
387   }
388 \newcommand\HeadingsBookChapter{%
389   \def\chaptermark##1{%
390     \markboth{\@title}{%
391       ##1}}%
392   \def\sectionmark##1{}}
393 \def\HeadingsChapterSection{%
394   \def\chaptermark##1{%
395     \markboth{%
396       ##1}{}}%
397   \def\sectionmark##1{%
398     \markright{%
399       ##1}}}
400 \def\pdfon{\@pdftrue}
401 \def\pdfoff{\@pdffalse}
402 \if@pdf
403   \def\@cip{{\fontsize{6\p@}{8\p@}\selectfont\copyright 2001 by CRC Press LLC}}
404 \else
405   \newsavebox\@cipboxa
406   \newsavebox\@cipboxb
407   \newdimen\@ciprulewidth
408   \def\@cip#1#2{%
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}%
413 \fi
414 \if@pdf
415 \else
416   \AtBeginDocument{%
417     \@cip{\rule{0pt}{9pt}0-8493-0052-5/00/\$0.00+\$.50}%
418       {\copyright\ \ 2001 by CRC Press LLC}}%
419 \fi
420   \if@titlepage
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@
426     \vbox{
427     \vskip -7bp
428     {\baselineskip 10bp\lineskip 10bp\NameFont\uppercase{\@author}\par}
429     \vskip 6bp
430     \AffiliationFont \@affiliation
431     \vskip -2bp
432     \crcrule
433     \vskip 22bp
434     {\baselineskip 24bp\lineskip 24bp\TitlePageTitleFont\@title\par}}}
435   \@thanks
436   \vfil\null
437   \end{titlepage}%
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
449 }
450 \else
451 \newcommand\maketitle{\par
452   \begingroup
453     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
454     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
455     \long\def\@makefntext##1{\parindent 1em\noindent
456             \hb@xt@1.8em{%
457                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
458     \if@twocolumn
459       \ifnum \col@number=\@ne
460         \@maketitle
461       \else
462         \twocolumn[\@maketitle]%
463       \fi
464     \else
465       \newpage
466       \global\@topnum\z@   % Prevents figures from going at top of page.
467       \@maketitle
468     \fi
469     \thispagestyle{empty}\@thanks
470   \endgroup
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
483 }
484 \def\@maketitle{%
485   \newpage
486   \null
487   \vskip 2em%
488 {\parindent \z@ \raggedright \baselineskip \z@ \lineskip \z@ \parskip \z@
489     \vbox{
490     \vskip -7bp
491     {\baselineskip 10bp\lineskip 10bp\NameFont\uppercase{\@author}\par}
492     \vskip 6bp
493     \AffiliationFont \@affiliation
494     \vskip 10bp
495     \crcrule
496     \vskip 26bp
497     {\baselineskip 24bp\lineskip 24bp\TitlePageTitleFont\@title\par}}}
498   \par
499   \vskip 1.5em}
500 \fi
501
502 %%%%%%%%%%%%%% Font Defined %%%%%%%%%%%%%%%%%
503
504  \def\@xipt{11}
505   \def\@xviiipt{18}
506  \def\@xxivpt{24}
507
508 \newcommand\ContributorAffiliationFont{\reset@font\fontsize{10}{12}\raggedright\selectfont}
509 \newcommand\ContributorNameFont{\reset@font\fontsize{10}{12}\bfseries\raggedright\selectfont}
510
511 \newcommand\SectionHeadFont{\fontsize{12}{14}\bfseries\selectfont}
512 \newcommand\SubsectionHeadFont{\fontsize{11}{13}\bfseries\selectfont}
513 \newcommand\SubsubsectionHeadFont{\fontsize{10}{12}\bfseries\selectfont}
514 \newcommand\PageNumFont{\fontsize{10}{12}\selectfont}
515 \newcommand\ChapNumFont{\fontsize{24}{24}\slshape\bfseries\selectfont}
516 \newcommand\ChapTitleFont{\fontsize{18}{20}\slshape\bfseries\selectfont}
517 \newcommand\FMHeadFont{\fontsize{18}{20}\slshape\bfseries\selectfont}
518 \newcommand\RunningHeadFont{\fontsize{10}{12}\itshape\selectfont}
519 \newcommand\NameFont{\fontsize{10}{12}\itshape\selectfont}
520 \newcommand\AffiliationFont{\fontsize{8}{10}\selectfont}
521 \newcommand\TitlePageTitleFont{\fontsize{24}{28}\slshape\bfseries\selectfont}
522 \newcommand\FigCapFont{\fontsize{10}{12}\bfseries\selectfont}
523 \newcommand\TableColHeadFont{\fontsize{10}{12}\bfseries\selectfont}
524 \newcommand\TableTitleFont{\fontsize{10}{12}\selectfont}
525 \newcommand\TableNumberFont{\fontsize{11}{13}\bfseries\selectfont}
526 \newcommand\TableBodyFont{\fontsize{9}{11}\bfseries\selectfont}
527 \newcommand\CAPlusOneFont{\fontsize{10}{12}\bfseries\selectfont}
528 \newcommand\CAAPlusOneFont{\fontsize{10}{12}\itshape\selectfont}
529 \newcommand\tocfont{\fontsize{10}{12}\selectfont}
530 \newcommand\extraFont{\fontsize{24}{28}\selectfont}
531 \newcommand\VfFont{\fontsize{10.5}{12.5}\selectfont}
532
533
534 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
535
536
537 \newcommand*\chaptermark[1]{}
538 \setcounter{secnumdepth}{3}
539 \newcounter {part}
540 \newcounter {chapter}
541 \newcounter {section}[chapter]
542 \newcounter {subsection}[section]
543 \newcounter {subsubsection}[subsection]
544 \newcounter {paragraph}[subsubsection]
545 \newcounter {subparagraph}[paragraph]
546 \renewcommand \thepart {\@Roman\c@part}
547 \renewcommand \thechapter {\@arabic\c@chapter}
548 \renewcommand \thesection {\thechapter.\@arabic\c@section}
549 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
550 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
551 \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
552 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
553 \newcommand\@chapapp{\chaptername}
554 \newcommand\frontmatter{%
555     \cleardoublepage
556   \@mainmatterfalse
557   \pagenumbering{roman}}
558 \newcommand\mainmatter{%
559     \cleardoublepage
560   \@mainmattertrue
561   \pagenumbering{arabic}}
562 \newcommand\backmatter{%
563   \if@openright
564     \cleardoublepage
565   \else
566     \clearpage
567   \fi
568   \@mainmatterfalse}
569 \newcommand\part{\make@cornermarks%
570   \if@openright
571     \cleardoublepage
572   \else
573     \clearpage
574   \fi
575   \thispagestyle{empty}%
576   \if@twocolumn
577     \onecolumn
578     \@tempswatrue
579   \else
580     \@tempswafalse
581   \fi
582   \null\vfil
583   \secdef\@part\@spart}
584
585 \def\@part[#1]#2{%
586     \ifnum \c@secnumdepth >-2\relax
587       \refstepcounter{part}%
588       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
589     \else
590       \addcontentsline{toc}{part}{#1}%
591     \fi
592     \markboth{}{}%
593     {\centering
594      \interlinepenalty \@M
595      \normalfont
596      \ifnum \c@secnumdepth >-2\relax
597        \huge\bfseries \partname\nobreakspace\thepart
598        \par
599        \vskip 20\p@
600      \fi
601      \Huge \bfseries #2\par}%
602     \@endpart}
603 \def\@spart#1{%
604     {\centering
605      \interlinepenalty \@M
606      \normalfont
607      \Huge \bfseries #1\par}%
608     \@endpart}
609 \def\@endpart{\vfil\newpage
610               \if@twoside
611                \if@openright
612                 \null
613                 \thispagestyle{empty}%
614                 \newpage
615                \fi
616               \fi
617               \if@tempswa
618                 \twocolumn
619               \fi}
620
621 \if@ChapterTOCs
622   \newwrite\@chaptoc
623   \def\secnumwidth{21pt}\def\subsecnumwidth{30pt}\def\ssubsecnumwidth{36pt}\def\subsubsecnumwidth{66pt}\fi
624 \long\def\@trplarg#1{\@ifnextchar[{\@xtrplarg{#1}}{\@ztrplarg{#1}}}
625 \long\def\@xtrplarg#1[#2]{\@ifnextchar[{#1[#2]}{\@ytrplarg{#1}[{#2}]}}
626 \long\def\@ytrplarg#1[#2]#3{#1[{#2}][{#2}]{#3}}
627 \long\def\@ztrplarg#1#2{#1[{#2}][{#2}]{#2}}
628
629
630 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
631   \make@cornermarks
632   \cleardoublepage
633   \if@ChapterTOCs\if@filesw\immediate\closeout\@chaptoc\fi\fi
634   \pagestyle{headings}%
635   \thispagestyle{folio}%
636 \if@ChapterResetsPage\global\c@page\@ne\fi
637                     \global\@topnum\z@
638                       \gdef\chapterauthor{\@ca}%
639   \gdef\endchapterauthors{\end@cas}%
640                     \@afterindentfalse
641 %                    \secdef\@chapter\@schapter
642                      \@ifstar{\@schapter}{\@trplarg{\@chapter}}}
643
644
645 \def\@chapter[#1][#2]#3{%
646   \ifnum\c@secnumdepth>\m@ne
647     \if@mainmatter
648       \refstepcounter{chapter}%
649       \typeout{\@chapapp\space\thechapter.}%
650       \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
651     \else
652       \addcontentsline{toc}{chapter}{#1}\fi
653   \else
654     \addcontentsline{toc}{chapter}{#1}\fi
655   \chaptermark{%
656     #2}%
657   \addtocontents{lof}{\protect\addvspace{10\p@}}%
658   \addtocontents{lot}{\protect\addvspace{10\p@}}%
659   \if@twocolumn
660     \@topnewpage[\@makechapterhead{#3}]%
661   \else
662     \@makechapterhead{#3}%
663     \@afterheading\fi
664   \if@ChapterTOCs\if@filesw\immediate\openout\@chaptoc\thechapter.toc\fi\fi
665 }
666 \def\@makechapterhead#1{%
667   {\parindent \z@ \raggedright \baselineskip \z@ \lineskip \z@ \parskip \z@
668     \vbox{
669     \vskip -2\p@
670     \ChapNumFont
671 \if@chapnumonly\else
672     \@chapapp\
673 \fi
674     \thechapter
675     \vskip -11\p@
676     \chap@rule
677     \vskip 5\p@
678     {\baselineskip 20\p@\lineskip 20\p@\ChapTitleFont #1\par}%
679     \vskip32\p@}
680             \if@ChapterTOCs
681       \make@chaptoc
682     \else
683 \fi
684     \vskip 19.3\p@}
685     \def\theequation{\thechapter.\arabic{equation}}}%
686
687
688 \def\@schapter#1{\if@twocolumn
689                    \@topnewpage[\@makeschapterhead{#1}]%
690                  \else
691                    \@makeschapterhead{#1}%
692                    \addcontentsline{toc}{fm}{#1}
693                    \markboth{#1}{#1}
694                    \@afterheading
695                  \fi}
696                  
697 \def\@makeschapterhead#1{%
698   {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
699     \vbox{
700     \vskip 22\p@
701     \chap@rule
702     \vskip -1\p@
703     \FMHeadFont #1
704     \vskip 59\p@}}%
705   \def\theequation{\thechapter.\arabic{equation}}}
706
707 \def\@startsection#1#2#3#4#5#6{%
708   \if@noskipsec\leavevmode\fi
709   \par
710   \@tempskipa #4\relax
711   \@afterindenttrue
712   \ifdim \@tempskipa <\z@
713     \@tempskipa -\@tempskipa \@afterindentfalse
714   \fi
715   \if@nobreak
716     \everypar{}%
717   \else
718     \addpenalty\@secpenalty\addvspace\@tempskipa
719   \fi
720   \@ifstar
721     {\@ssect{#1}{#3}{#4}{#5}{#6}}%
722     {\@trplarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
723 \def\@ssect#1#2#3#4#5#6{%
724   \@tempskipa #4\relax
725   \ifdim \@tempskipa>\z@
726     \begingroup
727       #5{%
728         \@hangfrom{\hskip #2}%
729           \interlinepenalty \@M #6\@@par}%
730     \endgroup
731     \csname #1mark\endcsname{#6}%
732   \else
733     \def\@svsechd{#5{\hskip #2\relax #6}\csname #1mark\endcsname{#6}}%
734   \fi
735   \@xsect{#4}}
736 \def\@sect#1#2#3#4#5#6[#7][#8]#9{%
737   \ifnum #2>\c@secnumdepth
738     \let\@svsec\@empty
739   \else
740     \refstepcounter{#1}%
741 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
742   \fi
743   \@tempskipa #5\relax
744   \ifdim \@tempskipa>\z@
745     \begingroup
746       #6{%
747 \@hangfrom{\hskip #3\relax\@svsec}\interlinepenalty \@M %
748           #9\@@par}%
749     \endgroup
750     \csname #1mark\endcsname{%
751       #8}%
752     \addcontentsline{toc}{#1}{%
753       \ifnum #2>\c@secnumdepth \else
754         \protect\numberline{\csname the#1\endcsname}%
755       \fi
756       #7}%
757   \else
758     \def\@svsechd{%
759       #6{\hskip #3\relax
760       \@svsec #9}%
761       \csname #1mark\endcsname{%
762         #8}%
763       \addcontentsline{toc}{#1}{%
764         \ifnum #2>\c@secnumdepth \else
765           \protect\numberline{\csname the#1\endcsname}%
766         \fi
767         #7}}%
768   \fi
769   \@xsect{#5}}
770
771 %%Change mydotted also
772 \newdimen\secwd
773 \newdimen\subsecwd
774 \newdimen\subsubsecwd
775
776 \def\secwd{31pt}
777 \def\subsecwd{36pt}
778 \def\subsubsecwd{56pt}
779
780
781 \def\ssubnumberline#1{\@hangfrom{\hbox to \secwd{#1\hfill}}}
782 \def\subnumberline#1{\@hangfrom{\hskip\subsecnumwidth\hbox to \subsecwd{#1\hfill}}}
783 \def\subsubnumberline#1{\@hangfrom{\hskip\subsubsecnumwidth\hbox to \subsubsecwd{#1\hfill}}}
784
785
786 \newcommand\section{%
787   \gdef\chapterauthor{\@caplusone}%
788   \gdef\endchapterauthors{\end@casplusone}%
789   \@ifstar{\@ssection}{\@trplarg{\@section}}}
790 \def\@ssection#1{%
791   \if@ChapterTOCs
792     \myaddcontentsline{\@chaptoc}{chapsection}{\protect\ssubnumberline{\ }#1}\fi
793   \@startsection{section}{1}{\z@}{30\p@}{6\p@}{\sec@rule\nopagebreak\vskip13.5\p@\nopagebreak\SectionHeadFont}*{#1}}
794 \def\@section[#1][#2]#3{%
795   \if@ChapterTOCs
796     \addtocounter{section}{1}%
797     \myaddcontentsline{\@chaptoc}{chapsection}{\protect\ssubnumberline{\thesection}#1}%
798     \addtocounter{section}{-1}\fi
799   \@startsection{section}{1}{\z@}{30\p@}{6\p@}{\sec@rule\nopagebreak\vskip13.5\p@\nopagebreak\SectionHeadFont}[#2]{#3}}
800 \def\sectionauthor#1{\hfill{\ChapTOCAuthorFont #1}}
801
802 \newcommand\subsection{\@ifstar{\@ssubsection}{\@trplarg{\@subsection}}}
803 \def\@ssubsection#1{%
804   \if@ChapterTOCs
805     \myaddcontentsline{\@chaptoc}{chapsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi
806   \@startsection{subsection}{2}{\z@}{18\p@}{6\p@}{%
807     \SubsectionHeadFont}*{#1}}
808 \def\@subsection[#1][#2]#3{%
809   \if@ChapterTOCs
810     \addtocounter{subsection}{1}%
811     \myaddcontentsline{\@chaptoc}{chapsubsection}{\protect\subnumberline{\thesubsection}#1}%
812     \addtocounter{subsection}{-1}\fi
813   \@startsection{subsection}{2}{\z@}{18\p@}{6\p@}{%
814     \SubsectionHeadFont}[#2]{#3}}
815
816 \newcommand\subsubsection{\@ifstar{\@ssubsubsection}{\@trplarg{\@subsubsection}}}
817 \def\@ssubsubsection#1{%
818   \if@ChapterTOCs
819     \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi
820   \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{%
821     \SubsubsectionHeadFont}*{#1}}
822 \def\@subsubsection[#1][#2]#3{%
823   \if@ChapterTOCs
824     \addtocounter{subsubsection}{1}%
825         \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\protect\subsubnumberline{\thesubsubsection}#1}%
826     \addtocounter{subsubsection}{-1}\fi
827   \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{%
828     \SubsubsectionHeadFont}[#2]{#3}}
829
830
831 \if@twocolumn
832   \setlength\leftmargini  {2em}
833 \else
834   \setlength\leftmargini  {2.5em}
835 \fi
836 \leftmargin  \leftmargini
837 \setlength\leftmarginii  {2.2em}
838 \setlength\leftmarginiii {1.87em}
839 \setlength\leftmarginiv  {1.7em}
840 \if@twocolumn
841   \setlength\leftmarginv  {.5em}
842   \setlength\leftmarginvi {.5em}
843 \else
844   \setlength\leftmarginv  {1em}
845   \setlength\leftmarginvi {1em}
846 \fi
847 \setlength  \labelsep  {.5em}
848 \setlength  \labelwidth{\leftmargini}
849 \addtolength\labelwidth{-\labelsep}
850 \@beginparpenalty -\@lowpenalty
851 \@endparpenalty   -\@lowpenalty
852 \@itempenalty     -\@lowpenalty
853 \renewcommand\theenumi{\@arabic\c@enumi}
854 \renewcommand\theenumii{\@alph\c@enumii}
855 \renewcommand\theenumiii{\@roman\c@enumiii}
856 \renewcommand\theenumiv{\@Alph\c@enumiv}
857 \newcommand\labelenumi{\theenumi.}
858 \newcommand\labelenumii{(\theenumii)}
859 \newcommand\labelenumiii{\theenumiii.}
860 \newcommand\labelenumiv{\theenumiv.}
861 \renewcommand\p@enumii{\theenumi}
862 \renewcommand\p@enumiii{\theenumi(\theenumii)}
863 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
864 \newcommand\labelitemi{\textbullet}
865 \newcommand\labelitemii{\normalfont\bfseries \textendash}
866 \newcommand\labelitemiii{\textasteriskcentered}
867 \newcommand\labelitemiv{\textperiodcentered}
868 \newenvironment{description}
869                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
870                         \let\makelabel\descriptionlabel}}
871                {\endlist}
872 \newcommand*\descriptionlabel[1]{\hspace\labelsep
873                                 \normalfont\bfseries #1}
874 \newenvironment{verse}
875                {\let\\\@centercr
876                 \list{}{\itemsep      \z@
877                         \itemindent   -1.5em%
878                         \listparindent\itemindent
879                         \rightmargin  \leftmargin
880                         \advance\leftmargin 1.5em}%
881                 \item\relax}
882                {\endlist}
883 \newenvironment{quotation}
884                {\list{}{\listparindent 1.5em%
885                         \itemindent    \listparindent
886                         \rightmargin   \leftmargin
887                         \parsep        \z@ \@plus\p@}%
888                 \item\relax}
889                {\endlist}
890 \newenvironment{quote}
891                {\list{}{\rightmargin\leftmargin}%
892                 \item\relax}
893                {\endlist}
894 \if@compatibility
895 \newenvironment{titlepage}
896     {%
897       \cleardoublepage
898       \if@twocolumn
899         \@restonecoltrue\onecolumn
900       \else
901         \@restonecolfalse\newpage
902       \fi
903       \thispagestyle{empty}%
904       \setcounter{page}\z@
905     }%
906     {\if@restonecol\twocolumn \else \newpage \fi
907     }
908 \else
909 \newenvironment{titlepage}
910     {%
911       \cleardoublepage
912       \if@twocolumn
913         \@restonecoltrue\onecolumn
914       \else
915         \@restonecolfalse\newpage
916       \fi
917       \thispagestyle{empty}%
918       \setcounter{page}\@ne
919     }%
920     {\if@restonecol\twocolumn \else \newpage \fi
921      \if@twoside\else
922         \setcounter{page}\@ne
923      \fi
924     }
925 \fi
926 \newcommand\appendix{\par
927   \setcounter{chapter}{0}%
928   \setcounter{section}{0}%
929   \gdef\@chapapp{\appendixname}%
930   \gdef\thechapter{\@Alph\c@chapter}}
931 \setlength\arraycolsep{5\p@}
932 \setlength\tabcolsep{6\p@}
933 \setlength\arrayrulewidth{.4\p@}
934 \setlength\doublerulesep{2\p@}
935 \setlength\tabbingsep{\labelsep}
936 \skip\@mpfootins = \skip\footins
937 \setlength\fboxsep{3\p@}
938 \setlength\fboxrule{.4\p@}
939 \@addtoreset {equation}{chapter}
940 \renewcommand\theequation
941   {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
942 \newcounter{figure}[chapter]
943 \renewcommand \thefigure
944      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
945 \def\fps@figure{tbp}
946 \def\ftype@figure{1}
947 \def\ext@figure{lof}
948 \def\fnum@figure{\figurename\nobreakspace\thefigure}
949 \newenvironment{figure}
950                {\@float{figure}}
951                {\end@float}
952 \newenvironment{figure*}
953                {\@dblfloat{figure}}
954                {\end@dblfloat}
955 \newcounter{table}[chapter]
956 \renewcommand \thetable
957      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
958 \def\fps@table{tbp}
959 \def\ftype@table{2}
960 \def\ext@table{lot}
961 \def\fnum@table{\tablename\nobreakspace\thetable}
962 \newenvironment{table}
963                {\@float{table}}
964                {\end@float}
965 \newenvironment{table*}
966                {\@dblfloat{table}}
967                {\end@dblfloat}
968 \newlength\abovecaptionskip
969 \newlength\belowcaptionskip
970 \setlength\abovecaptionskip{10\p@}
971 \setlength\belowcaptionskip{0\p@}
972 \long\def\@makecaption#1#2{%
973   \vskip\abovecaptionskip
974   \sbox\@tempboxa{{\FigCapFont #1} #2}%
975   \ifdim \wd\@tempboxa >\hsize
976     {\FigCapFont #1} #2\par
977   \else
978     \global \@minipagefalse
979     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
980   \fi
981   \vskip\belowcaptionskip}
982 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
983 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
984 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
985 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
986 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
987 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
988 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
989 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
990 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
991 \newcommand\@pnumwidth{1.55em}
992 \newcommand\@tocrmarg{2.55em}
993 \newcommand\@dotsep{4.5}
994 \setcounter{tocdepth}{3}
995
996
997 \newcounter{numauthors}
998 \newif\if@break
999 \newif\if@firstauthor
1000 \newcommand\tableofcontents{\cleardoublepage\thispagestyle{folio}%
1001   \gdef\chapterauthor{\@caplusone}%
1002   \gdef\endchapterauthors{\end@casplusone}%
1003   \make@cornermarks
1004     \if@twocolumn
1005       \@restonecoltrue\onecolumn
1006     \else
1007       \@restonecolfalse
1008     \fi
1009       {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1010     \vbox{
1011     \vskip 22\p@
1012     \chap@rule
1013     \vskip -1\p@
1014     \FMHeadFont \contentsname
1015     \vskip 59\p@}}%
1016 %%%    \chapter*{\contentsname
1017 %%%        \@mkboth{%
1018 %%%           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
1019 \markboth{Contents}{Contents}
1020              {\let\break\space
1021     \let\author\toc@author
1022     \reset@authors
1023     \let\toc@draw\relax
1024     \@starttoc{toc}
1025     \toc@draw
1026     }
1027     \if@restonecol\twocolumn\fi
1028     }
1029
1030 \def\draw@part#1#2{%
1031   \addpenalty{-\@highpenalty}%
1032   \vskip1.5em plus\p@
1033   \@tempdima1.5em
1034   \begingroup
1035     \parindent\z@\rightskip\@pnumwidth
1036     \parfillskip-\rightskip
1037     \bfseries
1038     \leavevmode
1039     \advance\leftskip\@tempdima
1040     \hskip-\leftskip
1041     {#1\hfil}\nobreak
1042       \if@pdf
1043       \else
1044         \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1045 \fi
1046     \par
1047     \penalty\@highpenalty\endgroup}
1048
1049 \let\toc@draw\relax
1050 %
1051 \def\l@part#1#2{% 
1052 \toc@draw
1053  \gdef\toc@draw{\draw@part{\large #1}{\large #2}}}
1054
1055   \def\l@fm#1#2{%
1056   \toc@draw
1057   \gdef\toc@draw{\draw@fm{#1}{#2}}}
1058 \def\@pnumwidth{1.8em}
1059 \def\draw@fm#1#2{%
1060   \addpenalty{-\@highpenalty}%
1061   \vskip1em plus\p@
1062   \@tempdima1.5em
1063   \begingroup
1064     \parindent\z@\rightskip\@pnumwidth
1065     \parfillskip-\rightskip
1066     \bfseries
1067     \leavevmode
1068     \advance\leftskip\@tempdima
1069     \hskip-\leftskip
1070     {#1\hfil}\nobreak
1071       \if@pdf
1072       \else
1073         \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1074 \fi
1075     \par
1076     \penalty\@highpenalty\endgroup}
1077     
1078
1079   \def\l@chapter#1#2{%
1080   \toc@draw
1081   \gdef\toc@draw{\draw@chapter{#1}{#2}}}
1082 \def\@pnumwidth{1.8em}
1083 \def\draw@chapter#1#2{%
1084   \addpenalty{-\@highpenalty}%
1085   \vskip1.5em plus\p@
1086   \@tempdima1.5em
1087   \begingroup
1088     \parindent\z@\rightskip\@pnumwidth
1089     \parfillskip-\rightskip
1090     \bfseries
1091     \leavevmode
1092     \advance\leftskip\@tempdima
1093     \hskip-\leftskip
1094     {#1\hfil}\nobreak
1095       \if@pdf
1096       \else
1097         \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1098 \fi
1099     \par
1100     {\it\draw@authors}%
1101     \penalty\@highpenalty\endgroup}
1102 \def\toc@author#1#2{%
1103   \if@firstauthor
1104     \@firstauthorfalse
1105   \else
1106     \ifx\@authors\@empty
1107       \xdef\@authors{\last@author}%
1108     \else
1109       \@cons{\@authors}{, \last@author}\fi\fi
1110   \stepcounter{numauthors}%
1111 %%%%%%% commented and deleted below the second part to aviod inaccessible error % shashi % September-2008
1112 %%  \gdef\last@author{#1 {\rm\fontsize{9\p@}{11\p@}\selectfont #2}}
1113 \gdef\last@author{#1}
1114 }
1115 \def\draw@authors{%
1116   \let\@t\@authors
1117         \hskip\leftskip
1118   \noindent\vbox{\hsize25pc\raggedright\addvspace{4pt}\ifx\@t\@empty
1119     \let\@t\last@author\fi
1120   \ifx\@t\@empty\else
1121     \hskip\leftskip
1122     \ifx\@authors\@empty
1123     \else
1124       \@authors
1125       \ifnum\c@numauthors>2,\fi
1126       \if@break\break\fi
1127       \ and \fi
1128     \last@author\break\fi
1129   \reset@authors}}
1130 \def\reset@authors{%
1131   \gdef\@authors{}%
1132   \gdef\last@author{}%
1133   \@firstauthortrue
1134   \setcounter{numauthors}{0}}
1135 \newlength\section@toc@skip
1136 \section@toc@skip1.5em
1137 \newlength\SectionTOCWidth
1138 \SectionTOCWidth2.3em
1139 \def\l@section#1#2{%
1140   \toc@draw
1141   \gdef\toc@draw{\draw@section{#1}{#2}}}
1142 \def\draw@section#1#2{%
1143   \@dottedtocline{1}{\section@toc@skip}{\SectionTOCWidth}{#1 }{{
1144 \tocfont #2}}}
1145 \newlength\subsection@toc@skip
1146 \subsection@toc@skip\section@toc@skip
1147 \advance\subsection@toc@skip\SectionTOCWidth
1148 \newlength\SubSectionTOCWidth
1149 \SubSectionTOCWidth3.2em
1150 \def\l@subsection#1#2{%
1151   \toc@draw
1152   \gdef\toc@draw{\draw@subsection{#1}{#2}}}
1153 \def\draw@subsection#1#2{%
1154   \@dottedtocline{2}{\subsection@toc@skip}{\SubSectionTOCWidth}{#1}{{
1155 \tocfont #2}}}
1156 \newlength\subsubsection@toc@skip
1157 \subsubsection@toc@skip\subsection@toc@skip
1158 \advance\subsubsection@toc@skip\SubSectionTOCWidth
1159 \newlength\SubSubSectionTOCWidth
1160 \SubSubSectionTOCWidth4.1em
1161 \def\l@subsubsection#1#2{%
1162   \toc@draw
1163   \gdef\toc@draw{\draw@subsubsection{#1}{#2}}}
1164 \def\draw@subsubsection#1#2{%
1165   \@dottedtocline{3}{\subsubsection@toc@skip}{\SubSubSectionTOCWidth}{#1}{{
1166 \tocfont #2}}}
1167 \newlength\paragraph@toc@skip
1168 \paragraph@toc@skip\subsubsection@toc@skip
1169 \advance\paragraph@toc@skip\SubSubSectionTOCWidth
1170 \newlength\ParagraphTOCWidth
1171 \ParagraphTOCWidth4.1em
1172 \def\l@paragraph#1#2{%
1173   \toc@draw
1174   \gdef\toc@draw{\draw@paragraph{#1}{#2}}}
1175 \def\draw@paragraph#1#2{%
1176   \@dottedtocline{4}{\paragraph@toc@skip}{\ParagraphTOCWidth}{#1}{{
1177 \tocfont #2}}}
1178 \newlength\subparagraph@toc@skip
1179 \subparagraph@toc@skip\paragraph@toc@skip
1180 \advance\subparagraph@toc@skip\ParagraphTOCWidth
1181 \def\l@subparagraph#1#2{%
1182   \toc@draw
1183   \gdef\toc@draw{\draw@subparagraph{#1}{#2}}}
1184 \def\draw@subparagraph#1#2{%
1185   \@dottedtocline{5}{\subparagraph@toc@skip}{6em}{#1}{{
1186 \tocfont #2}}}
1187
1188 \def\@dottedtocline#1#2#3#4#5{%
1189   \ifnum #1>\c@tocdepth
1190   \else
1191     \vskip \z@ \@plus.2\p@
1192     {\leftskip #2\relax\rightskip\@tocrmarg\parfillskip-\rightskip
1193       \parindent #2\relax\@afterindenttrue
1194       \interlinepenalty\@M
1195       \leavevmode
1196       \@tempdima #3\relax
1197       \advance\leftskip\@tempdima\null\hskip-\leftskip
1198       {#4\hfil}\nobreak
1199       \if@pdf
1200       \else
1201         \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}\hfill
1202         \nobreak
1203         \hb@xt@\@pnumwidth{\hfil\normalfont\normalcolor #5}%
1204 \fi
1205       \par}\fi}
1206       
1207 \newcommand\chapterauthors{%
1208   \def\break{\string\break\ }%
1209   \def\protect##1{\string ##1 }}
1210 \def\end@cas{}
1211 \def\end@casplusone{\vskip4pt\@doendpe}
1212
1213 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
1214 \def\make@chaptoc{% chapter author 
1215   {\parindent\z@
1216   \newcommand\FolioBoldFont{}%
1217   \let\@b\bullet
1218   \def\bullet{\raisebox{2pt}{$\scriptscriptstyle\@b$}}%
1219   \let\SubsectionItalicFont\it
1220 %\ifx\chapter@author\@empty\else
1221 {\rm\fontsize{10\p@}{10\p@}\bfseries\selectfont
1222 %\the\c@numauthors
1223     \ifnum\c@numauthors=1
1224         \chapter@authorone\vskip6\p@
1225         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1226             \fi
1227         \ifnum\c@numauthors=2
1228                     \chapter@authorone\vskip6\p@
1229         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1230                         \chapter@authortwo\vskip6\p@
1231         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}
1232                             \fi
1233                                 \ifnum\c@numauthors=3
1234                                     \chapter@authorone\vskip6\p@
1235         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1236                                         \chapter@authortwo\vskip6\p@
1237         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1238                                             \chapter@authorthree\vskip6\p@
1239         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}
1240                                                 \fi
1241                                                     \ifnum\c@numauthors=4
1242                                                         \chapter@authorone\vskip6\p@
1243         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1244                                                             \chapter@authortwo\vskip6\p@
1245         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1246                                                                 \chapter@authorthree\vskip6\p@
1247         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1248                                                                     \chapter@authorfour\vskip6\p@
1249         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}
1250                                                                         \fi
1251                                                     \ifnum\c@numauthors=5
1252                                                         \chapter@authorone\vskip6\p@
1253         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1254                                                             \chapter@authortwo\vskip6\p@
1255         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1256                                                                 \chapter@authorthree\vskip6\p@
1257         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1258                                                                     \chapter@authorfour\vskip6\p@
1259         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1260                                                                             \chapter@authorfive\vskip6\p@
1261         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}
1262                                                                         \fi                                                                        
1263                                                     \ifnum\c@numauthors=6
1264                                                         \chapter@authorone\vskip6\p@
1265         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1266                                                             \chapter@authortwo\vskip6\p@
1267         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1268                                                                 \chapter@authorthree\vskip6\p@
1269         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1270                                                                     \chapter@authorfour\vskip6\p@
1271         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1272                                                                             \chapter@authorfive\vskip6\p@
1273         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1274                                                                                     \chapter@authorsix\vskip6\p@
1275         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}
1276                                                                         \fi                                                                                                                                                
1277                                                     \ifnum\c@numauthors=7
1278                                                         \chapter@authorone\vskip6\p@
1279         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1280                                                             \chapter@authortwo\vskip6\p@
1281         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1282                                                                 \chapter@authorthree\vskip6\p@
1283         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1284                                                                     \chapter@authorfour\vskip6\p@
1285         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1286                                                                       \chapter@authorfive\vskip6\p@
1287         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1288                                                                        \chapter@authorsix\vskip6\p@
1289         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}\vskip12\p@
1290                                                                                \chapter@authorseven\vskip6\p@
1291         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationseven}
1292                                                                         \fi                                                                                                                                                
1293                                                     \ifnum\c@numauthors=8
1294                                                         \chapter@authorone\vskip6\p@
1295         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1296                                                             \chapter@authortwo\vskip6\p@
1297         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1298                                                                 \chapter@authorthree\vskip6\p@
1299         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1300                                                                     \chapter@authorfour\vskip6\p@
1301         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1302                                                                       \chapter@authorfive\vskip6\p@
1303         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1304                                                                        \chapter@authorsix\vskip6\p@
1305         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}\vskip12\p@
1306                                                                        \chapter@authorseven\vskip6\p@
1307         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationseven}\vskip12\p@
1308                                                                         \chapter@authoreight\vskip6\p@
1309         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationeight}
1310                                                                         \fi                                                                                                                                                
1311                                                     \ifnum\c@numauthors=9
1312                                                         \chapter@authorone\vskip6\p@
1313         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1314                                                             \chapter@authortwo\vskip6\p@
1315         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1316                                                                 \chapter@authorthree\vskip6\p@
1317         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1318                                                                     \chapter@authorfour\vskip6\p@
1319         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1320                                                                       \chapter@authorfive\vskip6\p@
1321         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1322                                                                        \chapter@authorsix\vskip6\p@
1323         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}\vskip12\p@
1324                                                                        \chapter@authorseven\vskip6\p@
1325         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationseven}\vskip12\p@
1326                                                                         \chapter@authoreight\vskip6\p@
1327         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationeight}\vskip12\p@
1328                                                                         \chapter@authornine\vskip6\p@
1329         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationnine}
1330                                                                         \fi                                                                                                                                                
1331                                                                        
1332 }
1333  \gdef\chapter@authorone{}\gdef\chapter@affiliationone{}%
1334  \gdef\chapter@authortwo{}\gdef\chapter@affiliationtwo{}%
1335  \gdef\chapter@authorthree{}\gdef\chapter@affiliationthree{}%
1336  \gdef\chapter@authorfour{}\gdef\chapter@affiliationfour{}%
1337   \gdef\chapter@authorfive{}\gdef\chapter@affiliationfive{}%
1338    \gdef\chapter@authorsix{}\gdef\chapter@affiliationsix{}%
1339     \gdef\chapter@authorseven{}\gdef\chapter@affiliationseven{}%
1340      \gdef\chapter@authoreight{}\gdef\chapter@affiliationeight{}%
1341       \gdef\chapter@authornine{}\gdef\chapter@affiliationnine{}%
1342        \gdef\chapter@authorten{}\gdef\chapter@affiliationten{}%
1343    \gdef\chapter@authoreleven{}\gdef\chapter@affiliationeleven{}%
1344     \gdef\chapter@authortwelve{}\gdef\chapter@affiliationtwelve{}%
1345      \gdef\chapter@authorthirteen{}\gdef\chapter@affiliationthirteen{}%
1346       \gdef\chapter@authorfourteen{}\gdef\chapter@affiliationfourteen{}%
1347        \gdef\chapter@authorfifteen{}\gdef\chapter@affiliationfifteen{}%       
1348
1349   \vskip 14.6\p@
1350 {\leftskip\secnumwidth\def\author##1##2{}\@input{\thechapter.toc}\par}%
1351   }
1352 \reset@authors}
1353 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1354 \newif\iffinishedfromone
1355 \global\finishedfromonefalse
1356 %
1357 \newif\iffinishedfromtwo
1358 \global\finishedfromtwofalse
1359 %
1360 \newif\iffinishedfromthree
1361 \global\finishedfromthreefalse
1362 %
1363 \newif\iffinishedfromfour
1364 \global\finishedfromfourfalse
1365 %
1366 \newif\iffinishedfromfive
1367 \global\finishedfromfivefalse
1368 %
1369 \newif\iffinishedfromsix
1370 \global\finishedfromsixfalse
1371 %
1372 \newif\iffinishedfromseven
1373 \global\finishedfromsevenfalse
1374 %
1375 \newif\iffinishedfromeight
1376 \global\finishedfromeightfalse
1377 %
1378 \newif\iffinishedfromnine
1379 \global\finishedfromninefalse
1380 %
1381 \newif\iffinishedfromten
1382 \global\finishedfromtenfalse
1383 %
1384 \newif\iffinishedfromeleven
1385 \global\finishedfromelevenfalse
1386 %
1387 \newif\iffinishedfromtwelve
1388 \global\finishedfromtwelvefalse
1389 %
1390 \newif\iffinishedfromthirteen
1391 \global\finishedfromthirteenfalse
1392 %
1393 \newif\iffinishedfromfourteen
1394 \global\finishedfromfourteenfalse
1395 %
1396 \newif\iffinishedfromfifteen
1397 \global\finishedfromfifteenfalse
1398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1399 %
1400 \def\singleauthorchapter{\finishedfromonetrue}
1401 \def\twoauthorchapter{\finishedfromtwotrue}
1402 \def\threeauthorchapter{\finishedfromthreetrue}
1403 \def\fourauthorchapter{\finishedfromfourtrue}
1404 \def\fiveauthorchapter{\finishedfromfivetrue}
1405 \def\sixauthorchapter{\finishedfromsixtrue}
1406 \def\sevenauthorchapter{\finishedfromseventrue}
1407 \def\eightauthorchapter{\finishedfromeighttrue}
1408 \def\nineauthorchapter{\finishedfromninetrue}
1409 \def\tenauthorchapter{\finishedfromtentrue}
1410 \def\elevenauthorchapter{\finishedfromeleventrue}
1411 \def\twelveauthorchapter{\finishedfromtwelvetrue}
1412 \def\thirteenauthorchapter{\finishedfromthirteentrue}
1413 \def\fourteenauthorchapter{\finishedfromfourteentrue}
1414 \def\fifteenauthorchapter{\finishedfromfifteentrue}
1415 %
1416 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1417 \newif\iffinish
1418 \global\finishfalse
1419 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1420 \newsavebox\@AUonebox
1421 \newsavebox\@AUtwobox
1422 \newsavebox\@AUthreebox
1423 \newsavebox\@AUfourbox
1424 \newsavebox\@AUfivebox
1425 \newsavebox\@AUsixbox
1426 \newsavebox\@AUsevenbox
1427 \newsavebox\@AUeightbox
1428 \newsavebox\@AUninebox
1429 \newsavebox\@AUtenbox
1430 \newsavebox\@AUelevenbox
1431 \newsavebox\@AUtwelvebox
1432 \newsavebox\@AUthirteenbox
1433 \newsavebox\@AUfourteenbox
1434 \newsavebox\@AUfifteenbox
1435
1436 %
1437 \newsavebox\@AUaffonebox
1438 \newsavebox\@AUafftwobox
1439 \newsavebox\@AUaffthreebox
1440 \newsavebox\@AUafffourbox
1441 \newsavebox\@AUafffivebox
1442 \newsavebox\@AUaffsixbox
1443 \newsavebox\@AUaffsevenbox
1444 \newsavebox\@AUaffeightbox
1445 \newsavebox\@AUaffninebox
1446 \newsavebox\@AUafftenbox
1447 \newsavebox\@AUaffelevenbox
1448 \newsavebox\@AUafftwelvebox
1449 \newsavebox\@AUaffthirteenbox
1450 \newsavebox\@AUafffourteenbox
1451 \newsavebox\@AUafffifteenbox
1452
1453 %
1454 \newsavebox\@finalAUboxfromone
1455 \newsavebox\@finalAUboxfromtwo
1456 \newsavebox\@finalAUboxfromthree
1457 \newsavebox\@finalAUboxfromfour
1458 \newsavebox\@finalAUboxfromfive
1459 \newsavebox\@finalAUboxfromsix
1460 \newsavebox\@finalAUboxfromseven
1461 \newsavebox\@finalAUboxfromeight
1462 \newsavebox\@finalAUboxfromnine
1463 \newsavebox\@finalAUboxfromten
1464 \newsavebox\@finalAUboxfromeleven
1465 \newsavebox\@finalAUboxfromtwelve
1466 \newsavebox\@finalAUboxfromthirteen
1467 \newsavebox\@finalAUboxfromfourteen
1468 \newsavebox\@finalAUboxfromfifteen
1469 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1470
1471 \def\@ca#1#2{%
1472 %  \def\chapter@author{#1}%
1473 %  \def\chapter@affiliation{#2}%
1474   \if@filesw%
1475     \write\@auxout{%
1476 \string\@writefile{toc}{\string\author{#1}{}}%
1477 }%
1478   \fi
1479 %%%%%%%%%%%%%%%
1480
1481 \ifnum\c@numauthors>8
1482     \resetcounter{numauthors}
1483 \fi 
1484 \stepcounter{numauthors}
1485 %%\the\c@numauthors
1486 \ifnum\c@numauthors=1 % 
1487     \sbox\@AUonebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1488     \sbox\@AUaffonebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1489     \sbox\@finalAUboxfromone{\copy\@AUonebox}
1490     \def\chapter@authorone{\copy\@finalAUboxfromone}
1491     \def\chapter@affiliationone{\copy\@AUaffonebox}
1492 \fi \ifnum\c@numauthors=2
1493     \sbox\@AUtwobox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1494     \sbox\@AUafftwobox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1495     \sbox\@finalAUboxfromtwo{\copy\@AUtwobox}
1496     \def\chapter@authortwo{\copy\@finalAUboxfromtwo}
1497     \def\chapter@affiliationtwo{\copy\@AUafftwobox}
1498 \fi \ifnum\c@numauthors=3
1499     \sbox\@AUthreebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1500     \sbox\@AUaffthreebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1501     \sbox\@finalAUboxfromthree{\copy\@AUthreebox}
1502     \def\chapter@authorthree{\copy\@finalAUboxfromthree}
1503     \def\chapter@affiliationthree{\copy\@AUaffthreebox}
1504 \fi \ifnum\c@numauthors=4
1505     \sbox\@AUfourbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1506     \sbox\@AUafffourbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1507     \sbox\@finalAUboxfromfour{\copy\@AUfourbox}
1508     \def\chapter@authorfour{\copy\@finalAUboxfromfour}
1509     \def\chapter@affiliationfour{\copy\@AUafffourbox}
1510 \fi \ifnum\c@numauthors=5
1511     \sbox\@AUfivebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1512     \sbox\@AUafffivebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1513     \sbox\@finalAUboxfromfive{\copy\@AUfivebox}
1514     \def\chapter@authorfive{\copy\@finalAUboxfromfive}
1515     \def\chapter@affiliationfive{\copy\@AUafffivebox}
1516 \fi \ifnum\c@numauthors=6
1517     \sbox\@AUsixbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1518     \sbox\@AUaffsixbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1519     \sbox\@finalAUboxfromsix{\copy\@AUsixbox}
1520     \def\chapter@authorsix{\copy\@finalAUboxfromsix}
1521     \def\chapter@affiliationsix{\copy\@AUaffsixbox}
1522 \fi \ifnum\c@numauthors=7
1523     \sbox\@AUsevenbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1524     \sbox\@AUaffsevenbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1525     \sbox\@finalAUboxfromseven{\copy\@AUsevenbox}
1526     \def\chapter@authorseven{\copy\@finalAUboxfromseven}
1527     \def\chapter@affiliationseven{\copy\@AUaffsevenbox}
1528 \fi \ifnum\c@numauthors=8
1529     \sbox\@AUeightbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1530     \sbox\@AUaffeightbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1531     \sbox\@finalAUboxfromeight{\copy\@AUeightbox}
1532     \def\chapter@authoreight{\copy\@finalAUboxfromeight}
1533     \def\chapter@affiliationeight{\copy\@AUaffeightbox}
1534 \fi \ifnum\c@numauthors=9
1535     \sbox\@AUninebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1536     \sbox\@AUaffninebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1537     \sbox\@finalAUboxfromnine{\copy\@AUninebox}
1538     \def\chapter@authornine{\copy\@finalAUboxfromnine}
1539     \def\chapter@affiliationnine{\copy\@AUaffninebox}
1540 \fi}
1541
1542
1543 \def\@caplusone{\@ifstar{\@scaplusone}{\@ifnextchar[{\@xcaplusone}{\@xcaplusone[]}}}
1544 \def\@xcaplusone[#1]#2#3{%
1545   \def\@@empty{#1}\ifx\@empty\@@empty\@ca{#2}{#3}\else\@ca{#2}{#1}\fi\@scaplusone{#2}{#3}}
1546 \def\@scaplusone#1#2{%
1547   \ifhmode\vskip-12pt\fi
1548 %%Shashi Commented
1549 %%%  \noindent\hskip3pc{\CAPlusOneFont\baselineskip14pt #1\def\@t{#2}\ifx\@t\@empty\else,\fi}\hskip6pt{\CAAPlusOneFont #2}\par
1550 }
1551
1552 \def\chapterauthoronly#1#2{\@ca{#1}{}\@scaplusone{#1}{#2}}
1553 \def\myaddcontentsline#1#2#3{\pagebreak[3]%
1554   \if@filesw
1555     \begingroup
1556     \let\label\@gobble\let\index\@gobble\let\glossary\@gobble
1557     \def\break{\ }%
1558     \def\protect##1{\string ##1 }%
1559     \@temptokena{\thepage}%
1560     \edef\@tempa{\write#1{\string\chapcontentsline{#2}{\string\raggedright\space #3}{\the\@temptokena}}}\@tempa
1561     \if@nobreak\ifvmode\nobreak\fi\fi
1562     \endgroup
1563   \fi}
1564 \def\chapcontentsline#1{\csname l@#1\endcsname}
1565 \def\l@chapsection{\@mydottedtocline{1}{\z@}{6pt}}
1566 \def\l@chapsubsection{\@mydottedtocline{2}{\secnumwidth}{6pt}}
1567 \def\l@chapsubsubsection{\@mydottedtocline{3}{\subsecnumwidth}{36pt}}
1568 \newcount\c@chaptocdepth
1569 \setcounter{chaptocdepth}{3}
1570 \def\@mytocline#1#2#3#4#5{%
1571   \ifnum #1>\c@chaptocdepth
1572   \else
1573     \vskip 2pt plus.2\p@
1574     \ifnum #1=1\ifnum\c@chaptocdepth>1\addvspace{12pt}\fi\fi
1575     {\leftskip #2\relax% \rightskip \@tocrmarg \parfillskip -\rightskip
1576       \interlinepenalty\@M
1577       \leavevmode
1578       \@tempdima #3\relax
1579       \rightskip\z@
1580       \vbox{\ChapTOCFont #4\nobreak}%
1581       \par}\fi}
1582 \def\@mydottedtocline#1#2#3#4#5{%
1583   \ifnum #1>\c@chaptocdepth
1584   \else
1585 \fontsize{10}{12}\selectfont
1586 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1587      % \parindent #2\relax\@afterindenttrue
1588       \interlinepenalty\@M
1589       \leavevmode
1590       \def\@dotsep{1.2}%
1591       \@tempdima #3\relax
1592       \rightskip\z@
1593 %      \advance\hsize-\secnumwidth
1594 %      \hskip-\secnumwidth
1595 \if@sevenbyten
1596 \hangindent\secnumwidth\hsize372pt\else\hangindent\secnumwidth\hsize312pt\fi 
1597 #4
1598         \if@pdf
1599           \hfill
1600         \else
1601           \nobreak\leaders\hbox{$\m@th\mkern\@dotsep mu.\mkern\@dotsep mu$}\hfill\nobreak
1602           \hbox to24\p@{\hfil #5}\fi
1603       \par}\fi}      
1604
1605 \newcommand\halftitle{\clearpage\thispagestyle{empty}%
1606       {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1607     \vbox{
1608     \vskip 22\p@
1609     \chap@rule
1610     \vskip -1\p@
1611     \FMHeadFont Half Title Page
1612     \vskip 59\p@}}%
1613     }
1614     
1615     \newcommand\booktitle{\cleardoublepage\thispagestyle{empty}%
1616       {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1617     \vbox{
1618     \vskip 22\p@
1619     \chap@rule
1620     \vskip -1\p@
1621     \FMHeadFont Title Page
1622     \vskip 59\p@}}%
1623     }
1624     
1625 \newcommand\dedication[1]{\clearpage\thispagestyle{empty}
1626 \vbox{\centering\addvspace{1in}\large #1}}
1627
1628 \newcommand\locpage{\clearpage\thispagestyle{empty}%
1629   {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1630     \vbox{
1631     \vskip 22\p@
1632     \chap@rule
1633     \vskip -1\p@
1634     \FMHeadFont LOC Page
1635     \vskip 59\p@}}%
1636     }
1637
1638 \newcommand\listoffigures{%
1639     \if@twocolumn
1640       \@restonecoltrue\onecolumn
1641     \else
1642       \@restonecolfalse
1643     \fi
1644     \chapter*{\listfigurename}%
1645       \@mkboth{\MakeUppercase\listfigurename}%
1646               {\MakeUppercase\listfigurename}%
1647     \@starttoc{lof}%
1648     \if@restonecol\twocolumn\fi
1649     }
1650 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.9em}}
1651 \newcommand\listoftables{%
1652     \if@twocolumn
1653       \@restonecoltrue\onecolumn
1654     \else
1655       \@restonecolfalse
1656     \fi
1657     \chapter*{\listtablename}%
1658       \@mkboth{%
1659           \MakeUppercase\listtablename}%
1660          {\MakeUppercase\listtablename}%
1661     \@starttoc{lot}%
1662     \if@restonecol\twocolumn\fi
1663     }
1664 \let\l@table\l@figure
1665 \newdimen\bibindent
1666 \setlength\bibindent{1.5em}
1667 \newenvironment{thebibliography}[1]
1668      {\chapter*{\bibname}%
1669       \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
1670 %%%       \addcontentsline{toc}{chapter}{\bibname}
1671       \list{\@biblabel{\@arabic\c@enumiv}}%
1672            {\settowidth\labelwidth{\@biblabel{#1}}%
1673             \leftmargin\labelwidth
1674             \advance\leftmargin\labelsep
1675             \@openbib@code
1676             \usecounter{enumiv}%
1677             \let\p@enumiv\@empty
1678             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
1679       \sloppy
1680       \clubpenalty4000
1681       \@clubpenalty \clubpenalty
1682       \widowpenalty4000%
1683       \sfcode`\.\@m}
1684      {\def\@noitemerr
1685        {\@latex@warning{Empty `thebibliography' environment}}%
1686       \endlist}
1687 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
1688 \let\@openbib@code\@empty
1689 \newenvironment{theindex}
1690                {\cleardoublepage\if@twocolumn
1691                   \@restonecolfalse
1692                 \else
1693                   \@restonecoltrue
1694                 \fi
1695                 \twocolumn[\@makeschapterhead{\indexname}]%
1696                 \@mkboth{\MakeUppercase\indexname}%
1697                         {\MakeUppercase\indexname}%
1698                         \markboth{Index}{Index}
1699                         \pagestyle{headings}
1700                         \addcontentsline{toc}{chapter}{\indexname}
1701                 \thispagestyle{folio}\parindent\z@\raggedright
1702                 \parskip\z@ \@plus .3\p@\relax
1703                 \columnseprule \z@
1704                 \columnsep 35\p@
1705                 \let\item\@idxitem}
1706                {\if@restonecol\onecolumn\else\clearpage\fi}
1707 \newcommand\@idxitem{\par\hangindent 40\p@}
1708 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
1709 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
1710 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
1711 \renewcommand\footnoterule{%
1712   \kern-3\p@
1713   \hrule\@width.4\columnwidth
1714   \kern2.6\p@}
1715 \@addtoreset{footnote}{chapter}
1716 \newcommand\@makefntext[1]{%
1717     \parindent 1em%
1718     \noindent
1719     \hb@xt@1.8em{\hss\@makefnmark}#1}
1720 \newcommand\contentsname{Contents}
1721 \newcommand\listfigurename{List of Figures}
1722 \newcommand\listtablename{List of Tables}
1723 \newcommand\bibname{Bibliography}
1724 \newcommand\indexname{Index}
1725 \newcommand\figurename{FIGURE}
1726 \newcommand\tablename{TABLE}
1727 \newcommand\partname{Part}
1728 \newcommand\chaptername{Chapter}
1729 \newcommand\appendixname{Appendix}
1730 \def\today{\ifcase\month\or
1731   January\or February\or March\or April\or May\or June\or
1732   July\or August\or September\or October\or November\or December\fi
1733   \space\number\day, \number\year}
1734 \setlength\columnsep{10\p@}
1735 \setlength\columnseprule{0\p@}
1736 \pagestyle{headings}
1737 \pagenumbering{arabic}
1738 \if@twoside
1739 \else
1740   \raggedbottom
1741 \fi
1742 \if@twocolumn
1743   \twocolumn
1744   \sloppy
1745   \flushbottom
1746 \else
1747   \onecolumn
1748 \fi
1749 \newcommand\crcrule{\hbox to\textwidth{\rule{\textwidth}{.5\p@}}}
1750 \newcommand\chap@rule{\crcrule}
1751 \newcommand\sec@rule{\crcrule}
1752 \def\@affiliate[#1]{\gdef\@affiliation{#1}}
1753 \def\@affiliation{}
1754
1755 \def\def@theequation{%
1756   \if@numberinsequence
1757     \def\theequation{%
1758 \if@numbysec\thesection\else\thechapter\fi.%
1759 \@arabic\c@shared}%
1760   \else
1761     \def\theequation{%
1762 \if@numbysec\thesection\else\thechapter\fi.%
1763 \@arabic\c@equation}\fi}
1764
1765 \def\affiliation#1{{\AffiliationFont\noindent #1\vskip 36bp}}
1766 \newbox\tempbox
1767
1768 \newdimen\nomenwidth
1769
1770 \newenvironment{symbollist}[1]{%
1771 \addvspace{12pt}
1772                         \setbox\tempbox\hbox{#1\hskip1em}%
1773    \global\nomenwidth\wd\tempbox
1774    %\section*{Sumbol Description}
1775 \noindent{\SectionHeadFont Symbol Description}\vskip6pt
1776 \begin{multicols}{2}}{%
1777                 \end{multicols}\par\addvspace{12pt}}
1778 \def\symbolentry#1#2{\par\noindent\@hangfrom{\hbox to \nomenwidth{#1\hss}}#2\par}
1779
1780 %%%%%%%%%%%%%%%%%%%%
1781
1782 \def\Boxhead#1{\par\addvspace{3pt plus2pt}\noindent{\centering\bfseries#1\par}\vskip3pt}
1783
1784
1785 \newbox\tempbox%
1786 \newdimen\tempdimen%
1787 %
1788 \newenvironment{shortbox}{\par\addvspace{12pt plus2pt}%
1789 \if@sunila
1790 \setbox\tempbox\vbox\bgroup\hsize27pc%
1791 \else\if@sunilb
1792 \setbox\tempbox\vbox\bgroup\hsize32pc%
1793 \else
1794 \setbox\tempbox\vbox\bgroup\hsize25pc%
1795 \fi\fi
1796 }{%
1797 \egroup%
1798 \noindent\fboxsep6pt\fboxrule.5pt\hspace*{0pt}\fbox{\box\tempbox}
1799 \par\addvspace{12pt plus2pt}}%
1800 %
1801
1802
1803 \def\grayink{\special{color cmyk 0 0 0 0.2}}
1804 \def\blackink{\special{color cmyk 0 0 0 1.0}} %  
1805 \def\whiteink{\special{color cmyk 0 0 0 0}} % 0%
1806
1807 \newenvironment{shadebox}{%
1808 \setbox\tempbox\hbox\bgroup\vbox\bgroup\leftskip12pt\rightskip\leftskip}{\par\addvspace{12pt}
1809 \egroup\egroup\par\addvspace{25pt} 
1810 \tempdimen\ht\tempbox
1811 \advance\tempdimen by 1pc
1812 \noindent{\hbox to \wd\tempbox{\vbox to \ht\tempbox{\hsize\textwidth{\special{color push}\grayink\vspace*{-12pt}\noindent\vrule height\tempdimen width\textwidth 
1813 \special{color pop}\blackink}}}}%
1814 \llap{\unhbox\tempbox}\par\addvspace{12pt}}
1815
1816
1817 %%%%%%%%%% Note %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1818 \newbox\tempbox
1819 \newdimen\notewidth
1820 \newenvironment{notelist}[1]{%
1821 \addvspace{6pt}
1822                         \setbox\tempbox\hbox{#1\hskip.57em}%
1823    \global\notewidth\wd\tempbox
1824 }{%
1825                 \par\addvspace{6pt}}
1826
1827 \def\notes#1#2{\par\noindent\@hangfrom{\hbox to \notewidth{\bf #1\hss}}#2\par}
1828 %%%%%%%%%%%%%%%% wherelist %%%%%%%%%%%%%%%%
1829 \newbox\wherebox
1830 \newdimen\wherewidth
1831 \newenvironment{wherelist}[1]{\leftskip10pt%
1832 \addvspace{6pt}
1833                         \setbox\wherebox\hbox{#1\hskip1em}%
1834    \global\wherewidth\wd\wherebox
1835 \noindent\hspace*{-14pt} where
1836 }{%
1837 \par\addvspace{6pt}}
1838 \def\whereentry#1#2#3{\par\noindent\@hangfrom{\hbox to \wherewidth{#1\hss}#2\hskip6pt}#3\par}
1839 %%%%%%%%%%%%
1840 \newenvironment{unnumlist}{%
1841   \ifnum \@enumdepth >3 \@toodeep\else
1842     \advance\@enumdepth\@ne
1843     \list{}{%
1844 \leftmargini27.5pt \leftmarginii17.5pt\leftmarginiv17.5pt
1845 %    \leftmargin\parindent
1846     \advance\leftmargin-.2em
1847     \advance\leftmarginii.2em
1848     \advance\leftmarginiii.1em
1849     \advance\leftmarginiv.2em
1850     \def\makelabel##1{\hss\llap{##1}}}
1851     \fi%
1852 }{%
1853   \endlist}
1854   %
1855 \newenvironment{extract}{%
1856                 \par\addvspace{11.5pt minus2pt}%
1857   \leftskip2em\rightskip\leftskip
1858  \noindent\ignorespaces
1859 }{%
1860                 \par\addvspace{11.5pt minus2pt}%
1861   \@endparenv}
1862 %
1863 %
1864 \def\VA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par #2\rightskip3em}
1865 %
1866 \newenvironment{VF}{\VfFont%
1867                 \par\addvspace{12pt minus2pt}%
1868 \noindent{\vrule height2pt width\textwidth}\par\vskip7.3pt
1869   \leftskip3em\rightskip\leftskip
1870  \noindent\ignorespaces
1871 }{%
1872 \par\vskip6pt\leftskip0pt\noindent{{\vrule height2pt width\textwidth}}\par\addvspace{12pt minus2pt}%
1873   \@endparenv}
1874 %
1875 \def\VTA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par {\it #2}\rightskip3em}
1876 %
1877 %
1878 \def\VT{\par\addvspace{3.5pt}\noindent}
1879
1880 \def\VH#1{{\normalfont\fontsize{12.5}{14.5}\itshape\centering\selectfont #1\par}\addvspace{5.5pt}}
1881 %
1882 \newenvironment{VT1}{\VfFont%
1883                 \par\addvspace{12pt minus2pt}%
1884 \noindent{\vrule height2pt width\textwidth}\par\vskip7.5pt
1885   \leftskip3em\rightskip\leftskip
1886 %\@afterheading
1887 \parindent0pt
1888  \noindent\ignorespaces
1889 }{%
1890 \par\vskip6pt\leftskip0pt\noindent{{\vrule height2pt width\textwidth}}\par\addvspace{10pt minus2pt}%
1891   \@endparenv}
1892 %
1893
1894 %%%%%%%%%%%% Glossary %%%%%%%%%%%%%%%%%%%%%%%
1895 \newenvironment{Glossary}
1896                {\list{}{\labelwidth\z@\leftmargin18pt \itemindent-18pt
1897                         \let\makelabel\glosslabel}}
1898                {\endlist}
1899 \newcommand\glosslabel[1]{\hspace\labelsep\normalfont\bfseries #1:}
1900
1901
1902 \tabcolsep 5pt
1903 \arrayrulewidth .5pt
1904 \doublerulesep 1pt
1905 %\newcounter{subtable}[table]
1906 \newif\if@tablerules\@tablerulestrue
1907 \newif\if@centertable\@centertabletrue
1908 \newif\if@centertabletitle\@centertabletitletrue
1909 \newbox\@tablebox
1910 \newbox\@tabletitlebox
1911 \newdimen\@tablewidth
1912 \newdimen\@tabletitlewidth
1913 \newdimen\max@tablewidth
1914 \newcommand\automaticrules{\@tablerulestrue}
1915 \newcommand\noautomaticrules{\@tablerulesfalse}
1916 \def\thetable{%
1917 \thechapter.%
1918 \@arabic\c@table}
1919 \def\thesubtable{%
1920 \thechapter.%
1921 \@arabic\c@table\alph{subtable}}
1922 \def\resettableletter{\setcounter{subtable}{0}}
1923 \def\@Tabletitle{}
1924 \newcommand\tabletitle{\@ifnextchar[{\@xtabletitle}{\@tabletitlewidth\z@\@ytabletitle}}
1925 \def\@@tabletitle{}
1926 \newif\ifshorttabletitle
1927 \global\shorttabletitlefalse
1928 %\def\@xtabletitle#1{\@tabletitlewidth#1\@ytabletitle}
1929 %
1930 \def\@xtabletitle[#1]#2{%
1931   \gdef\@@tabletitle{#1}%
1932   \gdef\@tabletitle{#2}%
1933   \let\@Tabletitle\@TableTitle
1934   \refstepcounter{table}%
1935   {\let\footnotemark\@empty
1936     \let\footnote\@gobble
1937     \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@@tabletitle}}}}
1938 %%%%
1939 %\long\def\@xtabletitle[#1]#2{%
1940 %  \setbox\@ttbox\hbox{#1}\global\shorttabletitletrue
1941 %  \def\@@tabletitle{\ifx\@ttbox\@empty\else#1\fi}%
1942 %  \def\@tabletitle{#2}%
1943 %  \let\@Tabletitle\@TableTitle
1944 %  \refstepcounter{table}%
1945 %  {\let\footnotemark\@empty
1946 %    \let\footnote\@gobble
1947 %    \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{%
1948 %\ifshorttabletitle\@@tabletitle\else\@tabletitle\fi}}}}
1949
1950 %%%
1951 %
1952 \long\def\@ytabletitle#1{%
1953   \def\@tabletitle{#1}%
1954   \let\@Tabletitle\@TableTitle
1955   \refstepcounter{table}%
1956   {\let\footnotemark\@empty
1957     \let\footnote\@gobble
1958     \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@tabletitle}}}}
1959 \def\tabletitlelet{\@ifnextchar[{\@xtabletitlelet}{\@tabletitlewidth\z@\@ytabletitlelet}}
1960 \def\@xtabletitlelet[#1]{\@tabletitlewidth#1\@ytabletitlelet}
1961 \long\def\@ytabletitlelet#1{%
1962   \def\@tabletitle{#1}%
1963   \let\@Tabletitle\@TableTitle
1964   \ifnum\c@subtable=0\stepcounter{table}\fi
1965   \let\@currentlabel\thesubtable
1966   {\let\footnotemark\@empty
1967     \let\footnote\@gobble
1968     \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@tabletitle}}}}
1969 \def\@TableTitle{%
1970   \noindent
1971   {%
1972     {{\TableNumberFont TABLE \thetable:\quad}}\TableTitleFont\@tabletitle}}
1973 \def\table{%
1974   %\long\def\caption##1{\tabletitle{##1}\@TableTitle\par}%
1975   \@float{table}}
1976 \@namedef{table*}{%
1977   \long\def\caption##1{\tabletitle{##1}\@TableTitle\par}%
1978   \@dblfloat{table}}
1979
1980 \def\@tabular{%
1981   \leavevmode
1982   \if@centertable\hfil\fi
1983   \vbox\bgroup
1984   \setbox\@tablebox\hbox\bgroup
1985   \baselineskip11pt
1986   \global\let\@fn\@empty
1987   \def\footnote##1{\footnotemark\gdef\@fn{##1}}
1988   \renewcommand{\arraystretch}{.916666666667}%
1989   $\let\@acol\@tabacol
1990   \let\@classz\@tabclassz
1991   \let\@classiv\@tabclassiv
1992   \let\\\@tabularcr
1993   \@tabarray}
1994 \def\endtabular{%
1995   \crcr\egroup\egroup $\egroup
1996   \@tablewidth\wd\@tablebox
1997   \ifnum\@tabletitlewidth>0
1998     {\hsize\@tabletitlewidth\raggedright\global\setbox\@tabletitlebox\vbox{\@Tabletitle}}%
1999   \else
2000     \setbox\@tabletitlebox\hbox{\@Tabletitle}%
2001     \ifnum\wd\@tabletitlebox>\@tablewidth
2002       {\hsize\@tablewidth\raggedright\global\setbox\@tabletitlebox\vbox{\@Tabletitle}}\fi
2003     \@tabletitlewidth\wd\@tabletitlebox\fi
2004   \ifnum\@tabletitlewidth>0
2005     \ifnum\@tabletitlewidth>\@tablewidth\@tablewidth\@tabletitlewidth\fi
2006     \hbox to\@tabletitlewidth{\if@centertabletitle\hfil\fi\box\@tabletitlebox\hfil}\par\fi
2007   \max@tablewidth\@tablewidth
2008   \ifnum\@tabletitlewidth>\max@tablewidth\max@tablewidth\@tabletitlewidth\fi
2009   \if@tablerules
2010     \ifnum\@tabletitlewidth>0\vskip-6pt\fi
2011     \hbox to\max@tablewidth{\if@centertable\hfil\fi\rule{\@tablewidth}{1pt}\hfil}\par\fi
2012   \hbox to\max@tablewidth{\if@centertable\hfil\fi\box\@tablebox\hfil}\vskip1pt
2013   \if@tablerules\hbox to\max@tablewidth{\if@centertable\hfil\fi\rule{\@tablewidth}{1pt}\hfil}\par\fi
2014   \ifx\@fn\@empty\else\FootnoteFont\parindent\z@\noindent\@makefnmark\@fn\par\fi
2015   \egroup\hfil
2016   \vskip 0pt plus 12pt
2017   \gdef\@Tabletitle{}}
2018
2019 \def\tch#1{\TableColHeadFont #1\llstrut\hfill}
2020 \def\tsh#1{\TableSubheadFont #1\hfill}
2021 \newcommand\llstrut{\rule[-6pt]{0pt}{14pt}}
2022 \newcommand\flstrut{\rule{0pt}{10pt}}
2023 \newcommand\tabletitlestrut{\rule{0pt}{20pt}}
2024
2025
2026 %%%%%%%%%%%%%%%%%%%%%%%%%%%
2027 \newdimen\concolwidth
2028 \newbox\stempbox
2029 \def\contributor#1#2#3{\addvspace{10pt}{%
2030 \setbox\stempbox\hbox{\ContributorAffiliationFont #2}
2031 \concolwidth\wd\stempbox
2032   \noindent{\ContributorNameFont #1}\par
2033   \ifdim\concolwidth>\columnwidth \vspace*{3pt} \else \fi
2034   \noindent{\vbox{\hangindent12pt\ContributorAffiliationFont #2}}\vskip-1\p@
2035   \noindent{\vbox{\hangindent12pt\ContributorAffiliationFont #3}}}}
2036
2037
2038 \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
2039     \hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
2040     
2041 \frenchspacing
2042 \tolerance=5000    
2043 \raggedbottom
2044
2045
2046 \@centertabletitlefalse
2047 \HeadingsBookChapter
2048 %\HeadingsChapterSection
2049 \endinput
2050 %%
2051 %% End of file `sunil.cls'.
2052 \0\0\0\0\0\0\0\0\0