SHARE
TWEET

ClassFile

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