Advertisement
Guest User

ClassFile

a guest
Apr 27th, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 21.97 KB | None | 0 0
  1. % Koc University Thesis class for LaTeX2e
  2. % by Oguz Sunay
  3. % Modified by Ongun Arisev
  4.  
  5. \ProvidesClass{kuthesismod}
  6. \NeedsTeXFormat{LaTeX2e}
  7.  
  8. % ----- For Including Graphics -----
  9. %\RequirePackage{graphicx} % this is superficial to be included here ONGUN
  10.  
  11. % ----- Useful AMS packages -----
  12. \RequirePackage[fleqn]{amsmath}
  13. \RequirePackage{amssymb}
  14.  
  15. % footnote stuff for option processing
  16. %
  17. \usepackage{fancyhdr}
  18. \newwrite\tf@not
  19.  
  20. \newif\ifendnotes      % true if doing endnotes
  21.   \endnotesfalse
  22. \newif\ifchapternotes  % true if doing chapternotes
  23.   \chapternotesfalse
  24. \let\printchapternotes\relax
  25. \let\printendnotes\relax
  26.  
  27. \DeclareOption{footnotes}% selects bottom-of-page notes (default)
  28.   {}
  29. \DeclareOption{chapternotes}% selects end-of-chapter notes
  30.   {\chapternotestrue}
  31. \DeclareOption{endnotes}% selects end-of-thesis notes
  32.   {\endnotestrue}
  33.  
  34. %
  35. % ----  Thesis is a modified (default 12pt) book style  -----------------
  36. %
  37.  
  38. %\def\set@sides{\@twosidefalse}
  39. %\def\ds@twoside{\def\set@sides{\@twosidetrue}}
  40. \def\logo{\begin{figure}[h]
  41. \centering
  42. \includegraphics[clip=true, totalheight=0.12\textheight, angle=0]{logo.eps}
  43. \end{figure}}
  44. \def\@f@ntsize{12pt}
  45. \DeclareOption{10pt}{\def\@f@ntsize{10pt}}
  46. \DeclareOption{11pt}{\def\@f@ntsize{11pt}}
  47. \DeclareOption{12pt}{\def\@f@ntsize{12pt}}
  48. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
  49. \ProcessOptions
  50. \PassOptionsToClass{\@f@ntsize}{book}
  51. \PassOptionsToClass{openany}{book}
  52. \ProcessOptions
  53. \LoadClass{book}
  54.  
  55. %\set@sides
  56. %\if@twoside \message{[twosides]}\else\message{[oneside]}\fi
  57.  
  58. %
  59. % ---- page sizes ----------------------------------------------
  60. %
  61. % text size computed from paper size
  62. %
  63.  
  64. \voffset -0.9in  
  65. \hoffset -1in
  66.  
  67. \topmargin 60\p@  
  68. \headheight 15\p@
  69. \headsep 36\p@
  70. \oddsidemargin 90\p@
  71. \evensidemargin 90\p@
  72. \newdimen\botmargin
  73. \botmargin 50\p@
  74. \marginparwidth 72\p@
  75. \marginparsep 7\p@
  76. \footskip \z@ % set later
  77. \footnotesep 14\p@
  78. \parindent 1.5em
  79.  
  80. \textheight\paperheight
  81.   \advance\textheight by-\topmargin
  82.   \advance\textheight by-\headheight
  83.   \advance\textheight by-\headsep
  84.   % \advance\textheight by-\footskip
  85.   \advance\textheight by-\botmargin
  86. \textwidth\paperwidth
  87.   \advance\textwidth by-\oddsidemargin
  88.   \advance\textwidth by-\evensidemargin
  89.  
  90. % ---------------
  91.  
  92. \def\baselinestretch{1.5}    % not quite doublespaced
  93.  
  94. \setcounter{totalnumber}{5}
  95. \setcounter{topnumber}{5}
  96. \renewcommand\topfraction{.7}
  97. \renewcommand\textfraction{.2}
  98. \setlength\floatsep    {18\p@ \@plus 2\p@ \@minus 4\p@}
  99. \setlength\textfloatsep{30\p@ \@plus 2\p@ \@minus 4\p@}
  100. \setlength\intextsep   {20\p@ \@plus 4\p@ \@minus 4\p@}
  101. \let\@normalsize\normalsize  % retain old definition
  102. \setlength\abovecaptionskip{10\p@}
  103. \setlength\belowcaptionskip{10\p@}
  104.  
  105.  
  106. %
  107. %  ----  Footnotes  ------------------------------------------
  108. %
  109. % Footnote placement option
  110. %
  111. %   [endnotes] put the references at the thesis end
  112. %   [chapternotes] put the references at the chapter end
  113. %   [footnotes] put the references at the page bottom
  114. %
  115. %   When text is written to file (.not) the source linebreaks
  116. %   are maintained.  This keeps the individual lines in the file short.
  117. %   Control sequences in the note text are not expanded.
  118. %
  119.  
  120. \let\n@teitem\relax
  121.  
  122. \def\@chapternotetext{\begingroup
  123.  \catcode`\^^M=12\newlinechar=`\^^M
  124.  \catcode`\\=12
  125.  \d@chapternote}
  126.  
  127. \long\def\d@chapternote#1{%
  128.   \immediate \write\tf@not
  129.       {\n@teitem[\note@label] #1\relax}%
  130.   \endgroup}
  131.  
  132. %
  133. \def\@startnotes{%  opens the .not file
  134.   \immediate \openout\tf@not\jobname.not\relax
  135.   \immediate \write\tf@not{\relax}
  136.  \setcounter{footnote}{0}}
  137.  
  138. %
  139. % chapternotes
  140. %
  141.  
  142. \ifchapternotes
  143.   % \typeout{Doing chapternotes}
  144.   \let\@footnotetext\@chapternotetext
  145.   \@startnotes
  146.   \def\note@label{\arabic{footnote}}
  147.   \def\printchapternotes{% Prints the accumulated notes
  148.     \ifnum\c@footnote>1
  149.       \clearpage
  150.       \begin{center} Notes to Chapter \arabic{chapter} \end{center}\par
  151.      \addcontentsline{toc}{section}{\protect
  152.          \numberline{}{Notes to Chapter \arabic{chapter}}}
  153.      \begin{description}
  154.      \immediate\closeout\tf@not
  155.      \catcode`@=11
  156.      \let\n@teitem\item
  157.      \@input{\jobname.not}
  158.      \end{description}
  159.      \clearpage
  160.      \@startnotes
  161.    \fi
  162.  }
  163.  \let\old@enddocument\enddocument
  164.  \def\enddocument{\printchapternotes\old@enddocument}
  165. \fi
  166.  
  167. %
  168. % endnotes
  169. %
  170.  
  171. \ifendnotes
  172.   % \typeout{Doing endnotes}
  173.   \let\@footnotetext\@chapternotetext
  174.   \@startnotes
  175.   \def\note@label{\arabic{chapter}.\arabic{footnote}}
  176.   \def\printendnotes{% Prints the accumulated notes
  177.     \chapter*{Notes}
  178.    \addcontentsline{toc}{chapter}{Notes}
  179.    \thispagestyle{plain}
  180.    \begin{description}
  181.    \immediate\closeout\tf@not
  182.    \catcode`@=11
  183.    \let\n@teitem\item
  184.    \@input{\jobname.not}
  185.    \end{description}
  186.     \@startnotes  % allows multiple endnotes
  187.    }
  188. \fi
  189.  
  190. %
  191. %  bottom-of-page footnotes format
  192. %  full width line and hanging indent
  193. %
  194. \def\footnoterule{\kern-3\p@
  195. \hrule width \columnwidth \kern 2.6\p@}
  196. \long\def\@makefntext#1{\parindent 1em\noindent \hangindent\parindent
  197. \def\baselinestretch{1.0}\normalfont
  198. \hb@[email protected]{\hss\@makefnmark}#1}
  199.  
  200. %
  201. %  ----  Text pages  ----------------------------------
  202. %
  203. %  In two-sided style Chapter 1 is right handed
  204. %
  205. \def\textofChapter#1{\gdef\@textofChapter{#1}}  \textofChapter{Chapter}
  206. \def\textofAppendix#1{\gdef\@textofAppendix{#1}}  \textofAppendix{Appendix}
  207.  
  208. \def\textpages{% Start of text pages
  209.    \clearpage\pagestyle{empty}
  210.   \cleardoublepage\pagestyle{fancy}\markboth{}{}
  211.   \def\@chapapp{\protect\@textofChapter}
  212.   \def\Thechapter{\arabic{chapter}}
  213.   \pagenumbering{arabic}
  214.    \advance\textheight by\footskip % no bottom-of-page numbers now
  215.      \footskip\z@
  216.    % \ifarchitect \textwidth 614\p@ \oddsidemargin 36\p@ \twocolumn\fi
  217.    }
  218.  
  219. \def\appendix{\par
  220. \setcounter{chapter}{0}
  221. \setcounter{section}{0}
  222. \def\@chapapp{\protect\@textofAppendix}
  223. \def\Thechapter{\Alph{chapter}}
  224. \def\thechapter{\Alph{chapter}}}
  225.  
  226.  
  227. %
  228. %  Chapter headings
  229. %
  230. \def\@makechapterhead#1{ \vspace*{2pc} {\centering
  231. \ifnum \c@secnumdepth >\m@ne \large \@chapapp{} \Thechapter \par
  232. \vspace{10\p@} \fi \large\bf \uppercase\expandafter{#1}\par
  233. \nobreak \vspace{20\p@}} }
  234. %
  235. \def\@makeschapterhead#1{ \vspace*{2pc} {\centering
  236. \large\bf \uppercase\expandafter{#1}\par
  237. \nobreak \vspace{20\p@}} }
  238. %
  239. \def\chapter{
  240.   \printchapternotes
  241.   \if@openright\cleardoublepage\else\clearpage\fi
  242.   \thispagestyle{empty}
  243.    \global\@topnum\z@
  244.    \@afterindenttrue
  245.    % \let\\\relax
  246.    \secdef\@chapter\@schapter}
  247. %
  248. %  Complication is added here to allow line breaks
  249. %  in the chapter titles (via \\).
  250. %
  251. \def\@chapter[#1]#2{
  252.  \ifnum \c@secnumdepth >\m@ne
  253.  \refstepcounter{chapter}
  254. \lhead[\thepage]{\small\it\@chapapp\ \thechapter: #1}
  255. \chead{}
  256. \rhead[\small\it\@chapapp\ \thechapter: #1]{\thepage}
  257. \lfoot{}\cfoot{}\rfoot{}
  258. \typeout{\@chapapp\space\thechapter.}  
  259. %\typeout{<<\thechapter>>}
  260.   {\def\\{ }  % allow \\ in title
  261.    \addcontentsline{toc}{chapter}{\protect
  262.     \numberline{\@chapapp\ \thechapter:}#1}}\else
  263.  {\def\\{ }  % allow \\ in title
  264.    \addcontentsline{toc}{chapter}{#1}}\fi
  265. \addtocontents{lof}{\protect\addvspace{10\p@}}
  266. \addtocontents{lot}{\protect\addvspace{10\p@}}
  267. \if@twocolumn
  268.  \@topnewpage[\@makechapterhead{#2}]
  269.  \else \@makechapterhead{#2}
  270.  \@afterheading \fi}
  271. \def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
  272.  \else \@makeschapterhead{#1}
  273.  \@afterheading\fi
  274.     \lhead[\thepage]{\small\it #1}
  275.     \chead{}
  276.     \rhead[\small\it #1]{\thepage}
  277.     \lfoot{}\cfoot{}\rfoot{}}
  278. %
  279. %  Section headings
  280. %
  281. \renewcommand\section{%
  282.   \@startsection {section}{1}{\z@}%
  283.        {-3.5ex \@plus -1ex \@minus -.2ex}%
  284.        {2.3ex \@plus.2ex}%
  285.        {\reset@font\normalsize\bfseries\slshape}}
  286. \renewcommand\subsection{%
  287.   \@startsection{subsection}{2}{\z@}%
  288.        {-3.25ex\@plus -1ex \@minus -.2ex}%
  289.        {1.5ex \@plus .2ex}%
  290.        {\reset@font\normalsize\mdseries\itshape}}
  291. \renewcommand\subsubsection{%
  292.   \@startsection{subsubsection}{3}{\z@}%
  293.        {-3.25ex\@plus -1ex \@minus -.2ex}%
  294.        {1.5ex \@plus .2ex}%
  295.        {\reset@font\normalsize\mdseries\itshape}}
  296.  
  297. %
  298. %  Provide for `Chapter ' in the toc
  299. %  (increase \@tempdima)
  300. %
  301. \renewcommand\l@chapter[2]{%
  302.   \ifnum \c@tocdepth >\m@ne
  303.     \addpenalty{-\@highpenalty}%
  304.     \vskip 1.0em \@plus\p@
  305.     \setlength\@tempdima{85\p@}%
  306.     \begingroup
  307.       \parindent \z@ \rightskip \@pnumwidth
  308.       \parfillskip -\@pnumwidth
  309.       \leavevmode \bfseries
  310.       \advance\leftskip\@tempdima
  311.       \hskip -\leftskip
  312.       #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
  313.      \penalty\@highpenalty
  314.    \endgroup
  315.  \fi}
  316.  
  317. %
  318. % ------ Special captions ---------------------
  319. %
  320. % \caption[]{text} produces normal caption and numbering
  321. % \caption(-){(continued)} produces `(continued)' caption and
  322. %        same-as-last caption number
  323. % \caption(x)[]{text} produces lettered caption.  1.1a, 1.1b, ...
  324. %        If (x) is (a) or (A) then caption number is incremented,
  325. %        else it is same numbered.
  326.  
  327. \def\thecaptionletter{}
  328. \newif\ifcaptiontotoc\captiontotoctrue
  329.  
  330. \def\caption{\@ifnextchar({\@specialcaption}{\@normalcaption}}
  331.  
  332. \def\@normalcaption{\refstepcounter\@captype \@dblarg{\@caption\@captype}}
  333. \def\@specialcaption(#1){%
  334.   \def\thecaptionletter{#1}%
  335.   \captiontotocfalse
  336.   \if#1-\def\thecaptionletter{}\fi
  337.  \if#1a\refstepcounter\@captype\captiontotoctrue\fi
  338.  \if#1A\refstepcounter\@captype\captiontotoctrue\fi
  339.  \@dblarg{\@caption\@captype}}
  340.  
  341. \long\def\@caption#1[#2]#3{\par
  342.  \ifcaptiontotoc
  343.    \addcontentsline{\csname
  344.    ext@#1\endcsname}{#1}{\protect\numberline{\csname
  345.    the#1\endcsname}{\ignorespaces #2}}%
  346.   \fi
  347.   \begingroup
  348.     \@parboxrestore
  349.     \def\baselinestretch{1.0}
  350.    \normalsize
  351.    \@makecaption{\csname fnum@#1\endcsname
  352.        \thecaptionletter}{\ignorespaces #3}\par
  353.  \endgroup}
  354.  
  355. \def\@listI{\leftmargin\leftmargini \parsep 7\p@ plus 3\p@ minus 1\p@\topsep
  356. 12\p@ plus 5\p@ minus 6\p@\itemsep 7\p@ plus 3\p@ minus 1\p@}
  357.  
  358.  
  359. %
  360. %  ----  Facing pages and double-page figures and tables
  361. %
  362. %  \begin{fullpage} ... \end{fullpage}
  363. %  \begin{leftfullpage} ... \end{leftfullpage}
  364. %  \begin{xtrafullpage} ... \end{xtrafullpage}
  365.  
  366. \newif\if@LP \@LPfalse
  367. \newif\if@XP \@XPfalse
  368.  
  369. \newbox\@@wholepage
  370. \def\fullpage{\setbox\@@wholepage=\vbox\bgroup}
  371. \def\endfullpage{\egroup\dp\@@wholepage\z@
  372.   \vbox to\textheight{\vss\unvbox\@@wholepage\vss}}
  373. \def\leftfullpage{\setbox\@@wholepage=\vbox\bgroup}
  374. \def\endleftfullpage{\egroup\dp\@@wholepage\z@
  375.   \vbox to\textheight{\vss\unvbox\@@wholepage\vss}\global\@LPtrue}
  376.  
  377. \if@twoside
  378.   \typeout{Formatting for twoside printing.}
  379.   \let\xtrafullpage\fullpage
  380.   \let\endxtrafullpage\endfullpage
  381. \else
  382.   \typeout{Formatting for oneside printing.}
  383.   \def\xtrafullpage{\setbox\@@wholepage=\vbox\bgroup}
  384.   \def\endxtrafullpage{\egroup\dp\@@wholepage\z@
  385.      \vbox to\textheight{\vss\unvbox\@@wholepage\vss}\global\@XPtrue}
  386. \fi
  387.  
  388. \let\oldend@float\end@float
  389. \def\end@float{%
  390.   \if@LP\global\@namedef{LP:\expandafter\string\@currbox}{L}%
  391.   \else \global\@namedef{LP:\expandafter\string\@currbox}{z}%
  392.   \fi
  393.   \if@XP\global\@namedef{XP:\expandafter\string\@currbox}{X}%
  394.   \else \global\@namedef{XP:\expandafter\string\@currbox}{z}%
  395.   \fi
  396.   \global\@LPfalse
  397.   \global\@XPfalse
  398.   \oldend@float
  399. }
  400.  
  401.  
  402. \if@twoside
  403.  
  404. % reject a left-side float that appears on an odd page
  405.  \let\old@xtryfc\@xtryfc
  406.  \def\@xtryfc #1{%
  407.    \expandafter\if\csname LP:\string#1\endcsname L%
  408.       % \typeout{facing page in xtryfc}%
  409.       \ifodd\count0\global\@colht\z@
  410.           \typeout{I moved a leftpage float from page \the\count0.}%
  411.       \fi\fi
  412.     \old@xtryfc #1}
  413.  
  414. \else
  415.  
  416. \def\unstep@page{\addtocounter{page}{-1}}
  417.  
  418. % flip a facing page caption
  419.  \let\@oldwtryfc\@wtryfc
  420.  \def\@wtryfc #1{%
  421.   \expandafter\if\csname LP:\string#1\endcsname L\gdef\LP@page{}%
  422.       \typeout{Encountered a facing page.}%
  423.    \fi
  424.   \expandafter\if\csname XP:\string#1\endcsname X\gdef\XP@page{}%
  425.       \typeout{Encountered an extra page.}%
  426.    \fi
  427.    \@oldwtryfc #1}
  428.  
  429.  \let\old@outputpage\@outputpage
  430.  \def\@outputpage{%
  431.    \begingroup
  432.    \@ifundefined{LP@page}
  433.     {\let\@themargin\oddsidemargin \let\@thehead\@oddhead}
  434.     {\let\@themargin\evensidemargin \let\@thehead\@evenhead
  435.       \typeout{Printing a left-hand one-side page.}%
  436.        \global\let\LP@page\relax
  437.       }
  438.    \@ifundefined{XP@page}
  439.     {}
  440.     {\let\@thehead\@empty \let\@thefoot\@empty
  441.       \typeout{Printing an extra page.}%
  442.        \global\let\XP@page\relax
  443.        \aftergroup\unstep@page
  444.       }
  445.    \old@outputpage\endgroup
  446.  }
  447. \fi
  448.  
  449. %
  450. %  ----  Preliminary pages  ---------------------------
  451. %
  452. \def\prelimpages{ % sets page numbering for the preliminary pages
  453.    \pagestyle{empty} % will be {plain} at start of toc
  454.    \pagenumbering{roman}
  455.   \setcounter{page}{1}
  456.    \footskip 30\p@ % allowance for the roman page numbers
  457.     \advance\textheight by-\footskip  
  458.    % \ifarchitect \textwidth 450\p@ \oddsidemargin 118\p@\fi
  459.    }
  460. %
  461. %      (The following macros are used once and discarded)
  462. %
  463. %  Title page
  464.  
  465. \def\Title#1{\gdef\@Title{#1}}
  466. \def\Program#1{\gdef\@Title{#1}}
  467. \def\By#1{\gdef\@By{#1}} \By{by}
  468. \def\Author#1{\gdef\@Author{#1}}
  469. \def\Year#1{\gdef\@Year{#1}}  \Year{\year}
  470. \def\Degree#1{\gdef\@Degree{#1}} \Degree{Master of Science}
  471. \def\In#1{\gdef\@In{#1}} \In{in}
  472. \def\Program#1{\gdef\@Program{#1}}
  473. \def\School#1{\gdef\@School{#1}} \School{Ko\c{c} University}
  474. \def\GSchool#1{\gdef\@GSchool{#1}} \GSchool{Graduate School of Sciences and Engineering}
  475. \def\Degreetext#1{\gdef\@Degreetext{#1}}
  476.  \Degreetext{A Dissertation Submitted to the \\
  477.    Graduate School of Sciences and Engineering \\
  478.    in Partial Fulfillment of the Requirements for \\
  479.    the Degree of}
  480.    
  481. \def\Programtext#1{\gdef\@Programtext{#1}}  
  482.       \Programtext{}
  483.            
  484.  
  485. \def\titlepage{                   % Prints the title page
  486.     \vspace{7pc}
  487.    \begin{center}
  488.      {\Large
  489.      \lineskip 3ex
  490.      \textbf{\@Title}\par}
  491.      \par\vskip\z@ plus4fill\relax
  492.      \@By
  493.      \par\vskip\z@ plus4fill\relax
  494.      \textbf{\@Author}
  495.      \par\vskip\z@ plus4fill\relax
  496.      \@Degreetext
  497.      \par\vskip\z@ plus1fill\relax
  498.      \@Degree
  499.      \par\vskip\z@ plus1fill\relax
  500.      \@In
  501.      \par\vskip\z@ plus1fill\relax
  502.      \@Program
  503.      \par\vskip\z@ plus6fill\relax
  504.      \logo
  505.      \par\vskip\z@ plus2fill\relax
  506.      \@Year
  507.      \par\vskip\z@ plus1fill\relax
  508.      
  509.    \end{center}
  510.     \vspace{2pc}\relax
  511.  \let\titlepage\relax}
  512.  
  513. %
  514. %  Signature page
  515. %
  516. \def\textofChair#1{\gdef\@textofChair{#1}}  
  517.       \textofChair{Chair of Supervisory Committee}
  518. \def\textofDate#1{\gdef\@textofDate{#1}}  \textofDate{Date}
  519.  
  520. \newcount\@Chair \@Chair0
  521. \def\Chair#1#2#3{
  522.  \global\@namedef{C:\expandafter\the\@Chair}{#1}
  523.  \global\@namedef{T:\expandafter\the\@Chair}{#2}
  524.  \global\@namedef{D:\expandafter\the\@Chair}{#3}
  525.  \ifnum\@Chair>0\textofChair{Co-Chairs of Supervisory Committee}\fi
  526.  \global\advance\@Chair by1}
  527.  
  528.  
  529. \newcount\@Sign\@Sign0
  530. \def\Signature#1{
  531.  \global\@namedef{S:\expandafter\the\@Sign}{#1}
  532.  \global\advance\@Sign by1}
  533.  
  534. \def\signaturepage{     % Prints the dissertation signature page
  535. %   \cleardoublepage
  536.     \begin{center}
  537.      \@School
  538.      \par
  539.      \@GSchool
  540.      \vskip24\p@ plus4fill\relax
  541.      This is to certify that I have examined this copy of a master's thesis by
  542.      \vskip\z@ plus2fill\relax
  543.      \@Author
  544.      \par\vskip\z@ plus2fill\relax
  545.      and have found that it is complete and satisfactory in all respects,
  546.       \par
  547.      and that any and all revisions required by the final \par
  548.      examining committee have been made.
  549.      \par\vskip12\p@ plus4fill\relax
  550.      \makebox[\textwidth]{Committee Members:\hfill}
  551.      \par\vskip8\p@ plus1fill\relax
  552.      \count1=0
  553.      \@whilenum \count1<\@Sign \do
  554.       {\vskip12\p@ \baselineskip12pt
  555.        \makebox[\textwidth]{\hspace{4pc}\hrulefill\hspace{4pc}}
  556.        \csname S:\the\count1\endcsname
  557.        \advance\count1 by1}
  558.      \par\vskip12\p@ plus4fill\relax
  559.      \makebox[\textwidth]{\hbox to 4pc{\@textofDate:\hfill}%
  560.                   \hbox to3in{\hrulefill}\hfill}
  561.     \par
  562.    \end{center}
  563.  \let\signaturepage\relax\let\thesissignaturepage\relax}
  564.  
  565. \def\thesissignaturepage{  % Prints the thesis signature page
  566. %   \cleardoublepage
  567.     \begin{center}
  568.      \textbf{\@Title}
  569.      \vskip24\p@ plus4fill\relax
  570.      \@School
  571.      \par
  572.      \@GSchool
  573.      \par
  574.      This is to certify that I have examined this copy of a master's thesis
  575.        by
  576.      \vskip\z@ plus2fill\relax
  577.      \textbf{\@Author}
  578.      \par\vskip\z@ plus2fill\relax
  579.      and have found that it is complete and satisfactory in all respects,
  580.       \par
  581.      and that any and all revisions required by the final \par
  582.      examining committee have been made.
  583.      \par\vskip12\p@ plus4fill\relax
  584.      \makebox[\textwidth]{Committee Members:\hfill}
  585.      \par\vskip8\p@ plus1fill\relax
  586.      \count1=0
  587.      \@whilenum \count1<\@Sign \do
  588.       {\vskip12\p@ \baselineskip12pt
  589.        \makebox[\textwidth]{\hspace{4pc}\hrulefill\hspace{4pc}}
  590.        \csname S:\the\count1\endcsname
  591.        \advance\count1 by1}
  592.      \par\vskip12\p@ plus4fill\relax
  593.      \makebox[\textwidth]{\hbox to 4pc{\@textofDate:\hfill}%
  594.                   \hbox to3in{\hrulefill}\hfill}
  595.     \par
  596.    \end{center}
  597.  \let\signaturepage\relax\let\thesissignaturepage\relax}
  598.  
  599. %
  600. %   Abstract
  601. %
  602. %  normal parameters
  603. \def\textofAbstract#1{\gdef\@textofAbstract{#1}}  \textofAbstract{Abstract}
  604. %--------------
  605.  
  606. \long\def\abstract#1{\chapter*{\@textofAbstract\@mkboth{}{}}
  607.   \thispagestyle{plain}
  608.   #1\par
  609.   \vfill
  610.   \let\abstract\relax}
  611.  
  612.  
  613. %
  614. %   ozetce
  615. %
  616. %  normal parameters
  617. \def\textofOz#1{\gdef\@textofOz{#1}}  \textofOz{\"{O}ZET\c{c}E}
  618. %--------------
  619.  
  620. \long\def\oz#1{\chapter*{\@textofOz\@mkboth{}{}}
  621.   \thispagestyle{plain}
  622.   #1\par
  623.   \vfill
  624.   \let\oz\relax}
  625. %\long\def\abstract#1{
  626. %   \cleardoublepage
  627. %   \begin{center}
  628. %      \@School
  629. %      \par\vskip1pc
  630. %      \@textofAbstract
  631. %      \par\vskip1pc
  632. %      {\large \@Title \par}
  633. %      \par\vskip1pc
  634. %      by \@Author
  635. %      \par\vskip1pc
  636. %      \@textofChair
  637. %      \par
  638. %      \count1=0
  639. %      \@whilenum \count1<\@Chair \do
  640. %       {\vskip12\p@ \baselineskip12pt
  641. %        \csname T:\the\count1\endcsname\ \csname C:\the\count1\endcsname
  642. %        \par \csname D:\the\count1\endcsname
  643. %        \advance\count1 by1}
  644. %      \par\vskip1pc
  645. %   \end{center}
  646. %   \if@twoside
  647. %    \begingroup % have to set multiple abstract pages 1-sided
  648. %    \def\@blankpage{\if\@@blankpage B
  649. %               \shipout\vbox{}\global\advance\count\z@ by1\fi
  650. %            \global\def\@@blankpage{B}}
  651. %    \def\@@blankpage{A}
  652. %    \output=\expandafter{\expandafter\@blankpage\the\output}
  653. %   \fi
  654. %   #1
  655. %   \vfill\clearpage
  656. %   \if@twoside\endgroup\fi
  657. %   \let\abstract\relax}
  658. %
  659. %
  660. %   Table of contents (right side page) (always page `i')
  661. %
  662. %
  663. \def\textofToC#1{\gdef\@textofToC{#1}}  \textofToC{Table of Contents}
  664. \def\tableofcontents{\cleardoublepage
  665.   \chapter*{\@textofToC\@mkboth{}{}}
  666.   \pagestyle{plain}
  667.   \thispagestyle{plain}
  668.    %\setcounter{page}{1}
  669.    {\let\footnotemark\relax  % in case one is in the title
  670.    \@starttoc{toc}
  671.    }
  672.   }
  673. %
  674. %   List of figures
  675. %
  676. \def\textofLoF#1{\gdef\@textofLoF{#1}}  \textofLoF{List of Figures}
  677. \def\listoffigures{\chapter*{\@textofLoF\@mkboth{}{}}
  678.   \thispagestyle{plain}
  679.   \addcontentsline{toc}{chapter}{\protect\@textofLoF}
  680.    {\let\footnotemark\relax  % in case one is in the title
  681.    \@starttoc{lof}
  682.    }
  683.   }
  684. %
  685. %   List of tables
  686. %
  687. \def\textofLoT#1{\gdef\@textofLoT{#1}}  \textofLoT{List of Tables}
  688. \def\listoftables{\chapter*{\@textofLoT\@mkboth{}{}}
  689.   \thispagestyle{plain}
  690.   \addcontentsline{toc}{chapter}{\protect\@textofLoT}
  691.    {\let\footnotemark\relax  % in case one is in the title
  692.    \@starttoc{lot}
  693.    }
  694.   }
  695. %
  696. %  Abbreviations (Nomenclature)
  697. %
  698. \def\textofAbbreviations#1{\gdef\@textofAbbreviations{#1}}  
  699. \textofAbbreviations{Nomenclature}
  700. \long\def\abbreviations#1{\chapter*{\@textofAbbreviations\@mkboth{}{}}
  701.   \thispagestyle{plain}
  702.   \addcontentsline{toc}{chapter}{\protect\@textofAbbreviations}
  703.   #1\par
  704.   \vfill
  705.   \let\abbreviations\relax}
  706.  
  707.  
  708.  
  709.  
  710. %  Bibliography
  711. %
  712. \def\textofBIB#1{\gdef\@textofBIB{#1}}  \textofBIB{Bibliography}
  713. \def\thebibliography#1{\chapter*{\@textofBIB\@mkboth{BIBLIOGRAPHY}{BIBLOGRAPHY}}
  714. \lhead{\small\it Bibliography}\chead{}\rhead{\thepage}
  715. \lfoot{}\cfoot{}\rfoot{}
  716. \addcontentsline{toc}{chapter}{\protect\@textofBIB}
  717. \list
  718. {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
  719. \advance\leftmargin\labelsep
  720.  \usecounter{enumi}}    
  721. \def\newblock{\hskip .11em plus .33em minus .07em}
  722. \sloppy\clubpenalty4000\widowpenalty4000
  723. \sfcode`\.=1000\relax}
  724.  
  725. %
  726. %   Acknowledgments
  727. %
  728. \def\textofAck#1{\gdef\@textofAck{#1}}  \textofAck{Acknowledgments}
  729. \long\def\acknowledgments#1{\chapter*{\@textofAck\@mkboth{}{}}
  730.   \thispagestyle{plain}
  731.   #1\par
  732.   \vfill
  733.   \let\acknowledgments\relax}
  734.  
  735. %
  736. %   Dedication
  737. %
  738. \def\textofDed#1{\gdef\@textofDed{#1}}  \textofDed{}
  739. %\textofDed{Dedication}
  740. \long\def\dedication#1{\chapter*{\@textofDed\@mkboth{}{}}
  741.   \thispagestyle{plain}
  742.   \vspace{\fill}
  743.   \begin{center}
  744.     \emph{#1}\par
  745.   \end{center}
  746.   \vfill
  747.   \let\dedication\relax}
  748.  
  749. %
  750. %   Vita
  751. %
  752. \def\textofVita#1{\gdef\@textofVita{#1}}  \textofVita{Vita}
  753. \long\def\vita#1{\chapter*{\@textofVita\@mkboth{VITA}{VITA}}
  754. \lhead{\small\it Vita}\chead{}\rhead{\thepage}
  755. \addcontentsline{toc}{chapter}{\protect\@textofVita}
  756. \lfoot{}\cfoot{}\rfoot{}
  757.   #1\par
  758.   \vfill
  759.   \let\vita\relax}
  760.  
  761. %
  762. %   Gratis definition of a glossary environment
  763. %
  764. \renewenvironment{glossary}
  765.  {\begin{list}{}{\setlength\itemindent{\parindent}
  766.   \def\makelabel##1{\footnotesize\uppercase{##1:}\hfill}}}
  767.  {\end{list}}
  768.  
  769. % End of the thesis style
  770. % Edited by Caglar Koca [email protected], Ergin Dinc, [email protected]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement