Debian Codegraph @

texmf-dist/doc/latex/sphdthesis/example/SPhdThesis.cls

raw
1
2 % SPhdThesis v1.0
3 % By Saurabh Garg ([email protected])
4 % Version 1.0 released 11.06.2013
5
6 \NeedsTeXFormat{LaTeX2e}
7 \ProvidesClass{SPhdThesis}[2013/06/11 v1.0 SPhdThesis class]
8
9 \RequirePackage{xkeyval}
10
11 % -----------------------------------------------------------------------------
12 % Define option for formatting for [screen] and print.
13 % When formatting for screen colors are used for links, tables, and algorithms.
14 % When formatting for print black color is used for links, tables, and algorithms.
15 \define@choicekey*[Sg]{PhDThesis}{media}{screen,print}[screen]{\def \SgIntMedia{#1}}
16 \setkeys[Sg]{PhDThesis}{media}
17
18 % -----------------------------------------------------------------------------
19 % Define option for formatting title page in lower or [upper] case.
20 \define@choicekey*[Sg]{PhDThesis}{titlecase}{upper,lower}[upper]{\def \SgIntTitleCase{#1}}
21 \setkeys[Sg]{PhDThesis}{titlecase}
22
23 % -----------------------------------------------------------------------------
24 % Define line spacing. The valid values are [onehalf] and double.
25 % Note that before using \SgLineSpacing setspace package must be loaded.
26 \define@choicekey*[Sg]{PhDThesis}{linespacing}[\val\nr]{onehalf,double}[onehalf]{%
27 \ifcase\nr\relax
28 \def \SgIntLineSpacing{\onehalfspacing}
29 \or
30 \def \SgIntLineSpacing{\doublespacing}
31 \fi
32 }
33 \setkeys[Sg]{PhDThesis}{linespacing}
34
35 % -----------------------------------------------------------------------------
36 % Define font size. The valid values are [11pt] and 12pt.
37 \define@choicekey*[Sg]{PhDThesis}{fontsize}{11pt,12pt}[11pt]{\def \SgIntFontSize{#1}}
38 \setkeys[Sg]{PhDThesis}{fontsize}
39
40 % -----------------------------------------------------------------------------
41 % Define font family to be used. Default is cm.
42 \define@choicekey*[Sg]{PhDThesis}{font}{cm,times,helvet,palatino}[cm]{\def \SgIntFont{#1}}
43 \setkeys[Sg]{PhDThesis}{font}
44
45 % -----------------------------------------------------------------------------
46 % Define open. The valid values are right and [any].
47 % Right makes chapters and entries in frontmatter begin only on right hand pages
48 % or on the next page available. Any puts them on the next available page.
49 \define@choicekey*[Sg]{PhDThesis}{open}[\val\nr]{right,any}[any]{%
50 \ifcase\nr\relax
51 \def \SgIntOpen {openright}
52 \or
53 \def \SgIntOpen {openany}
54 \fi
55 }
56 \setkeys[Sg]{PhDThesis}{open}
57
58 % -----------------------------------------------------------------------------
59 % Define pageside. The valid values are oneside and [twoside].
60 % Specifies whether double or single sided output should be generated.
61 \define@choicekey*[Sg]{PhDThesis}{pageside}{oneside,twoside}[twoside]{\def \SgIntPageSide{#1}}
62 \setkeys[Sg]{PhDThesis}{pageside}
63
64
65 % Process all options defined above with default values.
66 \ProcessOptionsX[Sg]<PhDThesis>
67
68 % Finally load the report class.
69 \LoadClass[a4paper, \SgIntFontSize, \SgIntOpen, \SgIntPageSide]{report}
70
71
72
73 % -----------------------------------------------------------------------
74 % F O N T S.
75
76 \RequirePackage[T1]{fontenc} % Use T1 encoded cm-super fonts.
77 \RequirePackage{microtype} % Improve typesetting.
78 \RequirePackage{fix-cm} % Support for arbitrary font size for cm.
79
80 % Specify the format for the section titles in toc.
81 \newcommand{\SgIntTocSectionFormat}{\bfseries}
82
83 % Specify the format for chapter name and number in chapter headings.
84 \newcommand{\SgIntChapNameFormat}{\fontsize{20}{50}\fontshape{sc}\selectfont}
85 \newcommand{\SgIntChapNumberFormat}{\fontsize{76}{80}\selectfont}
86
87 % Specify the format for chapter, section, and subsection titles.
88 \newcommand{\SgIntChapTitleFormat}{\LARGE\bfseries}
89 \newcommand{\SgIntSecTitleFormat}{\Large\bfseries}
90 \newcommand{\SgIntSubsecTitleFormat}{\large\bfseries}
91
92 % Specify the format for displaying chapter in fancy header.
93 \newcommand{\SgIntHeaderFormat}{\large\bfseries}
94 \newcommand{\SgIntPageNumFormat}{\bfseries}
95
96
97
98 % -----------------------------------------------------------------------------
99 % C A P T I O N S
100 %
101 % Nicer captions for figures and tables.
102 % caption package must be included before subfig and hyperref.
103
104 % Change the font of the caption to sans serif and make label bold.
105 \RequirePackage[labelfont=bf]{caption}
106
107
108
109 % -----------------------------------------------------------------------
110 % P A C K A G E S
111 %
112 % Include important packages.
113
114 \RequirePackage{graphicx, subfig} % Figures.
115 \RequirePackage{amsmath, amssymb, amsthm} % Math symbols and fonts.
116 \RequirePackage{float} % Must be done before hyperref.
117 \RequirePackage[usenames,dvipsnames,hyperref]{xcolor} % For defining colors.
118 \RequirePackage{ifthen} % For comparison.
119
120
121
122 % -----------------------------------------------------------------------
123 % P A G E L A Y O U T.
124
125 % Use geometry package to set up margins.
126 % A4 paper is 8.27 x 11.69 inch.
127 \RequirePackage[a4paper, left=1.25in, right=1in, top=1in, bottom=1in, includehead, \SgIntPageSide]{geometry}
128
129 \ifthenelse{\equal{\SgIntOpen}{openright}}
130 {
131 % For adding extra blank page, if necessary, after chapter.
132 \RequirePackage{emptypage}
133
134 % Define a command to leave a blank page. This is used in frontmatter to add
135 % an empty page between ack, abstract, toc, lof and lot.
136 \newcommand{\SgIntClearDoublePage}{\clearpage{\pagestyle{empty}\cleardoublepage}}
137 }
138 {
139 \newcommand{\SgIntClearDoublePage}{\clearpage}
140 }
141
142 % For disabling paragraph indenting and using a blank line between paragraphs.
143 \RequirePackage{parskip}
144
145 % Set line spacing.
146 \RequirePackage{setspace}
147 \SgIntLineSpacing
148
149 % Fix footnote spacing
150 \setlength{\footnotesep}{0.5cm} % Distance between two footnotes.
151 \setlength{\skip\footins}{0.5cm} % Distance between last line of text and first footnote.
152
153 % By default Latex centers images vertically on a float page.
154 % Modify Latex internal variables so that figures are placed from top.
155 \makeatletter
156 \setlength{\@fptop}{0.25cm}
157 \setlength{\@fpsep}{1.00cm}
158 \makeatother
159
160 \setlength{\textfloatsep}{1.5cm} % Set the distance between a float and text.
161 \setlength{\floatsep}{1.0cm} % Set the distance between two floats.
162
163 % Prevent latex from adding extra space between paragraphs so that
164 % the last line is at the bottom margin on each page.
165 \raggedbottom
166
167 % Define horizontal spacing between subfigures.
168 \newcommand{\SgIntHSpaceBetweenSubfloats}{\hspace{0.5cm}}
169
170
171
172 % -----------------------------------------------------------------------
173 % T A B L E
174 %
175 % Set table layout and design.
176
177 \RequirePackage{booktabs, colortbl} % Tables.
178 \RequirePackage{tabularx} % Auto column sizing.
179
180 \renewcommand{\arraystretch}{1.5} % Set space between rows in a table.
181 \renewcommand{\tabcolsep}{0.20cm} % Set space between columns in a table.
182 \heavyrulewidth = 0.15em % Set width of heavy rules.
183 \lightrulewidth = 0.07em % Set width of light rules.
184 \abovetopsep = 0.1cm % Set separation between caption and top rule.
185 \aboverulesep = 0.4ex % Set separation to use above a rule.
186 \belowrulesep = 0.4ex % Set separation to use below a rule.
187
188 % Set color for table rules.
189 \ifthenelse{\equal{\SgIntMedia}{screen}}{\arrayrulecolor[rgb]{0.0, 0.6, 0.9}}{}
190 \ifthenelse{\equal{\SgIntMedia}{print}}{\arrayrulecolor[rgb]{0.0, 0.0, 0.0}}{}
191
192
193
194 % -----------------------------------------------------------------------
195 % A L G O R I T H M
196
197 \RequirePackage[algo2e, ruled, linesnumbered, algochapter]{algorithm2e}
198 \DontPrintSemicolon % Dont print semicolons at end of lines.
199 \algoheightrule = \heavyrulewidth % Set the width of the top and bottom rules.
200 \algotitleheightrule = \lightrulewidth % Set the width of the middle rule.
201 \SetAlgoInsideSkip{medskip} % Set distance between middle rule and algorithm.
202 \interspacetitleruled = 0.2cm % Set distance between caption and rules.
203 \setlength{\algomargin}{2.25em} % Set the margin of the algorithm text.
204 \SetNlSkip{1.25em} % Set the spacing between line numbers and text.
205
206 \newenvironment{SgAlgorithm}[1][t]
207 {%
208 \begin{algorithm2e}[#1]
209 \linespread{1.3} % Set the line spacing to one and half.
210 \selectfont % The linespread is effective only after selectfont.%
211 }
212 {%
213 \end{algorithm2e}
214 }
215
216
217
218 % -----------------------------------------------------------------------
219 % B I B L I O G R A P H Y
220
221 % Rename bibliography to references.
222 \renewcommand{\bibname}{References}
223
224 % Define a new command to include the bibliography file and
225 % set the formatting options.
226 \newcommand{\SgIncludeBib}[1]
227 {%
228 \clearpage % Fix the page number in TOC.
229 \phantomsection % Fix the link in PDF.
230 \addcontentsline{toc}{chapter}{References} % Add the bibliography to TOC.
231 \bibliographystyle{alpha} % Set the bibliography style.
232 \bibliography{#1} % Include the bibliography file.
233 }
234
235
236
237 % -----------------------------------------------------------------------
238 % F A N C Y H E A D E R
239
240 \RequirePackage{fancyhdr}
241
242 % Set page style to fancy.
243 \pagestyle{fancy}
244
245 % By default fancyhdr converts the chapter headings to uppercase,
246 % so restore the chapter casing.
247 \renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
248
249 % Define header consisting of Chapter #. Chapter_Name on left side and
250 % page number on right side.
251 % \nouppercase is used on left header to force bibliography in lowercase.
252 \fancyhead{}
253 \fancyhead[L]{\nouppercase{\SgIntHeaderFormat\leftmark}}
254 \fancyhead[R]{\SgIntPageNumFormat\thepage}
255 \renewcommand{\headrulewidth}{1pt}
256 \addtolength{\headheight}{10pt}
257
258 % Disable footer.
259 \fancyfoot{}
260 \renewcommand{\footrulewidth}{0pt}
261
262 % Define header and footer for plain pages.
263 \fancypagestyle{plain}
264 {%
265 % Disable header.
266 \fancyhead{}
267 \renewcommand{\headrulewidth}{0pt}
268
269 % Footer contains the page number on right side.
270 \fancyfoot{}
271 \fancyfoot[R]{\SgIntPageNumFormat\thepage}
272 \renewcommand{\footrulewidth}{0pt}
273 }
274
275
276
277 % -----------------------------------------------------------------------
278 % T O C L O F L O T L O A
279 %
280 % Change the appearance of toc, lof, lot, etc.
281
282 % Using tocloft, the toc can be formatted easily.
283 \RequirePackage[titles, subfigure]{tocloft}
284
285 % Remove dots.
286 \renewcommand{\cftdotsep}{\cftnodots}
287
288 % Remove dots from list of algorithms.
289 % This is necessary because we use algorithm2e which mananges its own list of algorithms.
290 \makeatletter
291 \renewcommand{\@dotsep}{5000}
292 \makeatother
293
294 % Format chapter entries differently in toc.
295 \renewcommand{\cftchapfont}{\SgIntTocSectionFormat}
296
297 % Fix the indentation of figure and table entries in the lof, lot, and loa.
298 \setlength{\cftfigindent}{0in}
299 \setlength{\cfttabindent}{0in}
300
301 \newcommand{\SgAddToc}{\tableofcontents\SgIntClearDoublePage}
302 \newcommand{\SgAddLof}{%
303 \newpage
304 \phantomsection % Requires hyperref; this is to fix the link.
305 \addcontentsline{toc}{section}{\numberline{}\hspace{-.35in}{\SgIntTocSectionFormat{}List of Figures}}
306 \listoffigures
307 \SgIntClearDoublePage
308 }
309 \newcommand{\SgAddLot}{%
310 \newpage
311 \phantomsection % Requires hyperref; this is to fix the link.
312 \addcontentsline{toc}{section}{\numberline{}\hspace{-.35in}{\SgIntTocSectionFormat{}List of Tables}}
313 \listoftables
314 \SgIntClearDoublePage
315 }
316 \newcommand{\SgAddLoa}{%
317 \newpage
318 \phantomsection % Requires hyperref; this is to fix the link.
319 \addcontentsline{toc}{section}{\numberline{}\hspace{-.35in}{\SgIntTocSectionFormat{}List of Algorithms}}
320 \listofalgorithmes % Note an extra e, it is required because we use algorithm2e.
321 \SgIntClearDoublePage
322 }
323
324
325
326 % -------------------------------------------------------------------------------------
327 % C H A P T E R H E A D I N G
328 %
329 % Change the appearance of chapter headers and section titles.
330
331 % Change the fonts for chapter heading.
332 \RequirePackage[Lenny]{fncychap}
333 \ChNameVar{\SgIntChapNameFormat}
334 \ChNumVar{\SgIntChapNumberFormat}
335 \ChTitleVar{\SgIntChapTitleFormat}
336
337 % Set the format of the section and subsection titles.
338 \RequirePackage{sectsty}
339 \sectionfont{\SgIntSecTitleFormat}
340 \subsectionfont{\SgIntSubsecTitleFormat}
341
342 % Adjust the spacing between titles and surrounding matter.
343 \RequirePackage{etoolbox}
344 \makeatletter
345 % Reduce the space between chapter title and text.
346 \patchcmd{\DOTI}{\vskip 40\p@}{\vskip 20\p@}{}{}
347 \patchcmd{\DOTIS}{\vskip 40\p@}{\vskip 20\p@}{}{}% for unnumbered chapters
348
349 % http://tex.stackexchange.com/questions/13357/fncychap-package-reduce-vertical-gap-space-between-header-and-chapter-heading
350 % Reduce the spacing between top margin and chapter title.
351 \renewcommand*{\@makechapterhead}[1]
352 {%
353 \vspace*{10\p@}
354 {%
355 \parindent \z@ \raggedright \normalfont
356 \ifnum \c@secnumdepth >\m@ne
357 \if@mainmatter % Fix for frontmatter, mainmatter, and backmatter 040920
358 \DOCH
359 \fi
360 \fi
361 \interlinepenalty\@M
362 \if@mainmatter % Fix for frontmatter, mainmatter, and backmatter 060424
363 \DOTI{#1}%
364 \else%
365 \DOTIS{#1}%
366 \fi
367 }
368 }
369
370 % For the case \chapter*:
371 \renewcommand*{\@makeschapterhead}[1]
372 {%
373 \vspace*{10\p@}%
374 {%
375 \parindent \z@ \raggedright \normalfont
376 \interlinepenalty\@M \DOTIS{#1} \vskip 10\p@
377 }
378 }
379 \makeatother
380
381
382
383 % -----------------------------------------------------------------------
384 % H Y P E R E F
385 %
386 % Set hyperlink settings.
387
388 \RequirePackage[hyphens]{url} % Embedding URL's in document.
389
390 % Enable hyperlinks only in the PDF.
391 \RequirePackage[bookmarks=true, pdfstartview=Fit, linktoc=page, pdfpagemode=UseNone]{hyperref}
392
393 % Define the colors of the hyperlink.
394 \ifthenelse{\equal{\SgIntMedia}{screen}}
395 {%
396 \definecolor{webgreen}{rgb}{0,.5,0} % previously used magenta.
397 \definecolor{webblue}{rgb}{0,0,1} % previously used orange.
398
399 \hypersetup
400 {%
401 colorlinks = true,
402 linkcolor = webgreen,
403 citecolor = cyan,
404 urlcolor = webblue
405 }
406 }{}
407 \ifthenelse{\equal{\SgIntMedia}{print}}
408 {%
409 \hypersetup{colorlinks=false,pdfborder={0 0 0}}
410 }{}
411
412 % Define the proerties describing PDF.
413 \newcommand{\SgIntSetupPdfProps}%
414 {%
415 \hypersetup
416 {%
417 pdfauthor = \SgIntAuthor,
418 pdftitle = \SgIntTitle,
419 pdfsubject = \SgIntSubject,
420 pdfkeywords = \SgIntKeywords
421 }
422 }
423
424
425
426 % -----------------------------------------------------------------------
427 % D O C U M E N T P R O P E R T I E S
428 %
429 % Important variables used for creating PDF properties and the title page.
430
431 % Define empty variables for creating title and setting PDF properties.
432 \newcommand{\SgIntTitle}{}
433 \newcommand{\SgIntAuthor}{}
434 \newcommand{\SgIntAuthorDegrees}{}
435 \newcommand{\SgIntYear}{}
436 \newcommand{\SgIntSubject}{}
437 \newcommand{\SgIntKeywords}{}
438 \newcommand{\SgIntDegree}{}
439 \newcommand{\SgIntDepartment}{}
440 \newcommand{\SgIntUniversity}{}
441 \newcommand{\SgIntDeclarationDate}{}
442
443 % Define commands for setting the above variables.
444 \newcommand{\SgSetTitle}[1]{\renewcommand{\SgIntTitle}{#1}\SgIntSetupPdfProps}
445 \newcommand{\SgSetAuthor}[1]{\renewcommand{\SgIntAuthor}{#1}\SgIntSetupPdfProps}
446 \newcommand{\SgSetAuthorDegrees}[1]{\renewcommand{\SgIntAuthorDegrees}{#1}}
447 \newcommand{\SgSetYear}[1]{\renewcommand{\SgIntYear}{#1}}
448 \newcommand{\SgSetSubject}[1]{\renewcommand{\SgIntSubject}{#1}\SgIntSetupPdfProps}
449 \newcommand{\SgSetKeywords}[1]{\renewcommand{\SgIntKeywords}{#1}\SgIntSetupPdfProps}
450 \newcommand{\SgSetDegree}[1]{\renewcommand{\SgIntDegree}{#1}}
451 \newcommand{\SgSetDepartment}[1]{\renewcommand{\SgIntDepartment}{#1}}
452 \newcommand{\SgSetUniversity}[1]{\renewcommand{\SgIntUniversity}{#1}}
453 \newcommand{\SgSetDeclarationDate}[1]{\renewcommand{\SgIntDeclarationDate}{#1}}
454
455
456
457 % -----------------------------------------------------------------------
458 % C L E V E R E F
459 %
460 % Must come as late as possible, especially after hyperref.
461 \RequirePackage[capitalize]{cleveref}
462
463 % Disable the automatic abbreviations of equations and figures.
464 \crefname{equation}{Equation}{Equations}
465 \crefname{figure}{Figure}{Figures}
466 \Crefname{equation}{Equation}{Equations}
467 \Crefname{figure}{Figure}{Figures}
468
469 % Change the way links are produced in PDF documents.
470 \crefformat{chapter}{#2Chapter~#1#3}
471 \crefformat{section}{#2Section~#1#3}
472 \crefformat{figure}{#2Figure~#1#3}
473 \crefformat{equation}{#2Equation~#1#3}
474 \crefformat{table}{#2Table~#1#3}
475 \Crefformat{chapter}{#2Chapter~#1#3}
476 \Crefformat{section}{#2Section~#1#3}
477 \Crefformat{figure}{#2Figure~#1#3}
478 \Crefformat{equation}{#2Equation~#1#3}
479 \Crefformat{table}{#2Table~#1#3}
480 \creflabelformat{equation}{#2#1#3}
481
482
483
484 % -----------------------------------------------------------------------
485 % T I T L E P A G E
486 \ifthenelse{\equal{\SgIntTitleCase}{upper}}
487 {
488 \newcommand{\SgIntMakeUpperCase}[1]{\MakeUppercase{#1}}
489 }
490 {
491 \newcommand{\SgIntMakeUpperCase}[1]{#1}
492 }
493 \newcommand{\SgAddTitle}{%
494 \thispagestyle{empty}
495 \begin{center}
496 \vspace*{0.5in}
497 \Large{\bf{\SgIntMakeUpperCase{\SgIntTitle}}}
498 \\
499 \vspace{2.5in}
500
501 \large{\SgIntMakeUpperCase{\SgIntAuthor}} \\
502 \large{\emph{\SgIntAuthorDegrees}} \\
503 \vspace{2.5in}
504
505 \large{\SgIntMakeUpperCase{A Thesis Submitted for the Degree of \SgIntDegree}}
506 \vspace{0.2in}
507
508 \large{\SgIntMakeUpperCase{\SgIntDepartment}} \\
509 \large{\SgIntMakeUpperCase{\SgIntUniversity}} \\
510 \vspace{0.2in}
511
512 \large{\SgIntYear}
513 \end{center}
514 \SgIntClearDoublePage
515 }
516
517
518
519 % -----------------------------------------------------------------------
520 % D E C L A R A T I O N P A G E
521 \newcommand{\SgAddDeclaration}[1][nosignimage]{%
522 \newpage
523 \thispagestyle{plain}
524 \begin{center}
525 \vspace*{1.5cm}
526 {
527 \Large \bfseries Declaration
528 }
529 \end{center}
530
531 \vspace{0.5cm}
532
533 \begin{quote}
534 I hereby declare that this thesis is my original work and it has been written by me in its entirety. I have duly acknowledged all the sources of information which have been used in the thesis. \newline
535
536 This thesis has also not been submitted for any degree in any university previously.
537 \end{quote}
538
539 \ifthenelse{\equal{#1}{nosignimage}}
540 {
541 \vspace{2.0cm}
542 }
543 {
544 \vspace{0.5cm}
545 }
546
547 \begin{center}
548 \ifthenelse{\equal{#1}{nosignimage}}
549 {}{\includegraphics{#1}\\[-0.5cm]}
550 \rule{5cm}{0.2mm} \\
551 \SgIntAuthor \\
552 \SgIntDeclarationDate
553 \end{center}
554
555 \SgIntClearDoublePage
556 }
557
558
559
560 % -----------------------------------------------------------------------
561 % A C K N O W L E D G M E N T S
562 %
563 % The acknowledgments environment puts a large, bold, centered
564 % "Acknowledgments" label at the top of the page. The acknowledgments
565 % themselves appear in a quote environment, i.e. tabbed in at both
566 % sides, and on its own page.
567 \newenvironment{acknowledgments}%
568 {%
569 \thispagestyle{plain}
570 \begin{center}
571 \vspace*{1.5cm}
572 {%
573 \Large \bfseries Acknowledgments
574 }
575 \end{center}
576 \vspace{0.5cm}
577 \begin{quote}
578 }
579 {%
580 \end{quote}
581 \SgIntClearDoublePage
582 }
583
584
585
586 % -----------------------------------------------------------------------
587 % A B S T R A C T
588 %
589 % The abstract environment puts a large, bold, centered "Abstract" label at
590 % the top of the page. The abstract itself appears in a quote environment,
591 % i.e. tabbed in at both sides, and on its own page.
592 \renewenvironment{abstract}
593 {%
594 \thispagestyle{plain}
595 \begin{center}
596 \vspace*{1.5cm}
597 {\Large\bfseries Abstract}
598 \end{center}
599 \vspace{0.5cm}
600 \begin{quote}
601 }
602 {%
603 \end{quote}
604 \SgIntClearDoublePage
605 }
606
607
608
609 % -----------------------------------------------------------------------
610 % F R O N T M A T T E R
611 %
612 % The frontmatter environment set the page numbering to lowercase roman for
613 % ack, abstract, toc, lof, lot, loa, etc. It also resets page numbering for the
614 % remainder of thesis (arabic, starting at 1).
615 \newenvironment{frontmatter}
616 {%
617 \setcounter{page}{1}
618 \renewcommand{\thepage}{\roman{page}}
619 }
620 {%
621 \clearpage
622 \renewcommand{\thepage}{\arabic{page}}
623 \setcounter{page}{1}
624 \SgIntClearDoublePage
625 }