%% %% This is file fbe_tez.sty %% It provides you macros necessary to typeset a thesis %% in the format required by the Institute of Graduate %% Studies in Science and Engineering, Bogazici University. %% %% Prepared by Feza Kerestecioglu %% %% Last modified on 25/07/2003 %% %% COPYRIGHT 1999, 2001, 2003 by %% Feza Kerestecioglu <[email protected]>, <[email protected]> %% %% Copying of part or all of any file in the fbe_tez package is %% allowed under the following conditions only: %% (1) You may freely distribute unchanged copies of the files. %% Please include the documentation when you do so. %% (2) You may modify a renamed copy of this file, but only for %% personal use. %% (3) You may copy fragments from the files, for personal use %% or for use in a macro package for distribution, as long %% as credit is given where credit is due. %% %% You are NOT ALLOWED to take money for the distribution or %% use of these and associated files or modified versions or %% fragments thereof. %% %% Please report any bugs or suggestions to %% Feza Kerestecioglu <[email protected]>. %% %% \typeout{Thesis style for F.B.E, Bogazici University, Version 4.2} \typeout{Prepared by Feza Kerestecioglu} % % Definitions for title and approval pages % \def\turkcebaslik#1{\gdef\@turkcebaslik{#1}} \def\degree#1{\gdef\@degree{#1}} \def\program#1{\gdef\@program{#1}} \def\subyear#1{\gdef\@subyear{#1}} \def\supervisor#1{\gdef\@supervisor{#1}} \def\cosuperi#1{\gdef\@cosuperi{#1}} \def\cosuperii#1{\gdef\@cosuperii{#1}} \def\examineri#1{\gdef\@examineri{#1}} \def\examinerii#1{\gdef\@examinerii{#1}} \def\examineriii#1{\gdef\@examineriii{#1}} \def\examineriv#1{\gdef\@examineriv{#1}} \def\examinerv#1{\gdef\@examinerv{#1}} \def\dateofapproval#1{\gdef\@dateofapproval{#1}} % \global\let\@turkcebaslik\empty \global\let\@degree\empty \global\let\@program\empty \global\let\@supervisor\empty \global\let\@cosuperi\empty \global\let\@cosuperii\empty \global\let\@examineri\empty \global\let\@examinerii\empty \global\let\@examineriii\empty \global\let\@examineriv\empty \global\let\@examinerv\empty \global\let\@examinervi\empty \global\let\@dateofapproval\empty \def\nyear{\number\year} \global\let\@subyear\nyear % % Other definitions % \xdef\@singlespaced{1} \xdef\@onehalfspaced{1.5} % \newlength{\spv} \newlength{\ei} \newlength{\csi} \newlength{\csii} \newlength{\eii} \newlength{\eiii} \newlength{\eiv} \newlength{\ev} \let\@app\empty \newcounter{thsfootcnt} % % Title page % \newcommand\submission{Submitted to the Institute for Graduate Studies in \\ Science and Engineering in partial fulfillment of \\ the requirements for the degree of \\} % \newcommand\uptitle{ \ifx\@degree\empty \@@warning{No \string\degree\space given} \fi \null \vspace*{13pt} \@title \\% \vskip 128pt by \\ \@author \\ \@degree \\ \vspace{\fill} } % \newcommand\downtitle{ \vskip 3\baselineskip Graduate Program in \@program \\ Bo\u{g}azi\c{c}i University \\ \@subyear\\ \null} % \newcommand\relaxtitlestuff{ \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\author\relax \global\let\date\relax \global\let\and\relax} % \newcommand\makemstitle{\begin{titlepage} \ifx\@program\empty \@@warning{No \string\program\space given} \fi \begin{center} \uptitle \submission Master of Science \\ \downtitle \end{center} \end{titlepage} \relaxtitlestuff} % \newcommand\makephdtitle{\begin{titlepage} \begin{center} \uptitle \submission Doctor of Philosophy \\ \downtitle \end{center} \end{titlepage} \relaxtitlestuff} % \newcommand\makeproposaltitle{\begin{titlepage} \begin{center} \uptitle A Thesis Proposal \\ submitted to the Thesis Supervisory Committee \\ in partial fulfillment of the requirements \\ for the degree of \\ Doctor of Philosophy \\ \downtitle \end{center} \end{titlepage} \relaxtitlestuff} % % Approval page % \newcommand\makeapprovalpage{% \addtocounter{page}{1} \ifx\@dateofapproval\empty \@@warning{No \string\dateofapproval\space given}\fi \vspace*{0.1pt} \begin{center} \@title \par \end{center} \vskip 110pt APPROVED BY: \par \vskip 2\baselineskip \settowidth{\spv}{\@supervisor} \settowidth{\csi}{\@cosuperi} \settowidth{\csii}{\@cosuperii} \settowidth{\ei}{\@examineri} \settowidth{\eii}{\@examinerii} \settowidth{\eiii}{\@examineriii} \settowidth{\eiv}{\@examineriv} \settowidth{\ev}{\@examinerv} \ifdim\csi>\spv \spv\ei \fi \ifdim\csii>\spv \spv\ei \fi \ifdim\ei>\spv \spv\ei \fi \ifdim\eii>\spv \spv\eii \fi \ifdim\eiii>\spv \spv\eiii \fi \ifdim\eiv>\spv \spv\eiv \fi \ifdim\ev>\spv \spv\ev \fi \begin{tabbing} \hspace*{3.5cm} \= \hspace*{\spv}\hspace*{1em} \= \kill \ifx\@supervisor\empty \ifx\@cosuperi\empty \ifx\@cosuperi\empty \@@warning{No \string\supervisor\space given} \fi \fi \else \> \@supervisor \> \makebox[35mm]\dotfill \\ \> (Thesis Supervisor) \\ \> \\ \fi \ifx\@cosuperi\empty \else \> \@cosuperi \> \makebox[35mm]\dotfill \\ \> (Thesis Co-supervisor) \\ \> \\ \fi \ifx\@cosuperii\empty \else \> \@cosuperii \> \makebox[35mm]\dotfill \\ \> (Thesis Co-supervisor) \\ \> \\ \fi \ifx\@examineri\empty \else \> \@examineri \> \makebox[35mm]\dotfill \\ \> \\ \fi \ifx\@examinerii\empty \else \> \@examinerii \> \makebox[35mm]\dotfill \\ \> \\ \fi \ifx\@examineriii\empty \else \> \@examineriii \> \makebox[35mm]\dotfill \\ \> \\ \fi \ifx\@examineriv\empty \else \> \@examineriv \> \makebox[35mm]\dotfill \\ \> \\ \fi \ifx\@examinerv\empty \else \> \@examinerv \> \makebox[35mm]\dotfill \\ \> \\ \fi \end{tabbing} \vfill DATE OF APPROVAL:\hspace{0.3em} \ifx\@dateofapproval\empty \@@warning{No \string\dateofapproval\space given} \else\@dateofapproval \fi \vspace*{2cm} \global\let\@dateofapproval\@empty \global\let\dateofapproval\relax \global\let\@supervisor\@empty \global\let\supervisor\relax \global\let\@cosuperi\@empty \global\let\cosuperi\relax \global\let\@cosuperii\@empty \global\let\cosuperii\relax \global\let\@examineri\@empty \global\let\examineri\relax \global\let\@examinerii\@empty \global\let\examinerii\relax \global\let\@examineriii\@empty \global\let\examinerii\relax \global\let\@examinervi\@empty \global\let\examinervi\relax \global\let\@examinerv\@empty \global\let\examinerv\relax } % % Abstract, Acknowledgements, Ozet, etc. % \renewenvironment{abstract}{% \chapter*{\abstractname} \begin{center} %Thesis title should also appear in the abstract page. {\normalfont \interlinepenalty\@M \vskip-4pt \large\bfseries \@title\par\nobreak \vskip0.8\baselineskip} \end{center}\hspace\parindent} {\par\vfil\null} % \newenvironment{acknowledgements}{\chapter*{\ackname}} {\par\vfil\null} % \newenvironment{preface}{\chapter*{\prefacename}} {\par\vfil\null} % \newenvironment{foreword}{\chapter*{\forewordname}} {\par\vfil\null} % \newenvironment{ozet}{% \chapter*{\ozetname} \begin{center} %Thesis title should also appear in the "ozet" page. { \normalfont \interlinepenalty\@M \vskip-4pt \large\bfseries \@turkcebaslik\par\nobreak \vskip0.8\baselineskip }\end{center}\hspace\parindent} {\par\vfil\null} % \newenvironment{symbols}{% \clearpage \chapter*{\listsymbolname} \beginsymlist} {\closesymlist} % \newenvironment{abbreviations}{% \clearpage \chapter*{\listabbname} \beginsymlist} {\closesymlist} % \newenvironment{symabbreviations}{% \clearpage \chapter*{\listsymabbname} \beginsymlist} {\closesymlist} % \newcommand{\beginsymlist}{% \begin{tabbing} \hspace*{\symtabi}\=\hspace*{\symtabii}\=\kill} % \newcommand{\closesymlist}{\end{tabbing}} % \newcommand{\sym}[2]{\>#1 \>\parbox[t]{11cm}{#2} \\} \newlength{\symtabi} \newlength{\symtabii} \setlength{\symtabi}{1em} \setlength{\symtabii}{10em} % \newcommand\prefacename{PREFACE} \newcommand\forewordname{FOREWORD} \newcommand\ackname{ACKNOWLEDGEMENTS} \newcommand\ozetname{\"OZET} \newcommand{\listsymbolname}{LIST OF SYMBOLS} \newcommand{\listsymabbname}{LIST OF SYMBOLS/ABBREVIATIONS} \newcommand{\listabbname}{LIST OF ABBREVIATIONS} \renewcommand\indexname{INDEX} \renewcommand\partname{PART} \renewcommand\appendixname{APPENDIX} \renewcommand\abstractname{ABSTRACT} % % Sectional Units % \renewcommand\chapter{\clearpage \global\@topnum\z@ \@afterindenttrue \secdef\@chapter\@schapter} % \renewcommand\@makechapterhead[1]{\begin{center} {\normalfont \ifnum \c@secnumdepth >\m@ne \ifx\@app\empty \large\bfseries \thechapter.\hspace{1ex} \else \large\bfseries \appendixname\ \thechapter:\hspace{1ex} \fi \fi \interlinepenalty\@M \large \bfseries #1\par\nobreak \vskip0.8\baselineskip %\vskip29pt }\end{center}} % \renewcommand\@makeschapterhead[1]{\begin{center} { \normalfont \interlinepenalty\@M \large \bfseries #1\par\nobreak \vskip0.8\baselineskip %\vskip29pt }\end{center}} % \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% \typeout{\@chapapp\space\thechapter.}% \ifx\@app\empty \addcontentsline{toc}{chapter}% {\protect\numberline{\chaptocapp}#1}% \else \addtocontents{toc}{% \noindent \appendixname\ \thechapter:\hspace{1.6ex}#1 \nobreak\leaders \hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$} \hfill \nobreak \hb@xt@\@pnumwidth{\hss \thepage}\par} \fi \else \addcontentsline{toc}{chapter}{#1}% \fi \chaptermark{#1}% \@makechapterhead{#2}% \@afterheading } % \renewcommand\@schapter[1]{\addcontentsline{toc}{chapter}{#1}% \@makeschapterhead{#1} \@afterheading} % \def\chaptocapp{\thechapter.} % \renewcommand\section{% \@startsection{section}{1}{\z@} {1pt}{0.1pt}{\centering\bfseries\normalsize} } \renewcommand\subsection{% \@startsection{subsection}{2}{\z@} {1pt}{0.1pt}{\bfseries\normalsize} } \renewcommand\subsubsection[1]{% \@startsection{subsubsection}{3}{\z@} {7pt}{-0.5em}{\normalfont\normalsize}[#1]{\underbar{#1.}} } \renewcommand\paragraph{% \@startsection{paragraph}{4}{\z@} {3.25ex \@plus1ex \@minus.2ex}{-0.5em} {\normalfont\normalsize\itshape\hskip\parindent} } % % There should be a period after the section number. % Also the space between the section number and title are set to 0.5em \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth \let\@svsec\@empty\else \refstepcounter{#1} \ifnum#2=3 \edef\@svsec{\underbar{\csname the#1\endcsname.\hskip 0.5em}} \else \edef\@svsec{\csname the#1\endcsname.\hskip 0.5em}\fi \fi \@tempskipa #5\relax \ifdim \@tempskipa>\z@ \begingroup #6\relax \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}% \endgroup \csname #1mark\endcsname{#7} \addcontentsline{toc}{#1} {\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname.} \fi #7} \else \def\@svsechd{#6\hskip #3\relax %% \relax added 2 May 90 \@svsec #8\ifnum #2>\c@secnumdepth.\fi \csname #1mark\endcsname{#7} \addcontentsline{toc}{#1} {\ifnum #2>\c@secnumdepth \else \protect\numberline{\csname the#1\endcsname.} \fi #7}} \fi \@xsect{#5}} % % First paragraf of a section should be indented \def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi \par \@tempskipa #4\relax \@afterindenttrue \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \fi \if@nobreak \everypar{}\else \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}} % \addtocounter{secnumdepth}{1} \addtocounter{tocdepth}{1} % % Figures and Tables % \renewcommand\listfigurename{LIST OF FIGURES} \renewcommand\listtablename{LIST OF TABLES} \renewcommand\figurename{Figure} \renewcommand\tablename{Table} % % The spacing after the title of L.O.F. and L.O.T. is increased by % one extra \baselineskip. \renewcommand\listoffigures{% \ev is used for temporary strage of \parskip \setlength{\ev}{\parskip} \parskip0pt \chapter*{\listfigurename \@mkboth{\MakeUppercase\listfigurename}% {\MakeUppercase\listfigurename}}% \vskip\baselineskip \@starttoc{lof}% \parskip\ev} % \renewcommand\listoftables{% \ev is used for temporary storage of \parskip \setlength{\ev}{\parskip} \parskip0pt \chapter*{\listtablename \@mkboth{% \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}% \vskip\baselineskip \@starttoc{lot}% \parskip\ev} % % The expressions 'FIGURE' and 'TABLE' also appear in the LOF and LOT. % Also there is a period after the figure or table number. \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname ext@#1\endcsname}{#1} % The \csname command should follow immediately after { {\protect\numberline{\csname #1name\endcsname \space \csname the#1\endcsname .}{\ignorespaces #2}\vspace\baselineskip}\begingroup \@parboxrestore \normalsize \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par \endgroup} % % The space between the figure and caption is reduced from 10\p@ to 0\p@ % The value of \belowcaptionskip (0\p@) has not been changed. \setlength\abovecaptionskip{0\p@} % % A period should appear after the caption number. \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \centering{ \sbox\@tempboxa{#1. #2}% \ifdim \wd\@tempboxa >\hsize #1. #2\par \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi } % closes centering \vskip\belowcaptionskip} % % The spaces between the figure or table number and the caption are % redefined. \renewcommand\l@figure{\@dottedtocline{1}{0em}{6em}} \renewcommand\l@table{\@dottedtocline{1}{0em}{5.8em}} % % Table of Contents % \renewcommand\contentsname{TABLE OF CONTENTS} \renewcommand\tableofcontents{% \ev is used for temporary storage of \parskip \setlength{\ev}{\parskip} \parskip0pt % A line as 'TABLE OF CONTENTS' must not appear in the % Table of Contents. Hence we reproduce the \chapter* here except that % no entry is put into the toc file. \clearpage \global\@topnum\z@ \@afterindenttrue \begin{center} { \normalfont \interlinepenalty\@M \large \bfseries \contentsname\par\nobreak \vskip21pt \vskip0.8\baselineskip }\end{center} \@afterheading \@starttoc{toc}% \parskip\ev} % % FBE style TOC does not have bold lines. \renewcommand\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} % % The spacing of the TOC lines has been redefined. \renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.em}} \renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{2.9em}} \renewcommand*\l@subsubsection{\@dottedtocline{3}{7em}{3.8em}} \renewcommand*\l@paragraph{\@dottedtocline{4}{11.1em}{4.7em}} \renewcommand*\l@subparagraph{\@dottedtocline{5}{16.1em}{5.7em}} % % Appendix % \renewcommand\appendix{\par \setcounter{chapter}{0}% \setcounter{section}{0}% \renewcommand\@chapapp{\appendixname} \renewcommand\thechapter{\@Alph\c@chapter}% \let\@app1 } % % References % \def\@biblabel#1{#1.} % \renewenvironment{thebibliography}[1] {\chapter*{\bibname} \vskip0.5\baselineskip \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \itemsep17pt \@openbib@code \usecounter{enumiv}% \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} % \newenvironment{harvardbibliography}{% \chapter*{\bibname} \vskip0.5\baselineskip \begin{list}{}{\topsep0pt \leftmargin2em \rightmargin0pt \itemindent-2em \itemsep17pt \parsep0pt}} {\def\@noitemerr {\@latex@warning{Empty `harvardbibliography' environment}} \end{list}} % \newenvironment{bibnotcited}[1]{% \chapter*{\bibncname} \vskip0.5\baselineskip \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \itemsep17pt \@openbib@code \usecounter{enumiv}% \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `bibnotcited' environment}}% \endlist} % \newenvironment{harvardbibnotcited}{% \chapter*{\bibncname} \vskip0.5\baselineskip \begin{list}{}{\topsep0pt \leftmargin2em \rightmargin0pt \itemindent-2em \itemsep17pt \parsep0pt}} {\def\@noitemerr {\@latex@warning{Empty `harvardbibnotcited' environment}}% \end{list}} \renewcommand{\bibname}{REFERENCES} \newcommand{\bibncname}{REFERENCES NOT CITED} % % Footnotes are numbered consecutively throughout the % whole thesis and single line-spacing is invoked. % \def\footnote#1{% \@ifnextchar[{\@xfootnote}{% \setcounter{footnote}{\value{thsfootcnt}}% \addtocounter{thsfootcnt}{1}% \stepcounter{\@mpfn}% \begingroup\let\protect\noexpand \xdef\@thefnmark{\thempfn}\endgroup \let\baselinestretch\@singlespaced \@footnotemark\@footnotetext{#1} \let\baselinestretch\@onehalfspaced} } % % Single line spacing is required in in quotations. % \renewenvironment{quotation}{% \par \list{}{% \let\baselinestretch\@singlespaced \listparindent 1.5em% \itemindent \listparindent \rightmargin \leftmargin \parsep \z@ \@plus\p@}% \small \item\relax} {\par \let\baselinestretch\@onehalfspaced \endlist} \renewenvironment{quote}{% \par \let\baselinestretch\@singlespaced \list{}{% \baselineskip0.67\baselineskip \listparindent 1.5em% \itemindent\listparindent \rightmargin\leftmargin}% \small \item\relax} {\par \let\baselinestretch\@onehalfspaced \endlist} % % Spacing for displayed formulas and listings; within the text or % footnotes % \renewcommand{\normalsize}{% \@setsize\normalsize{14.5pt}\xiipt\@xiipt \abovedisplayskip 22pt \belowdisplayskip \abovedisplayskip \abovedisplayshortskip \abovedisplayskip \belowdisplayshortskip \abovedisplayskip \let\@listi\@listI } \renewcommand\footnotesize{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 12pt \belowdisplayskip \abovedisplayskip \abovedisplayshortskip \abovedisplayskip \belowdisplayshortskip \abovedisplayskip \def\@listi{\leftmargin\leftmargini \parsep 0pt \topsep 0pt \itemsep 0pt} } \setlength\leftmargini{1cm} \def\@listI{\leftmargin\leftmargini \parsep 0pt \topsep 0pt \itemsep 0pt} \def\@listii {\leftmargin\leftmarginii \labelwidth\leftmarginii \advance\labelwidth-\labelsep \parsep 0pt \topsep 0pt \itemsep 0pt} \def\@listiii{\leftmargin\leftmarginiii \labelwidth\leftmarginiii \advance\labelwidth-\labelsep \parsep 0pt \topsep 0pt \partopsep 0pt \itemsep 0pt} % % Page style % \oddsidemargin9.6mm \evensidemargin9.6mm \topmargin-7.mm \headheight20pt \textwidth155mm \textheight242mm \parindent1cm \pagestyle{myheadings} % % Invoke 1.5 spacing \renewcommand{\baselinestretch}{1.5} \setlength{\parskip}{21pt} % % This is end of fbe_tez.sty.