]> 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    \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\string\makebox[\subsecnumwidth][l]{}#1}\fi
819   \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{\SubsubsectionHeadFont}*{#1}}
820 \def\@subsubsection[#1][#2]#3{%
821   \if@ChapterTOCs
822     \addtocounter{subsubsection}{1}%
823         \myaddcontentsline{\@chaptoc}{chapsubsubsection}{\protect\subsubnumberline{\thesubsubsection}#1}%
824     \addtocounter{subsubsection}{-1}\fi
825   \@startsection{subsubsection}{3}{\z@}{12\p@}{6\p@}{%
826     \SubsubsectionHeadFont}[#2]{#3}}
827
828
829 \if@twocolumn
830   \setlength\leftmargini  {2em}
831 \else
832   \setlength\leftmargini  {2.5em}
833 \fi
834 \leftmargin  \leftmargini
835 \setlength\leftmarginii  {2.2em}
836 \setlength\leftmarginiii {1.87em}
837 \setlength\leftmarginiv  {1.7em}
838 \if@twocolumn
839   \setlength\leftmarginv  {.5em}
840   \setlength\leftmarginvi {.5em}
841 \else
842   \setlength\leftmarginv  {1em}
843   \setlength\leftmarginvi {1em}
844 \fi
845 \setlength  \labelsep  {.5em}
846 \setlength  \labelwidth{\leftmargini}
847 \addtolength\labelwidth{-\labelsep}
848 \@beginparpenalty -\@lowpenalty
849 \@endparpenalty   -\@lowpenalty
850 \@itempenalty     -\@lowpenalty
851 \renewcommand\theenumi{\@arabic\c@enumi}
852 \renewcommand\theenumii{\@alph\c@enumii}
853 \renewcommand\theenumiii{\@roman\c@enumiii}
854 \renewcommand\theenumiv{\@Alph\c@enumiv}
855 \newcommand\labelenumi{\theenumi.}
856 \newcommand\labelenumii{(\theenumii)}
857 \newcommand\labelenumiii{\theenumiii.}
858 \newcommand\labelenumiv{\theenumiv.}
859 \renewcommand\p@enumii{\theenumi}
860 \renewcommand\p@enumiii{\theenumi(\theenumii)}
861 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
862 \newcommand\labelitemi{\textbullet}
863 \newcommand\labelitemii{\normalfont\bfseries \textendash}
864 \newcommand\labelitemiii{\textasteriskcentered}
865 \newcommand\labelitemiv{\textperiodcentered}
866 \newenvironment{description}
867                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
868                         \let\makelabel\descriptionlabel}}
869                {\endlist}
870 \newcommand*\descriptionlabel[1]{\hspace\labelsep
871                                 \normalfont\bfseries #1}
872 \newenvironment{verse}
873                {\let\\\@centercr
874                 \list{}{\itemsep      \z@
875                         \itemindent   -1.5em%
876                         \listparindent\itemindent
877                         \rightmargin  \leftmargin
878                         \advance\leftmargin 1.5em}%
879                 \item\relax}
880                {\endlist}
881 \newenvironment{quotation}
882                {\list{}{\listparindent 1.5em%
883                         \itemindent    \listparindent
884                         \rightmargin   \leftmargin
885                         \parsep        \z@ \@plus\p@}%
886                 \item\relax}
887                {\endlist}
888 \newenvironment{quote}
889                {\list{}{\rightmargin\leftmargin}%
890                 \item\relax}
891                {\endlist}
892 \if@compatibility
893 \newenvironment{titlepage}
894     {%
895       \cleardoublepage
896       \if@twocolumn
897         \@restonecoltrue\onecolumn
898       \else
899         \@restonecolfalse\newpage
900       \fi
901       \thispagestyle{empty}%
902       \setcounter{page}\z@
903     }%
904     {\if@restonecol\twocolumn \else \newpage \fi
905     }
906 \else
907 \newenvironment{titlepage}
908     {%
909       \cleardoublepage
910       \if@twocolumn
911         \@restonecoltrue\onecolumn
912       \else
913         \@restonecolfalse\newpage
914       \fi
915       \thispagestyle{empty}%
916       \setcounter{page}\@ne
917     }%
918     {\if@restonecol\twocolumn \else \newpage \fi
919      \if@twoside\else
920         \setcounter{page}\@ne
921      \fi
922     }
923 \fi
924 \newcommand\appendix{\par
925   \setcounter{chapter}{0}%
926   \setcounter{section}{0}%
927   \gdef\@chapapp{\appendixname}%
928   \gdef\thechapter{\@Alph\c@chapter}}
929 \setlength\arraycolsep{5\p@}
930 \setlength\tabcolsep{6\p@}
931 \setlength\arrayrulewidth{.4\p@}
932 \setlength\doublerulesep{2\p@}
933 \setlength\tabbingsep{\labelsep}
934 \skip\@mpfootins = \skip\footins
935 \setlength\fboxsep{3\p@}
936 \setlength\fboxrule{.4\p@}
937 \@addtoreset {equation}{chapter}
938 \renewcommand\theequation
939   {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
940 \newcounter{figure}[chapter]
941 \renewcommand \thefigure
942      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
943 \def\fps@figure{tbp}
944 \def\ftype@figure{1}
945 \def\ext@figure{lof}
946 \def\fnum@figure{\figurename\nobreakspace\thefigure}
947 \newenvironment{figure}
948                {\@float{figure}}
949                {\end@float}
950 \newenvironment{figure*}
951                {\@dblfloat{figure}}
952                {\end@dblfloat}
953 \newcounter{table}[chapter]
954 \renewcommand \thetable
955      {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
956 \def\fps@table{tbp}
957 \def\ftype@table{2}
958 \def\ext@table{lot}
959 \def\fnum@table{\tablename\nobreakspace\thetable}
960 \newenvironment{table}
961                {\@float{table}}
962                {\end@float}
963 \newenvironment{table*}
964                {\@dblfloat{table}}
965                {\end@dblfloat}
966 \newlength\abovecaptionskip
967 \newlength\belowcaptionskip
968 \setlength\abovecaptionskip{10\p@}
969 \setlength\belowcaptionskip{0\p@}
970 \long\def\@makecaption#1#2{%
971   \vskip\abovecaptionskip
972   \sbox\@tempboxa{{\FigCapFont #1} #2}%
973   \ifdim \wd\@tempboxa >\hsize
974     {\FigCapFont #1} #2\par
975   \else
976     \global \@minipagefalse
977     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
978   \fi
979   \vskip\belowcaptionskip}
980 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
981 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
982 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
983 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
984 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
985 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
986 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
987 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
988 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
989 \newcommand\@pnumwidth{1.55em}
990 \newcommand\@tocrmarg{2.55em}
991 \newcommand\@dotsep{4.5}
992 \setcounter{tocdepth}{1}
993
994
995 \newcounter{numauthors}
996 \newif\if@break
997 \newif\if@firstauthor
998 \newcommand\tableofcontents{\cleardoublepage\thispagestyle{folio}%
999   \gdef\chapterauthor{\@caplusone}%
1000   \gdef\endchapterauthors{\end@casplusone}%
1001   \make@cornermarks
1002     \if@twocolumn
1003       \@restonecoltrue\onecolumn
1004     \else
1005       \@restonecolfalse
1006     \fi
1007       {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1008     \vbox{
1009     \vskip 22\p@
1010     \chap@rule
1011     \vskip -1\p@
1012     \FMHeadFont \contentsname
1013     \vskip 59\p@}}%
1014 %%%    \chapter*{\contentsname
1015 %%%        \@mkboth{%
1016 %%%           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
1017 \markboth{Contents}{Contents}
1018              {\let\break\space
1019     \let\author\toc@author
1020     \reset@authors
1021     \let\toc@draw\relax
1022     \@starttoc{toc}
1023     \toc@draw
1024     }
1025     \if@restonecol\twocolumn\fi
1026     }
1027
1028 \def\draw@part#1#2{%
1029   \addpenalty{-\@highpenalty}%
1030   \vskip1.5em plus\p@
1031   \@tempdima1.5em
1032   \begingroup
1033     \parindent\z@\rightskip\@pnumwidth
1034     \parfillskip-\rightskip
1035     \bfseries
1036     \leavevmode
1037     \advance\leftskip\@tempdima
1038     \hskip-\leftskip
1039     {#1\hfil}\nobreak
1040       \if@pdf
1041       \else
1042         \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1043 \fi
1044     \par
1045     \penalty\@highpenalty\endgroup}
1046
1047 \let\toc@draw\relax
1048 %
1049 \def\l@part#1#2{% 
1050 \toc@draw
1051  \gdef\toc@draw{\draw@part{\large #1}{#2}}}
1052
1053   \def\l@fm#1#2{%
1054   \toc@draw
1055   \gdef\toc@draw{\draw@fm{#1}{#2}}}
1056 \def\@pnumwidth{1.8em}
1057 \def\draw@fm#1#2{%
1058   \addpenalty{-\@highpenalty}%
1059   \vskip1em plus\p@
1060   \@tempdima1.5em
1061   \begingroup
1062     \parindent\z@\rightskip\@pnumwidth
1063     \parfillskip-\rightskip
1064     \bfseries
1065     \leavevmode
1066     \advance\leftskip\@tempdima
1067     \hskip-\leftskip
1068     {#1\hfil}\nobreak
1069       \if@pdf
1070       \else
1071         \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1072 \fi
1073     \par
1074     \penalty\@highpenalty\endgroup}
1075     
1076
1077   \def\l@chapter#1#2{%
1078   \toc@draw
1079   \gdef\toc@draw{\draw@chapter{#1}{#2}}}
1080 \def\@pnumwidth{1.8em}
1081 \def\draw@chapter#1#2{%
1082   \addpenalty{-\@highpenalty}%
1083   \vskip1.5em plus\p@
1084   \@tempdima1.5em
1085   \begingroup
1086     \parindent\z@\rightskip\@pnumwidth
1087     \parfillskip-\rightskip
1088     \bfseries
1089     \leavevmode
1090     \advance\leftskip\@tempdima
1091     \hskip-\leftskip
1092     {#1\hfil}\nobreak
1093       \if@pdf
1094       \else
1095         \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}%
1096 \fi
1097     \par
1098     {\it\draw@authors}%
1099     \penalty\@highpenalty\endgroup}
1100 \def\toc@author#1#2{%
1101   \if@firstauthor
1102     \@firstauthorfalse
1103   \else
1104     \ifx\@authors\@empty
1105       \xdef\@authors{\last@author}%
1106     \else
1107       \@cons{\@authors}{, \last@author}\fi\fi
1108   \stepcounter{numauthors}%
1109 %%%%%%% commented and deleted below the second part to aviod inaccessible error % shashi % September-2008
1110 %%  \gdef\last@author{#1 {\rm\fontsize{9\p@}{11\p@}\selectfont #2}}
1111 \gdef\last@author{#1}
1112 }
1113 \def\draw@authors{%
1114   \let\@t\@authors
1115         \hskip\leftskip
1116   \noindent\vbox{\hsize25pc\raggedright\addvspace{4pt}\ifx\@t\@empty
1117     \let\@t\last@author\fi
1118   \ifx\@t\@empty\else
1119     \hskip\leftskip
1120     \ifx\@authors\@empty
1121     \else
1122       \@authors
1123       \ifnum\c@numauthors>2,\fi
1124       \if@break\break\fi
1125       \ and \fi
1126     \last@author\break\fi
1127   \reset@authors}}
1128 \def\reset@authors{%
1129   \gdef\@authors{}%
1130   \gdef\last@author{}%
1131   \@firstauthortrue
1132   \setcounter{numauthors}{0}}
1133 \newlength\section@toc@skip
1134 \section@toc@skip1.5em
1135 \newlength\SectionTOCWidth
1136 \SectionTOCWidth2.3em
1137 \def\l@section#1#2{%
1138   \toc@draw
1139   \gdef\toc@draw{\draw@section{#1}{#2}}}
1140 \def\draw@section#1#2{%
1141   \@newdottedtocline{1}{\section@toc@skip}{\SectionTOCWidth}{#1 }{{
1142 \tocfont #2}}}
1143 \newlength\subsection@toc@skip
1144 \subsection@toc@skip\section@toc@skip
1145 \advance\subsection@toc@skip\SectionTOCWidth
1146 \newlength\SubSectionTOCWidth
1147 \SubSectionTOCWidth3.2em
1148 \def\l@subsection#1#2{%
1149   \toc@draw
1150   \gdef\toc@draw{\draw@subsection{#1}{#2}}}
1151 \def\draw@subsection#1#2{%
1152   \@dottedtocline{2}{\subsection@toc@skip}{\SubSectionTOCWidth}{#1}{{
1153 \tocfont #2}}}
1154 \newlength\subsubsection@toc@skip
1155 \subsubsection@toc@skip\subsection@toc@skip
1156 \advance\subsubsection@toc@skip\SubSectionTOCWidth
1157 \newlength\SubSubSectionTOCWidth
1158 \SubSubSectionTOCWidth4.1em
1159 \def\l@subsubsection#1#2{%
1160   \toc@draw
1161   \gdef\toc@draw{\draw@subsubsection{#1}{#2}}}
1162 \def\draw@subsubsection#1#2{%
1163   \@dottedtocline{3}{\subsubsection@toc@skip}{\SubSubSectionTOCWidth}{#1}{{
1164 \tocfont #2}}}
1165 \newlength\paragraph@toc@skip
1166 \paragraph@toc@skip\subsubsection@toc@skip
1167 \advance\paragraph@toc@skip\SubSubSectionTOCWidth
1168 \newlength\ParagraphTOCWidth
1169 \ParagraphTOCWidth4.1em
1170 \def\l@paragraph#1#2{%
1171   \toc@draw
1172   \gdef\toc@draw{\draw@paragraph{#1}{#2}}}
1173 \def\draw@paragraph#1#2{%
1174   \@dottedtocline{4}{\paragraph@toc@skip}{\ParagraphTOCWidth}{#1}{{
1175 \tocfont #2}}}
1176 \newlength\subparagraph@toc@skip
1177 \subparagraph@toc@skip\paragraph@toc@skip
1178 \advance\subparagraph@toc@skip\ParagraphTOCWidth
1179 \def\l@subparagraph#1#2{%
1180   \toc@draw
1181   \gdef\toc@draw{\draw@subparagraph{#1}{#2}}}
1182 \def\draw@subparagraph#1#2{%
1183   \@dottedtocline{5}{\subparagraph@toc@skip}{6em}{#1}{{
1184 \tocfont #2}}}
1185
1186 \def\@newdottedtocline#1#2#3#4#5{%
1187   \ifnum #1>\c@tocdepth
1188   \else
1189     \vskip \z@ %\@plus.2\p@
1190 %%%    {\leftskip #2\relax\rightskip\@tocrmarg\parfillskip-\rightskip
1191 %%%      \parindent #2\relax\@afterindenttrue
1192 %%%      \interlinepenalty\@M
1193 %%%      \leavevmode
1194 %%%      \@tempdima #3\relax
1195 %%%      \advance\leftskip\@tempdima\null\hskip-\leftskip
1196 %%%      {#4\hfil}\nobreak
1197 %%%      \if@pdf
1198 %%%      \else
1199 %%%        \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}\hfill
1200 %%%        \nobreak
1201 %%%        \hb@xt@\@pnumwidth{\hfil\normalfont\normalcolor #5}%
1202 %%%\fi
1203 %%%      \par}
1204      \fi
1205       }
1206
1207
1208 \def\@dottedtocline#1#2#3#4#5{%
1209   \ifnum #1>\c@tocdepth
1210   \else
1211     \vskip \z@ \@plus.2\p@
1212     {\leftskip #2\relax\rightskip\@tocrmarg\parfillskip-\rightskip
1213       \parindent #2\relax\@afterindenttrue
1214       \interlinepenalty\@M
1215       \leavevmode
1216       \@tempdima #3\relax
1217       \advance\leftskip\@tempdima\null\hskip-\leftskip
1218       {#4\hfil}\nobreak
1219       \if@pdf
1220       \else
1221         \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}\hfill
1222         \nobreak
1223         \hb@xt@\@pnumwidth{\hfil\normalfont\normalcolor #5}%
1224 \fi
1225       \par}\fi}
1226       
1227 \newcommand\chapterauthors{%
1228   \def\break{\string\break\ }%
1229   \def\protect##1{\string ##1 }}
1230 \def\end@cas{}
1231 \def\end@casplusone{\vskip4pt\@doendpe}
1232
1233 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
1234 \def\make@chaptoc{% chapter author 
1235   {\parindent\z@
1236   \newcommand\FolioBoldFont{}%
1237   \let\@b\bullet
1238   \def\bullet{\raisebox{2pt}{$\scriptscriptstyle\@b$}}%
1239   \let\SubsectionItalicFont\it
1240 %\ifx\chapter@author\@empty\else
1241 {\rm\fontsize{10\p@}{10\p@}\bfseries\selectfont
1242 %\the\c@numauthors
1243     \ifnum\c@numauthors=1
1244         \chapter@authorone\vskip6\p@
1245         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1246             \fi
1247         \ifnum\c@numauthors=2
1248                     \chapter@authorone\vskip6\p@
1249         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1250                         \chapter@authortwo\vskip6\p@
1251         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}
1252                             \fi
1253                                 \ifnum\c@numauthors=3
1254                                     \chapter@authorone\vskip6\p@
1255         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1256                                         \chapter@authortwo\vskip6\p@
1257         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1258                                             \chapter@authorthree\vskip6\p@
1259         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}
1260                                                 \fi
1261                                                     \ifnum\c@numauthors=4
1262                                                         \chapter@authorone\vskip6\p@
1263         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1264                                                             \chapter@authortwo\vskip6\p@
1265         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1266                                                                 \chapter@authorthree\vskip6\p@
1267         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1268                                                                     \chapter@authorfour\vskip6\p@
1269         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}
1270                                                                         \fi
1271                                                     \ifnum\c@numauthors=5
1272                                                         \chapter@authorone\vskip6\p@
1273         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1274                                                             \chapter@authortwo\vskip6\p@
1275         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1276                                                                 \chapter@authorthree\vskip6\p@
1277         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1278                                                                     \chapter@authorfour\vskip6\p@
1279         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1280                                                                             \chapter@authorfive\vskip6\p@
1281         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}
1282                                                                         \fi                                                                        
1283                                                     \ifnum\c@numauthors=6
1284                                                         \chapter@authorone\vskip6\p@
1285         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1286                                                             \chapter@authortwo\vskip6\p@
1287         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1288                                                                 \chapter@authorthree\vskip6\p@
1289         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1290                                                                     \chapter@authorfour\vskip6\p@
1291         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1292                                                                             \chapter@authorfive\vskip6\p@
1293         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1294                                                                                     \chapter@authorsix\vskip6\p@
1295         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}
1296                                                                         \fi                                                                                                                                                
1297                                                     \ifnum\c@numauthors=7
1298                                                         \chapter@authorone\vskip6\p@
1299         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1300                                                             \chapter@authortwo\vskip6\p@
1301         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1302                                                                 \chapter@authorthree\vskip6\p@
1303         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1304                                                                     \chapter@authorfour\vskip6\p@
1305         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1306                                                                       \chapter@authorfive\vskip6\p@
1307         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1308                                                                        \chapter@authorsix\vskip6\p@
1309         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}\vskip12\p@
1310                                                                                \chapter@authorseven\vskip6\p@
1311         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationseven}
1312                                                                         \fi                                                                                                                                                
1313                                                     \ifnum\c@numauthors=8
1314                                                         \chapter@authorone\vskip6\p@
1315         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1316                                                             \chapter@authortwo\vskip6\p@
1317         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1318                                                                 \chapter@authorthree\vskip6\p@
1319         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1320                                                                     \chapter@authorfour\vskip6\p@
1321         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1322                                                                       \chapter@authorfive\vskip6\p@
1323         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1324                                                                        \chapter@authorsix\vskip6\p@
1325         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}\vskip12\p@
1326                                                                        \chapter@authorseven\vskip6\p@
1327         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationseven}\vskip12\p@
1328                                                                         \chapter@authoreight\vskip6\p@
1329         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationeight}
1330                                                                         \fi                                                                                                                                                
1331                                                     \ifnum\c@numauthors=9
1332                                                         \chapter@authorone\vskip6\p@
1333         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationone}\vskip12\p@
1334                                                             \chapter@authortwo\vskip6\p@
1335         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationtwo}\vskip12\p@
1336                                                                 \chapter@authorthree\vskip6\p@
1337         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationthree}\vskip12\p@
1338                                                                     \chapter@authorfour\vskip6\p@
1339         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfour}\vskip12\p@
1340                                                                       \chapter@authorfive\vskip6\p@
1341         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationfive}\vskip12\p@
1342                                                                        \chapter@authorsix\vskip6\p@
1343         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationsix}\vskip12\p@
1344                                                                        \chapter@authorseven\vskip6\p@
1345         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationseven}\vskip12\p@
1346                                                                         \chapter@authoreight\vskip6\p@
1347         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationeight}\vskip12\p@
1348                                                                         \chapter@authornine\vskip6\p@
1349         {\it\fontsize{10\p@}{10\p@}\selectfont\chapter@affiliationnine}
1350                                                                         \fi                                                                                                                                                
1351                                                                        
1352 }
1353  \gdef\chapter@authorone{}\gdef\chapter@affiliationone{}%
1354  \gdef\chapter@authortwo{}\gdef\chapter@affiliationtwo{}%
1355  \gdef\chapter@authorthree{}\gdef\chapter@affiliationthree{}%
1356  \gdef\chapter@authorfour{}\gdef\chapter@affiliationfour{}%
1357   \gdef\chapter@authorfive{}\gdef\chapter@affiliationfive{}%
1358    \gdef\chapter@authorsix{}\gdef\chapter@affiliationsix{}%
1359     \gdef\chapter@authorseven{}\gdef\chapter@affiliationseven{}%
1360      \gdef\chapter@authoreight{}\gdef\chapter@affiliationeight{}%
1361       \gdef\chapter@authornine{}\gdef\chapter@affiliationnine{}%
1362        \gdef\chapter@authorten{}\gdef\chapter@affiliationten{}%
1363    \gdef\chapter@authoreleven{}\gdef\chapter@affiliationeleven{}%
1364     \gdef\chapter@authortwelve{}\gdef\chapter@affiliationtwelve{}%
1365      \gdef\chapter@authorthirteen{}\gdef\chapter@affiliationthirteen{}%
1366       \gdef\chapter@authorfourteen{}\gdef\chapter@affiliationfourteen{}%
1367        \gdef\chapter@authorfifteen{}\gdef\chapter@affiliationfifteen{}%       
1368
1369   \vskip 14.6\p@
1370 {\leftskip\secnumwidth\def\author##1##2{}\@input{\thechapter.toc}\par}%
1371   }
1372 \reset@authors}
1373 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1374 \newif\iffinishedfromone
1375 \global\finishedfromonefalse
1376 %
1377 \newif\iffinishedfromtwo
1378 \global\finishedfromtwofalse
1379 %
1380 \newif\iffinishedfromthree
1381 \global\finishedfromthreefalse
1382 %
1383 \newif\iffinishedfromfour
1384 \global\finishedfromfourfalse
1385 %
1386 \newif\iffinishedfromfive
1387 \global\finishedfromfivefalse
1388 %
1389 \newif\iffinishedfromsix
1390 \global\finishedfromsixfalse
1391 %
1392 \newif\iffinishedfromseven
1393 \global\finishedfromsevenfalse
1394 %
1395 \newif\iffinishedfromeight
1396 \global\finishedfromeightfalse
1397 %
1398 \newif\iffinishedfromnine
1399 \global\finishedfromninefalse
1400 %
1401 \newif\iffinishedfromten
1402 \global\finishedfromtenfalse
1403 %
1404 \newif\iffinishedfromeleven
1405 \global\finishedfromelevenfalse
1406 %
1407 \newif\iffinishedfromtwelve
1408 \global\finishedfromtwelvefalse
1409 %
1410 \newif\iffinishedfromthirteen
1411 \global\finishedfromthirteenfalse
1412 %
1413 \newif\iffinishedfromfourteen
1414 \global\finishedfromfourteenfalse
1415 %
1416 \newif\iffinishedfromfifteen
1417 \global\finishedfromfifteenfalse
1418 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1419 %
1420 \def\singleauthorchapter{\finishedfromonetrue}
1421 \def\twoauthorchapter{\finishedfromtwotrue}
1422 \def\threeauthorchapter{\finishedfromthreetrue}
1423 \def\fourauthorchapter{\finishedfromfourtrue}
1424 \def\fiveauthorchapter{\finishedfromfivetrue}
1425 \def\sixauthorchapter{\finishedfromsixtrue}
1426 \def\sevenauthorchapter{\finishedfromseventrue}
1427 \def\eightauthorchapter{\finishedfromeighttrue}
1428 \def\nineauthorchapter{\finishedfromninetrue}
1429 \def\tenauthorchapter{\finishedfromtentrue}
1430 \def\elevenauthorchapter{\finishedfromeleventrue}
1431 \def\twelveauthorchapter{\finishedfromtwelvetrue}
1432 \def\thirteenauthorchapter{\finishedfromthirteentrue}
1433 \def\fourteenauthorchapter{\finishedfromfourteentrue}
1434 \def\fifteenauthorchapter{\finishedfromfifteentrue}
1435 %
1436 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1437 \newif\iffinish
1438 \global\finishfalse
1439 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1440 \newsavebox\@AUonebox
1441 \newsavebox\@AUtwobox
1442 \newsavebox\@AUthreebox
1443 \newsavebox\@AUfourbox
1444 \newsavebox\@AUfivebox
1445 \newsavebox\@AUsixbox
1446 \newsavebox\@AUsevenbox
1447 \newsavebox\@AUeightbox
1448 \newsavebox\@AUninebox
1449 \newsavebox\@AUtenbox
1450 \newsavebox\@AUelevenbox
1451 \newsavebox\@AUtwelvebox
1452 \newsavebox\@AUthirteenbox
1453 \newsavebox\@AUfourteenbox
1454 \newsavebox\@AUfifteenbox
1455
1456 %
1457 \newsavebox\@AUaffonebox
1458 \newsavebox\@AUafftwobox
1459 \newsavebox\@AUaffthreebox
1460 \newsavebox\@AUafffourbox
1461 \newsavebox\@AUafffivebox
1462 \newsavebox\@AUaffsixbox
1463 \newsavebox\@AUaffsevenbox
1464 \newsavebox\@AUaffeightbox
1465 \newsavebox\@AUaffninebox
1466 \newsavebox\@AUafftenbox
1467 \newsavebox\@AUaffelevenbox
1468 \newsavebox\@AUafftwelvebox
1469 \newsavebox\@AUaffthirteenbox
1470 \newsavebox\@AUafffourteenbox
1471 \newsavebox\@AUafffifteenbox
1472
1473 %
1474 \newsavebox\@finalAUboxfromone
1475 \newsavebox\@finalAUboxfromtwo
1476 \newsavebox\@finalAUboxfromthree
1477 \newsavebox\@finalAUboxfromfour
1478 \newsavebox\@finalAUboxfromfive
1479 \newsavebox\@finalAUboxfromsix
1480 \newsavebox\@finalAUboxfromseven
1481 \newsavebox\@finalAUboxfromeight
1482 \newsavebox\@finalAUboxfromnine
1483 \newsavebox\@finalAUboxfromten
1484 \newsavebox\@finalAUboxfromeleven
1485 \newsavebox\@finalAUboxfromtwelve
1486 \newsavebox\@finalAUboxfromthirteen
1487 \newsavebox\@finalAUboxfromfourteen
1488 \newsavebox\@finalAUboxfromfifteen
1489 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1490
1491 \def\@ca#1#2{%
1492 %  \def\chapter@author{#1}%
1493 %  \def\chapter@affiliation{#2}%
1494   \if@filesw%
1495     \write\@auxout{%
1496 \string\@writefile{toc}{\string\author{#1}{}}%
1497 }%
1498   \fi
1499 %%%%%%%%%%%%%%%
1500
1501 \ifnum\c@numauthors>8
1502     \resetcounter{numauthors}
1503 \fi 
1504 \stepcounter{numauthors}
1505 %%\the\c@numauthors
1506 \ifnum\c@numauthors=1 % 
1507     \sbox\@AUonebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1508     \sbox\@AUaffonebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1509     \sbox\@finalAUboxfromone{\copy\@AUonebox}
1510     \def\chapter@authorone{\copy\@finalAUboxfromone}
1511     \def\chapter@affiliationone{\copy\@AUaffonebox}
1512 \fi \ifnum\c@numauthors=2
1513     \sbox\@AUtwobox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1514     \sbox\@AUafftwobox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1515     \sbox\@finalAUboxfromtwo{\copy\@AUtwobox}
1516     \def\chapter@authortwo{\copy\@finalAUboxfromtwo}
1517     \def\chapter@affiliationtwo{\copy\@AUafftwobox}
1518 \fi \ifnum\c@numauthors=3
1519     \sbox\@AUthreebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1520     \sbox\@AUaffthreebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1521     \sbox\@finalAUboxfromthree{\copy\@AUthreebox}
1522     \def\chapter@authorthree{\copy\@finalAUboxfromthree}
1523     \def\chapter@affiliationthree{\copy\@AUaffthreebox}
1524 \fi \ifnum\c@numauthors=4
1525     \sbox\@AUfourbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1526     \sbox\@AUafffourbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1527     \sbox\@finalAUboxfromfour{\copy\@AUfourbox}
1528     \def\chapter@authorfour{\copy\@finalAUboxfromfour}
1529     \def\chapter@affiliationfour{\copy\@AUafffourbox}
1530 \fi \ifnum\c@numauthors=5
1531     \sbox\@AUfivebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1532     \sbox\@AUafffivebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1533     \sbox\@finalAUboxfromfive{\copy\@AUfivebox}
1534     \def\chapter@authorfive{\copy\@finalAUboxfromfive}
1535     \def\chapter@affiliationfive{\copy\@AUafffivebox}
1536 \fi \ifnum\c@numauthors=6
1537     \sbox\@AUsixbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1538     \sbox\@AUaffsixbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1539     \sbox\@finalAUboxfromsix{\copy\@AUsixbox}
1540     \def\chapter@authorsix{\copy\@finalAUboxfromsix}
1541     \def\chapter@affiliationsix{\copy\@AUaffsixbox}
1542 \fi \ifnum\c@numauthors=7
1543     \sbox\@AUsevenbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1544     \sbox\@AUaffsevenbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1545     \sbox\@finalAUboxfromseven{\copy\@AUsevenbox}
1546     \def\chapter@authorseven{\copy\@finalAUboxfromseven}
1547     \def\chapter@affiliationseven{\copy\@AUaffsevenbox}
1548 \fi \ifnum\c@numauthors=8
1549     \sbox\@AUeightbox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1550     \sbox\@AUaffeightbox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1551     \sbox\@finalAUboxfromeight{\copy\@AUeightbox}
1552     \def\chapter@authoreight{\copy\@finalAUboxfromeight}
1553     \def\chapter@affiliationeight{\copy\@AUaffeightbox}
1554 \fi \ifnum\c@numauthors=9
1555     \sbox\@AUninebox{\vbox{\hsize\textwidth\CAPlusOneFont\raggedright\noindent \CAPlusOneFont#1}}
1556     \sbox\@AUaffninebox{\vbox{\hsize\textwidth\CAAPlusOneFont\noindent #2\par}}
1557     \sbox\@finalAUboxfromnine{\copy\@AUninebox}
1558     \def\chapter@authornine{\copy\@finalAUboxfromnine}
1559     \def\chapter@affiliationnine{\copy\@AUaffninebox}
1560 \fi}
1561
1562
1563 \def\@caplusone{\@ifstar{\@scaplusone}{\@ifnextchar[{\@xcaplusone}{\@xcaplusone[]}}}
1564 \def\@xcaplusone[#1]#2#3{%
1565   \def\@@empty{#1}\ifx\@empty\@@empty\@ca{#2}{#3}\else\@ca{#2}{#1}\fi\@scaplusone{#2}{#3}}
1566 \def\@scaplusone#1#2{%
1567   \ifhmode\vskip-12pt\fi
1568 %%Shashi Commented
1569 %%%  \noindent\hskip3pc{\CAPlusOneFont\baselineskip14pt #1\def\@t{#2}\ifx\@t\@empty\else,\fi}\hskip6pt{\CAAPlusOneFont #2}\par
1570 }
1571
1572 \def\chapterauthoronly#1#2{\@ca{#1}{}\@scaplusone{#1}{#2}}
1573 \def\myaddcontentsline#1#2#3{\pagebreak[3]%
1574   \if@filesw
1575     \begingroup
1576     \let\label\@gobble\let\index\@gobble\let\glossary\@gobble
1577     \def\break{\ }%
1578     \def\protect##1{\string ##1 }%
1579     \@temptokena{\thepage}%
1580     \edef\@tempa{\write#1{\string\chapcontentsline{#2}{\string\raggedright\space #3}{\the\@temptokena}}}\@tempa
1581     \if@nobreak\ifvmode\nobreak\fi\fi
1582     \endgroup
1583   \fi}
1584 \def\chapcontentsline#1{\csname l@#1\endcsname}
1585 \def\l@chapsection{\@mydottedtocline{1}{\z@}{6pt}}
1586 \def\l@chapsubsection{\@mydottedtocline{2}{\secnumwidth}{6pt}}
1587 \def\l@chapsubsubsection{\@mydottedtocline{3}{\subsecnumwidth}{36pt}}
1588 \newcount\c@chaptocdepth
1589 \setcounter{chaptocdepth}{3}
1590 \def\@mytocline#1#2#3#4#5{%
1591   \ifnum #1>\c@chaptocdepth
1592   \else
1593     \vskip 2pt plus.2\p@
1594     \ifnum #1=1\ifnum\c@chaptocdepth>1\addvspace{12pt}\fi\fi
1595     {\leftskip #2\relax% \rightskip \@tocrmarg \parfillskip -\rightskip
1596       \interlinepenalty\@M
1597       \leavevmode
1598       \@tempdima #3\relax
1599       \rightskip\z@
1600       \vbox{\ChapTOCFont #4\nobreak}%
1601       \par}\fi}
1602 \def\@mydottedtocline#1#2#3#4#5{%
1603   \ifnum #1>\c@chaptocdepth
1604   \else
1605 \fontsize{10}{12}\selectfont
1606 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1607      % \parindent #2\relax\@afterindenttrue
1608       \interlinepenalty\@M
1609       \leavevmode
1610       \def\@dotsep{1.2}%
1611       \@tempdima #3\relax
1612       \rightskip\z@
1613 %      \advance\hsize-\secnumwidth
1614 %      \hskip-\secnumwidth
1615 \if@sevenbyten
1616 \hangindent\secnumwidth\hsize372pt\else\hangindent\secnumwidth\hsize312pt\fi 
1617 #4
1618         \if@pdf
1619           \hfill
1620         \else
1621           \nobreak\leaders\hbox{$\m@th\mkern\@dotsep mu.\mkern\@dotsep mu$}\hfill\nobreak
1622           \hbox to24\p@{\hfil #5}\fi
1623       \par}\fi}      
1624
1625 \newcommand\halftitle{\clearpage\thispagestyle{empty}%
1626       {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1627     \vbox{
1628     \vskip 22\p@
1629     \chap@rule
1630     \vskip -1\p@
1631     \FMHeadFont Half Title Page
1632     \vskip 59\p@}}%
1633     }
1634     
1635     \newcommand\booktitle{\cleardoublepage\thispagestyle{empty}%
1636       {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1637     \vbox{
1638     \vskip 22\p@
1639     \chap@rule
1640     \vskip -1\p@
1641     \FMHeadFont Title Page
1642     \vskip 59\p@}}%
1643     }
1644     
1645 \newcommand\dedication[1]{\clearpage\thispagestyle{empty}
1646 \vbox{\centering\addvspace{1in}\large #1}}
1647
1648 \newcommand\locpage{\clearpage\thispagestyle{empty}%
1649   {\parindent \z@ \raggedright \baselineskip 6\p@ \lineskip \z@ \parskip \z@
1650     \vbox{
1651     \vskip 22\p@
1652     \chap@rule
1653     \vskip -1\p@
1654     \FMHeadFont LOC Page
1655     \vskip 59\p@}}%
1656     }
1657
1658 \newcommand\listoffigures{%
1659     \if@twocolumn
1660       \@restonecoltrue\onecolumn
1661     \else
1662       \@restonecolfalse
1663     \fi
1664     \chapter*{\listfigurename}%
1665       \@mkboth{\MakeUppercase\listfigurename}%
1666               {\MakeUppercase\listfigurename}%
1667     \@starttoc{lof}%
1668     \if@restonecol\twocolumn\fi
1669     }
1670 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.9em}}
1671 \newcommand\listoftables{%
1672     \if@twocolumn
1673       \@restonecoltrue\onecolumn
1674     \else
1675       \@restonecolfalse
1676     \fi
1677     \chapter*{\listtablename}%
1678       \@mkboth{%
1679           \MakeUppercase\listtablename}%
1680          {\MakeUppercase\listtablename}%
1681     \@starttoc{lot}%
1682     \if@restonecol\twocolumn\fi
1683     }
1684 \let\l@table\l@figure
1685 \newdimen\bibindent
1686 \setlength\bibindent{1.5em}
1687 \newenvironment{thebibliography}[1]
1688      {\chapter*{\bibname}%
1689       \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
1690 %%%       \addcontentsline{toc}{chapter}{\bibname}
1691       \list{\@biblabel{\@arabic\c@enumiv}}%
1692            {\settowidth\labelwidth{\@biblabel{#1}}%
1693             \leftmargin\labelwidth
1694             \advance\leftmargin\labelsep
1695             \@openbib@code
1696             \usecounter{enumiv}%
1697             \let\p@enumiv\@empty
1698             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
1699       \sloppy
1700       \clubpenalty4000
1701       \@clubpenalty \clubpenalty
1702       \widowpenalty4000%
1703       \sfcode`\.\@m}
1704      {\def\@noitemerr
1705        {\@latex@warning{Empty `thebibliography' environment}}%
1706       \endlist}
1707 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
1708 \let\@openbib@code\@empty
1709 \newenvironment{theindex}
1710                {\cleardoublepage\if@twocolumn
1711                   \@restonecolfalse
1712                 \else
1713                   \@restonecoltrue
1714                 \fi
1715                 \twocolumn[\@makeschapterhead{\indexname}]%
1716                 \@mkboth{\MakeUppercase\indexname}%
1717                         {\MakeUppercase\indexname}%
1718                         \markboth{Index}{Index}
1719                         \pagestyle{headings}
1720                         \addcontentsline{toc}{chapter}{\indexname}
1721                 \thispagestyle{folio}\parindent\z@\raggedright
1722                 \parskip\z@ \@plus .3\p@\relax
1723                 \columnseprule \z@
1724                 \columnsep 35\p@
1725                 \let\item\@idxitem}
1726                {\if@restonecol\onecolumn\else\clearpage\fi}
1727 \newcommand\@idxitem{\par\hangindent 40\p@}
1728 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
1729 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
1730 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
1731 \renewcommand\footnoterule{%
1732   \kern-3\p@
1733   \hrule\@width.4\columnwidth
1734   \kern2.6\p@}
1735 \@addtoreset{footnote}{chapter}
1736 \newcommand\@makefntext[1]{%
1737     \parindent 1em%
1738     \noindent
1739     \hb@xt@1.8em{\hss\@makefnmark}#1}
1740 \newcommand\contentsname{Contents}
1741 \newcommand\listfigurename{List of Figures}
1742 \newcommand\listtablename{List of Tables}
1743 \newcommand\bibname{Bibliography}
1744 \newcommand\indexname{Index}
1745 \newcommand\figurename{FIGURE}
1746 \newcommand\tablename{TABLE}
1747 \newcommand\partname{Part}
1748 \newcommand\chaptername{Chapter}
1749 \newcommand\appendixname{Appendix}
1750 \def\today{\ifcase\month\or
1751   January\or February\or March\or April\or May\or June\or
1752   July\or August\or September\or October\or November\or December\fi
1753   \space\number\day, \number\year}
1754 \setlength\columnsep{10\p@}
1755 \setlength\columnseprule{0\p@}
1756 \pagestyle{headings}
1757 \pagenumbering{arabic}
1758 \if@twoside
1759 \else
1760   \raggedbottom
1761 \fi
1762 \if@twocolumn
1763   \twocolumn
1764   \sloppy
1765   \flushbottom
1766 \else
1767   \onecolumn
1768 \fi
1769 \newcommand\crcrule{\hbox to\textwidth{\rule{\textwidth}{.5\p@}}}
1770 \newcommand\chap@rule{\crcrule}
1771 \newcommand\sec@rule{\crcrule}
1772 \def\@affiliate[#1]{\gdef\@affiliation{#1}}
1773 \def\@affiliation{}
1774
1775 \def\def@theequation{%
1776   \if@numberinsequence
1777     \def\theequation{%
1778 \if@numbysec\thesection\else\thechapter\fi.%
1779 \@arabic\c@shared}%
1780   \else
1781     \def\theequation{%
1782 \if@numbysec\thesection\else\thechapter\fi.%
1783 \@arabic\c@equation}\fi}
1784
1785 \def\affiliation#1{{\AffiliationFont\noindent #1\vskip 36bp}}
1786 \newbox\tempbox
1787
1788 \newdimen\nomenwidth
1789
1790 \newenvironment{symbollist}[1]{%
1791 \addvspace{12pt}
1792                         \setbox\tempbox\hbox{#1\hskip1em}%
1793    \global\nomenwidth\wd\tempbox
1794    %\section*{Sumbol Description}
1795 \noindent{\SectionHeadFont Symbol Description}\vskip6pt
1796 \begin{multicols}{2}}{%
1797                 \end{multicols}\par\addvspace{12pt}}
1798 \def\symbolentry#1#2{\par\noindent\@hangfrom{\hbox to \nomenwidth{#1\hss}}#2\par}
1799
1800 %%%%%%%%%%%%%%%%%%%%
1801
1802 \def\Boxhead#1{\par\addvspace{3pt plus2pt}\noindent{\centering\bfseries#1\par}\vskip3pt}
1803
1804
1805 \newbox\tempbox%
1806 \newdimen\tempdimen%
1807 %
1808 \newenvironment{shortbox}{\par\addvspace{12pt plus2pt}%
1809 \if@sunila
1810 \setbox\tempbox\vbox\bgroup\hsize27pc%
1811 \else\if@sunilb
1812 \setbox\tempbox\vbox\bgroup\hsize32pc%
1813 \else
1814 \setbox\tempbox\vbox\bgroup\hsize25pc%
1815 \fi\fi
1816 }{%
1817 \egroup%
1818 \noindent\fboxsep6pt\fboxrule.5pt\hspace*{0pt}\fbox{\box\tempbox}
1819 \par\addvspace{12pt plus2pt}}%
1820 %
1821
1822
1823 \def\grayink{\special{color cmyk 0 0 0 0.2}}
1824 \def\blackink{\special{color cmyk 0 0 0 1.0}} %  
1825 \def\whiteink{\special{color cmyk 0 0 0 0}} % 0%
1826
1827 \newenvironment{shadebox}{%
1828 \setbox\tempbox\hbox\bgroup\vbox\bgroup\leftskip12pt\rightskip\leftskip}{\par\addvspace{12pt}
1829 \egroup\egroup\par\addvspace{25pt} 
1830 \tempdimen\ht\tempbox
1831 \advance\tempdimen by 1pc
1832 \noindent{\hbox to \wd\tempbox{\vbox to \ht\tempbox{\hsize\textwidth{\special{color push}\grayink\vspace*{-12pt}\noindent\vrule height\tempdimen width\textwidth 
1833 \special{color pop}\blackink}}}}%
1834 \llap{\unhbox\tempbox}\par\addvspace{12pt}}
1835
1836
1837 %%%%%%%%%% Note %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1838 \newbox\tempbox
1839 \newdimen\notewidth
1840 \newenvironment{notelist}[1]{%
1841 \addvspace{6pt}
1842                         \setbox\tempbox\hbox{#1\hskip.57em}%
1843    \global\notewidth\wd\tempbox
1844 }{%
1845                 \par\addvspace{6pt}}
1846
1847 \def\notes#1#2{\par\noindent\@hangfrom{\hbox to \notewidth{\bf #1\hss}}#2\par}
1848 %%%%%%%%%%%%%%%% wherelist %%%%%%%%%%%%%%%%
1849 \newbox\wherebox
1850 \newdimen\wherewidth
1851 \newenvironment{wherelist}[1]{\leftskip10pt%
1852 \addvspace{6pt}
1853                         \setbox\wherebox\hbox{#1\hskip1em}%
1854    \global\wherewidth\wd\wherebox
1855 \noindent\hspace*{-14pt} where
1856 }{%
1857 \par\addvspace{6pt}}
1858 \def\whereentry#1#2#3{\par\noindent\@hangfrom{\hbox to \wherewidth{#1\hss}#2\hskip6pt}#3\par}
1859 %%%%%%%%%%%%
1860 \newenvironment{unnumlist}{%
1861   \ifnum \@enumdepth >3 \@toodeep\else
1862     \advance\@enumdepth\@ne
1863     \list{}{%
1864 \leftmargini27.5pt \leftmarginii17.5pt\leftmarginiv17.5pt
1865 %    \leftmargin\parindent
1866     \advance\leftmargin-.2em
1867     \advance\leftmarginii.2em
1868     \advance\leftmarginiii.1em
1869     \advance\leftmarginiv.2em
1870     \def\makelabel##1{\hss\llap{##1}}}
1871     \fi%
1872 }{%
1873   \endlist}
1874   %
1875 \newenvironment{extract}{%
1876                 \par\addvspace{11.5pt minus2pt}%
1877   \leftskip2em\rightskip\leftskip
1878  \noindent\ignorespaces
1879 }{%
1880                 \par\addvspace{11.5pt minus2pt}%
1881   \@endparenv}
1882 %
1883 %
1884 \def\VA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par #2\rightskip3em}
1885 %
1886 \newenvironment{VF}{\VfFont%
1887                 \par\addvspace{12pt minus2pt}%
1888 \noindent{\vrule height2pt width\textwidth}\par\vskip7.3pt
1889   \leftskip3em\rightskip\leftskip
1890  \noindent\ignorespaces
1891 }{%
1892 \par\vskip6pt\leftskip0pt\noindent{{\vrule height2pt width\textwidth}}\par\addvspace{12pt minus2pt}%
1893   \@endparenv}
1894 %
1895 \def\VTA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par {\it #2}\rightskip3em}
1896 %
1897 %
1898 \def\VT{\par\addvspace{3.5pt}\noindent}
1899
1900 \def\VH#1{{\normalfont\fontsize{12.5}{14.5}\itshape\centering\selectfont #1\par}\addvspace{5.5pt}}
1901 %
1902 \newenvironment{VT1}{\VfFont%
1903                 \par\addvspace{12pt minus2pt}%
1904 \noindent{\vrule height2pt width\textwidth}\par\vskip7.5pt
1905   \leftskip3em\rightskip\leftskip
1906 %\@afterheading
1907 \parindent0pt
1908  \noindent\ignorespaces
1909 }{%
1910 \par\vskip6pt\leftskip0pt\noindent{{\vrule height2pt width\textwidth}}\par\addvspace{10pt minus2pt}%
1911   \@endparenv}
1912 %
1913
1914 %%%%%%%%%%%% Glossary %%%%%%%%%%%%%%%%%%%%%%%
1915 \newenvironment{Glossary}
1916                {\list{}{\labelwidth\z@\leftmargin18pt \itemindent-18pt
1917                         \let\makelabel\glosslabel}}
1918                {\endlist}
1919 \newcommand\glosslabel[1]{\hspace\labelsep\normalfont\bfseries #1:}
1920
1921
1922 \tabcolsep 5pt
1923 \arrayrulewidth .5pt
1924 \doublerulesep 1pt
1925 %\newcounter{subtable}[table]
1926 \newif\if@tablerules\@tablerulestrue
1927 \newif\if@centertable\@centertabletrue
1928 \newif\if@centertabletitle\@centertabletitletrue
1929 \newbox\@tablebox
1930 \newbox\@tabletitlebox
1931 \newdimen\@tablewidth
1932 \newdimen\@tabletitlewidth
1933 \newdimen\max@tablewidth
1934 \newcommand\automaticrules{\@tablerulestrue}
1935 \newcommand\noautomaticrules{\@tablerulesfalse}
1936 \def\thetable{%
1937 \thechapter.%
1938 \@arabic\c@table}
1939 \def\thesubtable{%
1940 \thechapter.%
1941 \@arabic\c@table\alph{subtable}}
1942 \def\resettableletter{\setcounter{subtable}{0}}
1943 \def\@Tabletitle{}
1944 \newcommand\tabletitle{\@ifnextchar[{\@xtabletitle}{\@tabletitlewidth\z@\@ytabletitle}}
1945 \def\@@tabletitle{}
1946 \newif\ifshorttabletitle
1947 \global\shorttabletitlefalse
1948 %\def\@xtabletitle#1{\@tabletitlewidth#1\@ytabletitle}
1949 %
1950 \def\@xtabletitle[#1]#2{%
1951   \gdef\@@tabletitle{#1}%
1952   \gdef\@tabletitle{#2}%
1953   \let\@Tabletitle\@TableTitle
1954   \refstepcounter{table}%
1955   {\let\footnotemark\@empty
1956     \let\footnote\@gobble
1957     \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@@tabletitle}}}}
1958 %%%%
1959 %\long\def\@xtabletitle[#1]#2{%
1960 %  \setbox\@ttbox\hbox{#1}\global\shorttabletitletrue
1961 %  \def\@@tabletitle{\ifx\@ttbox\@empty\else#1\fi}%
1962 %  \def\@tabletitle{#2}%
1963 %  \let\@Tabletitle\@TableTitle
1964 %  \refstepcounter{table}%
1965 %  {\let\footnotemark\@empty
1966 %    \let\footnote\@gobble
1967 %    \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{%
1968 %\ifshorttabletitle\@@tabletitle\else\@tabletitle\fi}}}}
1969
1970 %%%
1971 %
1972 \long\def\@ytabletitle#1{%
1973   \def\@tabletitle{#1}%
1974   \let\@Tabletitle\@TableTitle
1975   \refstepcounter{table}%
1976   {\let\footnotemark\@empty
1977     \let\footnote\@gobble
1978     \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@tabletitle}}}}
1979 \def\tabletitlelet{\@ifnextchar[{\@xtabletitlelet}{\@tabletitlewidth\z@\@ytabletitlelet}}
1980 \def\@xtabletitlelet[#1]{\@tabletitlewidth#1\@ytabletitlelet}
1981 \long\def\@ytabletitlelet#1{%
1982   \def\@tabletitle{#1}%
1983   \let\@Tabletitle\@TableTitle
1984   \ifnum\c@subtable=0\stepcounter{table}\fi
1985   \let\@currentlabel\thesubtable
1986   {\let\footnotemark\@empty
1987     \let\footnote\@gobble
1988     \addcontentsline{\ext@table}{table}{\protect\numberline{\thetable}{\@tabletitle}}}}
1989 \def\@TableTitle{%
1990   \noindent
1991   {%
1992     {{\TableNumberFont TABLE \thetable:\quad}}\TableTitleFont\@tabletitle}}
1993 \def\table{%
1994   %\long\def\caption##1{\tabletitle{##1}\@TableTitle\par}%
1995   \@float{table}}
1996 \@namedef{table*}{%
1997   \long\def\caption##1{\tabletitle{##1}\@TableTitle\par}%
1998   \@dblfloat{table}}
1999
2000 \def\@tabular{%
2001   \leavevmode
2002   \if@centertable\hfil\fi
2003   \vbox\bgroup
2004   \setbox\@tablebox\hbox\bgroup
2005   \baselineskip11pt
2006   \global\let\@fn\@empty
2007   \def\footnote##1{\footnotemark\gdef\@fn{##1}}
2008   \renewcommand{\arraystretch}{.916666666667}%
2009   $\let\@acol\@tabacol
2010   \let\@classz\@tabclassz
2011   \let\@classiv\@tabclassiv
2012   \let\\\@tabularcr
2013   \@tabarray}
2014 \def\endtabular{%
2015   \crcr\egroup\egroup $\egroup
2016   \@tablewidth\wd\@tablebox
2017   \ifnum\@tabletitlewidth>0
2018     {\hsize\@tabletitlewidth\raggedright\global\setbox\@tabletitlebox\vbox{\@Tabletitle}}%
2019   \else
2020     \setbox\@tabletitlebox\hbox{\@Tabletitle}%
2021     \ifnum\wd\@tabletitlebox>\@tablewidth
2022       {\hsize\@tablewidth\raggedright\global\setbox\@tabletitlebox\vbox{\@Tabletitle}}\fi
2023     \@tabletitlewidth\wd\@tabletitlebox\fi
2024   \ifnum\@tabletitlewidth>0
2025     \ifnum\@tabletitlewidth>\@tablewidth\@tablewidth\@tabletitlewidth\fi
2026     \hbox to\@tabletitlewidth{\if@centertabletitle\hfil\fi\box\@tabletitlebox\hfil}\par\fi
2027   \max@tablewidth\@tablewidth
2028   \ifnum\@tabletitlewidth>\max@tablewidth\max@tablewidth\@tabletitlewidth\fi
2029   \if@tablerules
2030     \ifnum\@tabletitlewidth>0\vskip-6pt\fi
2031     \hbox to\max@tablewidth{\if@centertable\hfil\fi\rule{\@tablewidth}{1pt}\hfil}\par\fi
2032   \hbox to\max@tablewidth{\if@centertable\hfil\fi\box\@tablebox\hfil}\vskip1pt
2033   \if@tablerules\hbox to\max@tablewidth{\if@centertable\hfil\fi\rule{\@tablewidth}{1pt}\hfil}\par\fi
2034   \ifx\@fn\@empty\else\FootnoteFont\parindent\z@\noindent\@makefnmark\@fn\par\fi
2035   \egroup\hfil
2036   \vskip 0pt plus 12pt
2037   \gdef\@Tabletitle{}}
2038
2039 \def\tch#1{\TableColHeadFont #1\llstrut\hfill}
2040 \def\tsh#1{\TableSubheadFont #1\hfill}
2041 \newcommand\llstrut{\rule[-6pt]{0pt}{14pt}}
2042 \newcommand\flstrut{\rule{0pt}{10pt}}
2043 \newcommand\tabletitlestrut{\rule{0pt}{20pt}}
2044
2045
2046 %%%%%%%%%%%%%%%%%%%%%%%%%%%
2047 \newdimen\concolwidth
2048 \newbox\stempbox
2049 \def\contributor#1#2#3{\addvspace{10pt}{%
2050 \setbox\stempbox\hbox{\ContributorAffiliationFont #2}
2051 \concolwidth\wd\stempbox
2052   \noindent{\ContributorNameFont #1}\par
2053   \ifdim\concolwidth>\columnwidth \vspace*{3pt} \else \fi
2054   \noindent{\vbox{\hangindent12pt\ContributorAffiliationFont #2}}\vskip-1\p@
2055   \noindent{\vbox{\hangindent12pt\ContributorAffiliationFont #3}}}}
2056
2057
2058 \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
2059     \hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
2060     
2061 \frenchspacing
2062 \tolerance=5000    
2063 \raggedbottom
2064
2065
2066 \@centertabletitlefalse
2067 \HeadingsBookChapter
2068 %\HeadingsChapterSection
2069 \endinput
2070 %%
2071 %% End of file `sunil.cls'.
2072 \0\0\0\0\0\0\0\0\0