Hello,

I am using Istanbul Tech. Univ thesis class. Attached are the MWEs, the 
layout file and the ITU thesis class file.

Some equations are not previewed and there is no apparent reason. All 
other equations are previewed nicely.

I have tried the article class, which works fine. So I believe it is 
related to ITU thesis class file. Still it is funny only one or two 
equations are not previewed.

Did anybody experienced similar issue with other classes?

Thanks and happy 2019 to all...

B. Erkus

-- 
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please bottom-post. Start your reply here:

#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package none
\inputencoding auto
\fontencoding default
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Itemize
\noindent
\begin_inset Formula $F_{\text{y}}$
\end_inset

This does not render.
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $K_{\text{e}}$
\end_inset

 OK
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $K_{\text{s}}=\alpha_{\text{s}}K_{\text{e}}$
\end_inset

 OK
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $F_{\text{c}},\delta_{\text{c}}$
\end_inset

 
\begin_inset Formula $(F_{c})$
\end_inset

 OK
\end_layout

\begin_layout Itemize
This is not OK:
\end_layout

\begin_layout Standard
\noindent
\begin_inset Formula 
\begin{equation}
F_{\text{c}}=F_{\text{y}}+K_{\text{s}}\left(\delta_{\text{s}}-\delta_{\text{y}}\right)
\end{equation}

\end_inset


\end_layout

\begin_layout Itemize
\noindent
This is OK:
\begin_inset Formula 
\begin{equation}
\delta_{\text{r}}=\delta_{\text{c}}+\left(F_{\text{c}}-F_{\text{r}}\right)/K_{\text{c}}
\end{equation}

\end_inset


\end_layout

\begin_layout Itemize
\noindent

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
\begin_inset Formula 
$\left(\delta_{\text{c}},\delta_{\text{s}},\alpha_{\text{\text{s}}},\alpha_{\text{\text{c}}},\lambda\right)$
\end_inset


\family default
\series default
\shape default
\size default
\emph default
\bar default
\strikeout default
\xout default
\uuline default
\uwave default
\noun default
\color inherit
 OK
\end_layout

\end_body
\end_document
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass itutezLyX
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package none
\inputencoding auto
\fontencoding default
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Itemize
\noindent
\begin_inset Formula $F_{\text{y}}$
\end_inset

This does not render.
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $K_{\text{e}}$
\end_inset

 OK
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $K_{\text{s}}=\alpha_{\text{s}}K_{\text{e}}$
\end_inset

 OK
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $F_{\text{c}},\delta_{\text{c}}$
\end_inset

 
\begin_inset Formula $(F_{c})$
\end_inset

 OK
\end_layout

\begin_layout Itemize
This is not OK:
\end_layout

\begin_layout Standard
\noindent
\begin_inset Formula 
\begin{equation}
F_{\text{c}}=F_{\text{y}}+K_{\text{s}}\left(\delta_{\text{s}}-\delta_{\text{y}}\right)
\end{equation}

\end_inset


\end_layout

\begin_layout Itemize
\noindent
This is OK:
\begin_inset Formula 
\begin{equation}
\delta_{\text{r}}=\delta_{\text{c}}+\left(F_{\text{c}}-F_{\text{r}}\right)/K_{\text{c}}
\end{equation}

\end_inset


\end_layout

\begin_layout Itemize
\noindent

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
\begin_inset Formula 
$\left(\delta_{\text{c}},\delta_{\text{s}},\alpha_{\text{\text{s}}},\alpha_{\text{\text{c}}},\lambda\right)$
\end_inset


\family default
\series default
\shape default
\size default
\emph default
\bar default
\strikeout default
\xout default
\uuline default
\uwave default
\noun default
\color inherit
 OK
\end_layout

\end_body
\end_document
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
%\ProvidesClass{itutez}[15/02/2011 BE]
\ProvidesClass{itutezLyX}[31/11/2018 Baris Erkus]

\DeclareOption{openbib}{\PassOptionsToClass{openbib}{report}}
\DeclareOption{draft}{\PassOptionsToClass{draft}{report}}
\DeclareOption{final}{\PassOptionsToClass{final}{report}}
\DeclareOption{openright}{\PassOptionsToClass{openright}{report}}
\DeclareOption{openany}{\PassOptionsToClass{openany}{report}}

\DeclareOption{titlepage}{\ClassWarning{itutezLyX}{Title page always generated. 
Option ignored.}}
\DeclareOption{notitlepage}{\ClassWarning{itutezLyX}{Option 'notitlepage' not 
available for thesis.}}
\DeclareOption{twoside}{\ClassWarning{itutezLyX}{Option 'twoside' not available 
for thesis.}}
\DeclareOption{twocolumn}{\ClassWarning{itutezLyX}{Option 'twocolumn' not 
available for thesis.}}
\DeclareOption{landscape}{\ClassWarning{itutezLyX}{Option 'landscape' not 
available for thesis.}}
\DeclareOption{legalpaper}{\ClassWarning{itutezLyX}{Option 'legalpaper' not 
available for thesis.}}
\DeclareOption{a4paper}{\ClassWarning{itutezLyX}{Option 'a4paper' not available 
for this class.}}
\DeclareOption{a5paper}{\ClassWarning{itutezLyX}{Option 'a5paper' not available 
for this class.}}
\DeclareOption{executivepaper}{\ClassWarning{itutezLyX}{Option 'executivepaper' 
not available.}}
\DeclareOption{b5paper}{\ClassWarning{itutezLyX}{Option 'b5paper' not available 
for this class.}}
\DeclareOption{letterpaper}{\ClassWarning{itutezLyX}{Option 'letterpaper' 
superfluous. Ignored.}}
\DeclareOption{onecolumn}{\ClassWarning{itutezLyX}{Option 'onecolumn' 
superfluous. Ignored.}}
\DeclareOption{oneside}{\ClassWarning{itutezLyX}{Option 'oneside' superfluous. 
Ignored.}}

%====================================== TEZ DERLEME SEÇENEKLERİ 
======================================
\newif\if@Onluarkali
\newif\if@Ingilizce
\@Ingilizcefalse
\newif\if@Doktora
\@Doktorafalse
\newif\if@Bez
\newif\if@Bilisim
\newif\if@Avrasya
\newif\if@FenBilimleri
\newif\if@Deprem
\newif\if@SosyalBilimler
\newif\if@Enerji
\@Bezfalse
\DeclareOption{onluarkali}{ \PassOptionsToClass{twoside}{report} 
\@Onluarkalitrue}
\DeclareOption{ingilizce}{\@Ingilizcetrue}
\DeclareOption{doktora}{\@Doktoratrue}
\DeclareOption{turkce}{\@Ingilizcefalse}
\DeclareOption{yukseklisans}{\@Doktorafalse}
\DeclareOption{karton}{\@Bezfalse}
\DeclareOption{bez}{\@Beztrue}
\DeclareOption{bilisim}{\@Bilisimtrue}
\DeclareOption{avrasya}{\@Avrasyatrue}
\DeclareOption{fenbilimleri}{\@FenBilimleritrue}
\DeclareOption{deprem}{\@Depremtrue}
\DeclareOption{sosyalbilimler}{\@SosyalBilimlertrue}
\DeclareOption{enerji}{\@Enerjitrue}

\ProcessOptions

\LoadClass[a4paper,onecolumn,12pt]{report}[1996/10/31]
\RequirePackage{ifthen}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{fancyhdr}
\RequirePackage[hang]{caption}
\RequirePackage{calc}
\RequirePackage{appendix}
\usepackage[absolute]{textpos}
\usepackage{lscape}
\usepackage{url}
\usepackage{hyperref}
\hypersetup{
        colorlinks=true,
        linkcolor=black,
        citecolor=black,
        urlcolor=black,
        linktoc=all
}

\DeclareCaptionLabelSeparator{fbe2015}{\space:\space}
\captionsetup [table]{labelsep=fbe2015, position=top,justification=centering 
,aboveskip=0.3truecm, belowskip=6pt}
\captionsetup [figure]{labelsep=fbe2015, position=bottom, 
justification=centering,aboveskip=-0.06truecm, belowskip=-0.1truecm}
%\captionsetup [table]{position=top, aboveskip=0.3truecm, belowskip=6pt}
%\captionsetup [figure]{position=bottom, aboveskip=-0.06truecm, 
belowskip=-0.1truecm}

\def\BolumSagdaKalsin{
  \clearpage
  \if@twoside
    \ifodd
      \c@page
    \else
      \hbox{}
      \thispagestyle{empty}
      \newpage
      \if@twocolumn
        \hbox{}
        \newpage
      \fi
    \fi
  \fi
} 

\def\BolumSagdaKalsinNolu{
  \clearpage
  \if@twoside
    \ifodd
      \c@page
    \else
      \hbox{}
      %\thispagestyle{empty}
      \newpage
      \if@twocolumn
        \hbox{}
        \newpage
      \fi
    \fi
  \fi
} 

\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}

%Heceleme için hyphenpenalty değerini küçültebilirsiniz. 
%Değer küçüldükçe hecelemek isteyecek, değer büyükdükçe hecelemekten 
kaçacaktır.
% This block moved to the LaTeX file for convenience
%\hyphenpenalty=10000
%\exhyphenpenalty=10000
%\widowpenalty=10000
%\clubpenalty=10000

\newlength{\ChapterUstenBosluk}
\setlength{\ChapterUstenBosluk}{18.5mm}
\newlength{\UstenBosluk}
\setlength{\UstenBosluk}{14mm}

\newlength{\LoFparskip}     %% List of Figure parskip 08-05-2006
\setlength{\LoFparskip}{0em}

\newlength{\LoTparskip}     %% List of Table parskip 08-05-2006
\setlength{\LoTparskip}{0em}

\newlength{\ToCparskip}     %% Table of Content parskip 08-05-2006
\setlength{\ToCparskip}{0em}

\newif\if@SembolListesiVar  %% Sembol Listesi Olsun mu?
\@SembolListesiVarfalse

\newif\if@KisaltmaListesiVar  %% Kisaltma Listesi Olsun mu?
\@KisaltmaListesiVarfalse

\newif\if@TabloListesiVar   %% Tablo Listesi Olsun mu?
\@TabloListesiVartrue       %% Default = Var

\newif\if@SekilListesiVar   %% Sekil Listesi Olsun mu?
\@SekilListesiVartrue       %% Default = Var

\newif\if@ToCisDotted   %% ToC Noktalı / Noktasız
\@ToCisDottedfalse      %% Default = Noktasız

\newif\if@ChapterBoldToC%% ToC da BÖLÜM 1-2.. bold mu?
\@ChapterBoldToCfalse   %% Default = Bold Değil

\newif\if@TesekkurVar   %% Teşekkür var mı?
\@TesekkurVarfalse      %% Default = False

\newcommand*{\TabloListesiYok}{\@TabloListesiVarfalse}
\newcommand*{\SekilListesiYok}{\@SekilListesiVarfalse}
\newcommand*{\KisaltmaListesiYok}{\@KisaltmaListesiVarfalse}

\newcommand{\th@StoreIn}[2]{\gdef#1{#2}}  %% Stores the second arg in the 
command specified by the first arg.

\newcommand*{\yazar}[2]{
    \th@StoreIn{\th@isimsoyisim}{#1 #2}
    \th@StoreIn{\th@soyisimisim}{#2, #1}
}

\newcommand*{\danismani[2]}{
   \th@StoreIn{\th@danismani}{#1}
   \th@StoreIn{\th@danismaniuniv}{#2}
}


\newcommand*{\juriBir}[2]{
  \th@StoreIn{\th@juribir}{#1}
  \th@StoreIn{\th@juribiruniv}{#2}
}

\newcommand*{\juriIki}[2]{
  \th@StoreIn{\th@juriiki}{#1}
  \th@StoreIn{\th@juriikiuniv}{#2}
}

\newcommand*{\juriUc}[2]{
  \th@StoreIn{\th@juriuc}{#1}
  \th@StoreIn{\th@juriucuniv}{#2}
}

\newcommand*{\juriDort}[2]{
  \th@StoreIn{\th@juridort}{#1}
  \th@StoreIn{\th@juridortuniv}{#2}
}

\newcommand*{\juriBes}[2]{
  \th@StoreIn{\th@juribes}{#1}
  \th@StoreIn{\th@juribesuniv}{#2}
}


\newcommand*{\tezyoneticisi}[2]{
      \th@StoreIn{\th@TezYoneticisi}{#1}
      \th@StoreIn{\th@TezYoneticisiUniv}{#2}
}

\newcommand*{\anabilimdali}[2]{
      \th@StoreIn{\th@AnaBilimDali}{#1}
      \th@StoreIn{\th@Department}{#2}
      }
\newcommand*{\programi}[2]{
      \th@StoreIn{\th@Programi}{#1}
      \th@StoreIn{\th@Programme}{#2}
      }

\newcommand*{\ithaf}[1]{\th@StoreIn{\th@Ithaf}{#1}}

\newcommand*{\unvan}[1]{\th@StoreIn{\th@Unvan}{#1}}
 
      \if@Bilisim
       \def\th@Enstitu{B\.il\.i\c s\.im Enst\. it\"us\"u}
       \def\th@Institute{Informatics Institute}
      \fi
      \if@Deprem
       \def\th@Enstitu{Deprem Mühend\.isl\.iğ\.i ve Afet Yönet\.im\.i 
Enst\.itüsü}
       \def\th@Institute{Earthquake Engineering and Disaster Management 
Institute}
      \fi
      \if@FenBilimleri
       \def\th@Enstitu{Fen B\. il\. imler\. i Enst\. it\"us\"u}
       \def\th@Institute{Graduate School of Science}
       %\def\th@Instituteiki{Engineering and Technology} %FBE ingilizce yeni 
baslik icin
      \fi
      \if@SosyalBilimler
       \def\th@Enstitu{Sosyal B\. il\. imler Enst\. it\"us\"u}
       \def\th@Institute{Graduate School of Arts and Sciences}
      \fi
      \if@Enerji
       \def\th@Enstitu{Enerj\. i Enst\. it\"us\"u}
       \def\th@Institute{Institute of Energy}
      \fi
      \if@Avrasya
       \def\th@Enstitu{Avrasya Yer B\. il\. imler\. i Enst\. it\"us\"u}
       \def\th@Institute{Eurasia Institute of Earth Sciences}
      \fi

\newcommand{\kapak}[1]{\th@StoreIn{\th@Kapak}{#1}}
\if@Bez
  \kapak{\th@DisKapak\th@IcKapak\if@Ingilizce \th@IcKapakTurkce\fi \th@onaypage}
\else
  \kapak{\th@DisKapak\th@IcKapak\if@Ingilizce \th@IcKapakTurkce\fi \th@onaypage}
\fi

\newcommand*{\th@titleFtSz}{\fontseries{b}\fontsize{12}{12}\selectfont}         
    %% Title Font Boyutu
\newcommand*{\th@titleAnaBilimDaliFtSz}{\fontseries{b}\fontsize{12}{12}\selectfont}
 %% Anabilimdalı Font Boyutu
\newcommand*{\th@DestekFtSz}{\fontseries{b}\fontsize{12}{12}\selectfont}        
    %% Destek Font Boyutu
\newcommand*{\th@HdFnt}{\fontfamily{ptm}\selectfont\bfseries}                   
    %% Başlıklar Kalın (Bold) olacak
\newcommand*{\th@ChSz}{\normalsize\fontsize{12}{12}\selectfont}                 
    %% Chapter Font Boyutu 
\newcommand*{\th@ScSz}{\normalsize\fontsize{12}{12}\selectfont}                 
    %% Section Font Boyutu

\newcommand*{\baslik}[3]{
  \th@StoreIn{\th@baslikbir}{#1}
  \th@StoreIn{\th@baslikiki}{#2}
  \th@StoreIn{\th@baslikuc}{#3}
}
\renewcommand*{\title}[3]{
  \th@StoreIn{\th@Titlebir}{#1}
  \th@StoreIn{\th@Titleiki}{#2}
  \th@StoreIn{\th@Titleuc}{#3}
}
\newcommand*{\tarih}[2]{
      \th@StoreIn{\th@tarih}{#1}
      \th@StoreIn{\th@date}{#2}
      }
\newcommand*{\tarihKucuk}[2]{
      \th@StoreIn{\th@tarihKucuk}{#1}
      \th@StoreIn{\th@dateKucuk}{#2}
      }
\newcommand*{\ogrencino}[1]{\th@StoreIn{\th@ogrencino}{#1}}
\newcommand*{\tezvermetarih}[2]{
  \th@StoreIn{\th@tezvermetarih}{#1}
  \th@StoreIn{\th@submissiondate}{#2}
}
\newcommand*{\tezsavunmatarih}[2]{
  \th@StoreIn{\th@tezsavunmatarih}{#1}
  \th@StoreIn{\th@defencedate}{#2}
}

\newcommand*{\esdanismani}[2]{
   \th@StoreIn{\th@esdanisman}{#1}
   \th@StoreIn{\th@esdanismanuniv}{#2}
}


% ====================== INGILIZCE TURKCE TANIMLAMALAR 
================================
\if@Ingilizce
  \if@Doktora
    \def\TezSeviyesi{Ph.D. THESIS}
    \def\TezSeviyesiTR{DOKTORA TEZ{\.I}}
  \else
    \def\TezSeviyesi{M.Sc. THESIS}
    \def\TezSeviyesiTR{Y\"UKSEK L{\.I}SANS TEZ{\.I}}
  \fi
  \if@Deprem
        \def\th@EnstituUpper{ISTANBUL TECHNICAL UNIVERSITY}
        \def\th@EnstituUpperTR{İSTANBUL TEKNİK ÜNİVERSİTESİ}
        \def\th@EnstituLower{\MakeUppercase{\th@Institute}}
        \def\th@EnstituLowerTR{\MakeUppercase{\th@Enstitu}}
  \else
        \def\th@EnstituUpper{ISTANBUL TECHNICAL UNIVERSITY $\bigstar$ 
\MakeUppercase{\th@Institute}}
        \def\th@EnstituUpperTR{İSTANBUL TEKNİK ÜNİVERSİTESİ $\bigstar$ 
\MakeUppercase{\th@Enstitu}}
        %\def\th@EnstituUpper{Ä°STANBUL TECHNICAL UNIVERSITY $\bigstar$ 
INSTITUTE OF SCIENCE AND TECHNOLOGY}
  \fi
  \def\Baslikbir{\th@Titlebir}
  \def\Baslikiki{\th@Titleiki}
  \def\Baslikuc{\th@Titleuc}
  \def\Anabilim{\th@Department}
  \def\AnabilimBaslik{Department}
  \def\Program{\th@Programme}
  \def\ProgramBaslik{Programme}
  \def\TarihBuyuk{\th@date}
  \def\TarihKucuk{\th@dateKucuk}
  \def\VermeTarihi{\th@submissiondate}
  \def\VermeTarihiBaslik{Date of submission}
  \def\SavunmaTarihi{\th@defencedate}
  \def\SavunmaTarihiBaslik{Date of defence examination}
  \def\YoneticiBaslik{Supervisor (Chairman)}
  \def\DanismanBaslik{Thesis Advisor}
  \def\JuriBaslik{Members of the Examining Committee}
  \def\EklerinBasligi{APPENDICES}
\else
  \if@Doktora
    \def\TezSeviyesi{DOKTORA TEZÄ°}
  \else
    \def\TezSeviyesi{YÜKSEK LİSANS TEZİ}
  \fi
  \if@Deprem
        \def\th@EnstituUpper{İSTANBUL TEKNİK ÜNİVERSİTESİ}
        \def\th@EnstituLower{\MakeUppercase{\th@Enstitu}}
  \else
        \def\th@EnstituUpper{İSTANBUL TEKNİK ÜNİVERSİTESİ $\bigstar$ 
\MakeUppercase{\th@Enstitu}}
        %\def\th@EnstituUpper{İSTANBUL TEKNİK ÜNİVERSİTESİ $\bigstar$ FEN 
BİLİMLERİ ENSTİTÜSÜ}
  \fi
  \def\Baslikbir{\th@baslikbir}
  \def\Baslikiki{\th@baslikiki}
  \def\Baslikuc{\th@baslikuc}
  \def\Anabilim{\th@AnaBilimDali}
  \def\AnabilimBaslik{Anabilim Dalı}
  \def\Program{\th@Programi}
  \def\ProgramBaslik{Programı}
  \def\TarihBuyuk{\th@tarih}
  \def\TarihKucuk{\th@tarihKucuk}
  \def\VermeTarihi{\th@tezvermetarih}
  \def\VermeTarihiBaslik{Tezin Enstitüye Verildiği Tarih}
  \def\SavunmaTarihi{\th@tezsavunmatarih}
  \def\SavunmaTarihiBaslik{Tezin Savunulduğu Tarih}
  \def\YoneticiBaslik{Tez Danışmanı}
  \def\DanismanBaslik{Tez Danışmanı}
  \def\JuriBaslik{Diğer Jüri Üyeleri}
  \def\EklerinBasligi{EKLER}
\fi
%====================== BIBTEX ICIN TANIMALAMALAR 
========================================
\if@Ingilizce
  \def\baglac{and}
  \def\etal{et~al.}
  \def\duzenciler{editors}
  \def\duzenci{editor}
  \def\duzenleyen{edited by}
  \def\surum{edition}
  \def\cilt{volume}
  \def\kisasayi{no.}
  \def\sayi{number}
  \def\ssayfa{pp.}
  \def\sayfa{p.}
  \def\bolum{chapter}
  \def\teknikrapor{Technical Report}
  \def\yuksektezi{Master's thesis}
  \def\doktoratezi{Ph.D. thesis}
\else
  \def\baglac{ve}
  \def\etal{ve diğerleri}
  \def\duzenciler{(düzenleyenler)}
  \def\duzenci{(düzenleyen)}
  \def\duzenleyen{düzenleyen}
  \def\surum{sürüm}
  \def\cilt{cilt}
  \def\kisasayi{sayi}
  \def\sayi{sayi}
  \def\ssayfa{s.}
  \def\sayfa{s.}
  \def\bolum{bölüm}
  \def\teknikrapor{Teknik Rapor}
  \def\yuksektezi{{\it {Yüksek Lisans Tezi}}}
  \def\doktoratezi{{\it {Doktora Tezi}}}
\fi

%====================== UZUNLUKLA Ä°LGÄ°LÄ° TANIMLAMALAR 
========================================
%\newlength{\kurumboyu}
\newlength{\kaydirmaboyuTR}
\newlength{\kaydirmaboyuTRUpper}  %For Deprem Inst. first line: Istanbul Teknik 
Üniversitesi
\newlength{\kaydirmaboyuTRLower}  %For Deprem Inst. second line: Deprem Enst....
\newlength{\kaydirmaboyuENG}
\newlength{\kaydirmaboyuENGUpper}
\newlength{\kaydirmaboyuENGLower}

\if@Deprem
  \setlength{\kaydirmaboyuTRUpper}{150pt}
  \setlength{\kaydirmaboyuTRLower}{80pt}
  \setlength{\kaydirmaboyuENGUpper}{140pt}
  \setlength{\kaydirmaboyuENGLower}{30pt}
\fi
\if@Bilisim
  \setlength{\kaydirmaboyuTR}{80pt}
  \setlength{\kaydirmaboyuENG}{50pt}
\fi
\if@Avrasya
  \setlength{\kaydirmaboyuTR}{40pt}
  \setlength{\kaydirmaboyuENG}{20pt}
\fi
\if@FenBilimleri
  \setlength{\kaydirmaboyuTR}{60pt}
  \setlength{\kaydirmaboyuENG}{20pt}
\fi
\if@SosyalBilimler
  \setlength{\kaydirmaboyuTR}{30pt}
  \setlength{\kaydirmaboyuENG}{20pt}
\fi
\if@Enerji
  \setlength{\kaydirmaboyuTR}{60pt}
  \setlength{\kaydirmaboyuENG}{50pt}
\fi

\newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
%%\setlinespacing --> #1 * \defbaselineskip işlemini gerçekleştiriyor
\newcommand{\setlinespacing}[1]{\setlength{\baselineskip}{#1\defbaselineskip}}  
       
\newcommand{\doublespacing}{\setlength{\baselineskip}{2.0\defbaselineskip}}     
       %%\doublespacing = 2*\defbaselineskip
\newcommand{\singlespacing}{\setlength{\baselineskip}{\defbaselineskip}}        
        %%\singlespacing = 1*\defbaselineskip
\newcommand{\oneandonehalf}{\setlength{\baselineskip}{1.5\defbaselineskip}}     
       %%\oneandonehalf = 1.5*\defbaselineskip
\newcommand{\LoFspacing}{\setlength{\baselineskip}{1.0\defbaselineskip}}        
       %%\LoFspacing = 1.2*\defbaselineskip 08-05-2006
\newcommand{\LoTspacing}{\setlength{\baselineskip}{1.0\defbaselineskip}}        
       %%\LoTspacing = 1.2*\defbaselineskip 08-05-2006
\newcommand{\ToCspacing}{\setlength{\baselineskip}{1.0\defbaselineskip}}        
       %%\ToCspacing = 1.2*\defbaselineskip 08-05-2006
\newcommand{\Baslikspacing}{\setlength{\baselineskip}{1.3\defbaselineskip}}     
       %%\Baslikspacing = 1.2*\defbaselineskip 08-05-2006


%
% Sayfa yapısı tanımlanıyor...
%

\AtBeginDocument{
        %\setlength{\voffset}{0.0m}
        \setlength{\voffset}{-4mm}
 %       \setlength{\hoffset}{16mm}
        %\setlength{\oddsidemargin}{14.6mm}      %% Sayfa Solu = 1in(25.4 mm) + 
15.6mm = 40 mm%% [A4 297mm-210mm]
        %\setlength{\oddsidemargin}{10mm}
        \setlength{\oddsidemargin}{14.6mm}
        \setlength{\evensidemargin}{1mm}     %% Sayfa Sağı = 1in(25.4 mm) + 
15.6mm = 40 mm
        %\setlength{\topmargin}{-3.0mm}   
        \setlength{\topmargin}{3mm}       
        \setlength{\headheight}{0.0mm}         %% Sayfa Başlığı (Numarası) 
= 10 mm
        \setlength{\headsep}{0.0mm}             %% Sayfa Başlığı ile Sayfa 
Metni Arası Boşluk
        \setlength{\textheight}{248mm}%252mm          %% Sayfa Metni 
Yüksekliği
%        \setlength{\textheight}{232mm}          %% Sayfa Metni Yüksekliği
%        \setlength{\textwidth}{145mm}           %% Sayfa Metni Genişliği
        \setlength{\textwidth}{145mm}           %% Sayfa Metni Genişliği
        \setlength{\marginparsep}{0mm}
        \setlength{\marginparwidth}{0mm}
        \setlength{\leftmargini}{1.25em}
        \setlength{\leftmarginii}{2.2em}
        \setlength{\leftmarginiii}{2.2em}
        \setlength{\leftmarginiv}{2.2em}
        \setlength{\leftmarginv}{2.2em}
        \setlength{\leftmarginvi}{2.2em}
        \setlength{\leftmargin}{0mm}
        \setlength{\labelsep}{.5em}
        \setlength{\labelwidth}{1.5em}
        %\setlength{\footskip}{0pt}
        \setlength{\footskip}{24pt}
%        \setlength{\footskip}{60pt}
        \setlength{\topskip}{0mm}
        \setlength{\parindent}{0pt}             %% Paragrafların ilk 
satırlarının ne kadar içeri gireceği
        \setlength\parskip{6pt}
        \pagestyle{fancy}
        \markright{}
        \onecolumn
        \raggedbottom
        \normalsize
        \normalfont
        \oneandonehalf
        \setcounter{tocdepth}{5}
        \setcounter{secnumdepth}{4}            %% Bütün başlıklar 
numaralanacak
        }

\AtEndDocument{
    \th@ozgecmispage
}

\newcommand*{\th@ChapterStyle}{\th@HdFnt\th@ChSz}
\newcommand*{\th@SectionStyle}{\th@HdFnt\th@ScSz}
\newcommand*{\th@SubSectionStyle}{\th@HdFnt\th@ScSz}
\newcommand*{\th@OtherSecHeadStyles}{\th@HdFnt\th@ScSz}

\newcommand*{\th@DoChapCenter}{}
\newcommand*{\th@ChapHead}[1]{\protect\th@ChapterStyle \protect\th@DoChapCenter 
#1}

\newcommand*{\chapternameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce CHAPTER\else BÖLÜM\fi\normalfont}
\newcommand*{\contentsnameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce TABLE OF CONTENTS\else
İÇİNDEKİLER\fi\normalfont}
\newcommand*{\listtablenameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce LIST OF TABLES\else ÇİZELGE
LÄ°STESÄ°\fi\normalfont}
\newcommand*{\listfigurenameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce LIST OF FIGURES\else ŞEKİL
LÄ°STESÄ°\fi\normalfont}
\newcommand*{\abstractnameToC}{\fontfamily{ptm}\normalsize\selectfont 
SUMMARY\normalfont}
\newcommand*{\onaynameToC}{\fontfamily{ptm}\normalsize\selectfont KABUL VE 
ONAY\normalfont}
\newcommand*{\ozetnameToC}{\fontfamily{ptm}\normalsize\selectfont 
ÖZET\normalfont}
\newcommand*{\onsoznameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce FOREWORD\else ÖNSÖZ\fi\normalfont}
\newcommand*{\ozgecmisnameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce CURRICULUM VITAE\else ÖZGEÇMİŞ\fi\normalfont}
\newcommand*{\appendixnameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce APPENDICES\else EKLER\fi\normalfont}
\newcommand*{\symbolnameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce SYMBOLS\else SEMBOLLER\fi\normalfont}
\newcommand*{\bibnameToC}{\fontfamily{ptm}\normalsize\selectfont \if@Ingilizce 
REFERENCES\else KAYNAKLAR\fi\normalfont}
\newcommand*{\symbolname}{\th@ChapHead{\if@Ingilizce SYMBOLS\else SEMBOLLER\fi}}
\newcommand*{\kisaltmanameToC}{\fontfamily{ptm}\normalsize\selectfont 
\if@Ingilizce ABBREVIATIONS\else
KISALTMALAR\fi\normalfont}
\newcommand*{\kisaltmaname}{\th@ChapHead{\if@Ingilizce ABBREVIATIONS\else 
KISALTMALAR\fi}} 

\def\prefacename{\th@ChapHead{\if@Ingilizce FOREWORD\else ÖNSÖZ\fi}}%
\def\refname{\th@ChapHead{\if@Ingilizce REFERENCES\else KAYNAKLAR\fi}}%
\def\abstractname{\th@ChapHead{ÖZET}}%
\def\summaryname{\th@ChapHead{SUMMARY}}%
\def\ozgecmisname{\th@ChapHead{\if@Ingilizce CURRICULUM VITAE\else 
ÖZGEÇMİŞ\fi}}%
\def\bibname{\th@ChapHead{\if@Ingilizce REFERENCES\else KAYNAKLAR\fi}}%
\def\chaptername{\th@ChapHead{\if@Ingilizce CHAPTER\else BÖLÜM\fi}}%
\def\appendixname{\th@ChapHead{\if@Ingilizce APPENDIX\else EK\fi}}%
\def\contentsname{\th@ChapHead{\if@Ingilizce TABLE OF CONTENTS\else 
İÇİNDEKİLER\fi}}%
\def\listfigurename{\th@ChapHead{\if@Ingilizce LIST OF FIGURES\else ŞEKİL 
LÄ°STESÄ°\fi}}%
\def\listtablename{\th@ChapHead{\if@Ingilizce LIST OF TABLES\else ÇİZELGE 
LÄ°STESÄ°\fi}}%
\def\indexname{\th@ChapHead{\if@Ingilizce INDEX\else DÄ°ZÄ°N\fi}}%
\def\figurename{\bf \if@Ingilizce Figure\else Şekil\fi}%
\def\tablename{\bf \if@Ingilizce Table\else Çizelge\fi}%
\def\partname{\th@ChapHead{\if@Ingilizce PART\else KISIM\fi}}%
\def\glossaryname{\th@ChapHead{\if@Ingilizce DICTIONARY\else TERÄ°MLER 
SÖZLÜĞÜ\fi}}

\newcommand*{\th@DefTheChapter}{\arabic{chapter}}
\newcommand*{\th@DefTheSection}{\th@DefTheChapter.\arabic{section}}
\newcommand*{\th@DefTheSubsection}{\th@DefTheSection.\arabic{subsection}}
\newcommand*{\th@DefTheSubsubsection}{\th@DefTheSubsection.\arabic{subsubsection}}
\newcommand*{\th@DefTheSubsubsubsection}{\th@DefTheSubsubsection.\arabic{subsubsubsection}}

\renewcommand*{\thechapter}{\th@DefTheChapter}
\renewcommand*{\thesection}{\th@DefTheSection}
\renewcommand*{\thesubsection}{\th@DefTheSubsection}
\renewcommand*{\thesubsubsection}{\th@DefTheSubsubsection}
\newcommand*{\thesubsubsubsection}{\th@DefTheSubsubsubsection}

\newcommand*{\ToCLineisDotted}{\@ToCisDottedtrue}
\ToCLineisDotted

\renewcommand*\l@part[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \vskip 0.1em \@plus\p@
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      #1\nobreak
       \if@ToCisDotted
       \leaders\hbox{$\m@th\hbox{.}$}
%        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
%         mu$}
       \fi
      \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}\par
      \penalty\@highpenalty
    \endgroup
  \fi
}

\renewcommand*\l@chapter[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \vskip 1.0em \@plus\p@
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      #1\nobreak
       \if@ToCisDotted
       \leaders\hbox{$\m@th\hbox{.}$}
%        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
%         mu$}
       \fi
      \hfil\nobreak\hb@xt@\@pnumwidth{\hss #2}\par
      \penalty\@highpenalty
    \endgroup
  \fi}
  
\def\@tocline#1#2#3#4#5{%
  \vskip 1\p@
  \ifnum #1=\c@tocdepth \else
    \vskip \z@ \@plus.2\p@
    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
     \parindent #2\relax\@afterindenttrue
     \interlinepenalty\@M
     \leavevmode
     \@tempdima #3\relax
     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
     {#4}\nobreak
      \if@ToCisDotted
       \leaders\hbox{$\m@th\hbox{.}$}
%        \mkern \@dotsep mu\hbox{.} \mkern\@dotsep
%         mu$}
       \fi
     \hfill
     \nobreak
     \nobreak\hb@xt@\@pnumwidth{\hss #5}
     \par}%
  \fi}


%%%% İÇİNDEKİLER SAYFASINDAKİ HİZALAMALAR (INDENT MİKTARLARI)
\newcommand*\l@mistix{\@tocline{1}{0mm}{0mm}}
\renewcommand*\l@section{\@tocline{1}{1.1em}{1.5em}}
\renewcommand*\l@subsection{\@tocline{2}{2.1em}{2.5em}}
\renewcommand*\l@subsubsection{\@tocline{3}{3.3em}{3.0em}}
\newcommand*\l@subsubsubsection{\@tocline{4}{4.4em}{4.9em}}
\renewcommand*\l@table{\@tocline{1}{0em}{5.5em}}
\renewcommand*\l@figure\l@table

%%%%%%%%%%%%%%%%%%%%%%%%
% Numarası olmayan başlıkları TOC'de gösterme
\setcounter{secnumdepth}{0}
%
%BE, 31.11.2018
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\newcommand*\l@mistix{\@tocline{1}{0mm}{0mm}}
%\renewcommand*\l@section{\@tocline{1}{1.1em}{1.5em}}
%\renewcommand*\l@subsection{\@tocline{2}{1.9em}{2.3em}}
%\renewcommand*\l@subsubsection{\@toclinealper{3}{3.5em}{3.9em}}
%\renewcommand*\l@table{\@tocline{1}{0em}{5.5em}}
%\renewcommand*\l@figure\l@table


\newcommand*{\th@baslikbir}{
    \ClassError{itutezLyX}{*** You must specify the TITLE of your thesis! ***}
    {Use the \protect\baslik{} command in the preamble.}}

\newcommand*{\th@Titlebir}{
    \ClassError{itutezLyX}{*** You must specify the ENGLISH TITLE of your 
thesis! ***}
    {Use the \protect\title{}{}{} command in the preamble.}}

\newcommand*{\th@tarih}{
    \ClassError{itutezLyX}{*** You must specify the DATE of your thesis! ***}
    {Use the \protect\tarih{} command in the preamble.}}


\newcommand*{\th@TeziYoneten}{
    \ClassError{itutezLyX}{*** You must specify the TEZIYONETEN of your thesis! 
***}
    {Use the \protect\TeziYoneten{} command in the preamble.}}

\newcommand*{\th@isimsoyisim}{
        \ClassError{itutezLyX}{*** You must specify the AUTHOR of your thesis! 
***}
        {Use the \protect\author{}{} command in the \MessageBreak
                preamble. The first arg is your first name and \MessageBreak
                middle initial.  The second arg is your last name.}}
        
\newcommand{\th@abstractStash}{
    \ClassError{itutezLyX}{*** You must specify an abstract! ***}
    {Use the \protect\abstractpage[]{} command in the \MessageBreak
        preamble.  If your abstract runs over a page, \MessageBreak
        use the optional argument with the word 'long'.}
}

\newcommand{\th@ozetStash}{
    \ClassError{itutezLyX}{*** You must specify an ozet! ***}
    {Use the \protect\ozetpage[]{} command in the \MessageBreak
        preamble.  If your abstract runs over a page, \MessageBreak
        use the optional argument with the word 'long'.}
}

\newcommand{\th@AnaBilimDali}{
    \ClassError{itutezLyX}{*** You must specify an AnaBilimDali! ***}
    {Use the \protect\anabilimdali[]{} command in the \MessageBreak
        preamble.  If your abstract runs over a page, \MessageBreak
        use the optional argument with the word 'long'.}
}

\newcommand{\th@ozgecmisStash}{
    \ClassError{itutezLyX}{*** You must specify an ozgecmis ***}
    {Use the \protect\ozgecmispage[]{} command in the \MessageBreak
        preamble.  If your abstract runs over a page, \MessageBreak
        use the optional argument with the word 'long'.}
}

\newcommand{\summary}[1]{\th@StoreIn{\th@abstractStash}{#1}}
\newcommand{\ozet}[1]{\th@StoreIn{\th@ozetStash}{#1}}
\newcommand{\ozgecmis}[1]{\th@StoreIn{\th@ozgecmisStash}{#1}}
\newcommand{\onsoz}[1]{\@TesekkurVartrue\th@StoreIn{\th@tesekkurStash}{#1}}
\newcommand{\sembollistesi}[1]{\@SembolListesiVartrue\th@StoreIn{\th@symbollistStash}{#1}}
\newcommand{\kisaltmalistesi}[1]{\@KisaltmaListesiVartrue\th@StoreIn{\th@kisaltmalistStash}{#1}}

\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
  \numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
  \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
   \ifhmode\par\fi
  \removelastskip
  \vspace*{18pt}\goodbreak
  \refstepcounter{section}%
  \noindent
  \leavevmode
  \begingroup
  \th@HdFnt\th@ScSz
  \thesection\;\ 
  #2\quad
  \endgroup\goodbreak
  \addcontentsline{toc}{section}{\protect\numberline{\thesection}#1}}
\def\unnumberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vspace*{12pt}\goodbreak
  \noindent
  \leavevmode
  \begingroup
  \bfseries
  #2\quad
  \endgroup\goodbreak
  \addcontentsline{toc}{section}{#1}}
    
\def\subsection{\@ifstar\unnumberedsubsection\numberedsubsection}
\def\numberedsubsection{\@ifnextchar[%]
  \numberedsubsectionwithtwoarguments\numberedsubsectionwithoneargument}
\def\unnumberedsubsection{\@ifnextchar[%]
  \unnumberedsubsectionwithtwoarguments\unnumberedsubsectionwithoneargument}
\def\numberedsubsectionwithoneargument#1{\numberedsubsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsubsectionwithoneargument#1{\unnumberedsubsectionwithtwoarguments[#1]{#1}}
\def\numberedsubsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
   \vspace*{12pt}\goodbreak
  \refstepcounter{subsection}%
  \noindent
  \leavevmode
  \begingroup
  \th@HdFnt\th@ScSz
  \thesubsection\;\ 
  #2\quad
  \endgroup\goodbreak
  \addcontentsline{toc}{subsection}{\protect\numberline{\thesubsection}#1}}
\def\unnumberedsubsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vspace*{6pt}\goodbreak
  \noindent
  \leavevmode
  \begingroup
  \bfseries
  #2\quad
  \endgroup\goodbreak
  \addcontentsline{toc}{subsection}{#1}}

\def\subsubsection{\@ifstar\unnumberedsubsubsection\numberedsubsubsection}
\def\subsubsubsection{\unnumberedsubsubsubsection}
\def\numberedsubsubsection{\@ifnextchar[%]
  \numberedsubsubsectionwithtwoarguments\numberedsubsubsectionwithoneargument}
\def\unnumberedsubsubsection{\@ifnextchar[%]
  
\unnumberedsubsubsectionwithtwoarguments\unnumberedsubsubsectionwithoneargument}
\def\unnumberedsubsubsubsection{\@ifnextchar[%]
  
\unnumberedsubsubsubsectionwithtwoarguments\unnumberedsubsubsubsectionwithoneargument}

\def\numberedsubsubsectionwithoneargument#1{\numberedsubsubsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsubsubsectionwithoneargument#1{\unnumberedsubsubsectionwithtwoarguments[#1]{#1}}

\def\unnumberedsubsubsubsectionwithoneargument#1{\unnumberedsubsubsubsectionwithtwoarguments[#1]{#1}}

\def\numberedsubsubsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
   \vspace*{6pt}\goodbreak
  \refstepcounter{subsubsection}%
  \noindent
  \leavevmode
  \begingroup
  \th@HdFnt\th@ScSz
  \thesubsubsection\;\ 
  #2\quad
  \endgroup\goodbreak
  
\addcontentsline{toc}{subsubsection}{\protect\numberline{\thesubsubsection}#1}}
\def\unnumberedsubsubsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vspace*{6pt}\goodbreak
  \noindent
  \leavevmode
  \begingroup
  \bfseries
  #2\quad
  \endgroup\goodbreak
  \addcontentsline{toc}{subsubsection}{#1}}

\def\unnumberedsubsubsubsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vspace*{6pt}\goodbreak
  \noindent
  \leavevmode
  \begingroup
  \bfseries
  #2\quad
  \endgroup\goodbreak
  \addcontentsline{toc}{subsubsubsection}{#1}}
 
\def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne
                 \refstepcounter{part}%
                 \addcontentsline{toc}{part}{\thepart\protect\hspace{1em}#1}%
                 \addcontentsline{toc}{part}{#1}%
    \else
       \relax  
    \fi
    \markboth{}{}%
    {\centering
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >-2\relax
       \huge\bfseries \partname\nobreakspace\thepart
       \par
       \vskip 20\p@
     \fi
     \Huge \bfseries #2\par}%
    \@endpart}

\newif\if@appendix\@appendixfalse

\renewcommand\chapter{  
                      \global\@topnum\z@
                      \@afterindentfalse
                      \secdef\@chapter\@schapter}

%%EK BÖLÜMÜNDE BÖLÜM NUMARASI OLMASIN DİYE
\newcommand{\eklerkapak}{\global\@topnum\z@
                      \@afterindentfalse
                      \secdef\@eklerkapak\@schapter}

\def\@chapter[#1]#2{\BolumSagdaKalsinNolu
                    \ifnum \c@secnumdepth >\m@ne
                         \refstepcounter{chapter}%
                          \addtocontents{toc}{\protect\addvspace{-10\p@}}
                          %\addtocontents{toc}{\protect\addvspace{0\p@}}%
                          \if@appendix
                              \addtocontents{toc}{\protect\addvspace{0\p@}}
                              \addcontentsline{toc}{section}{\protect #1}       
                                                                        
% \relax
                                                                  \else
                              \addcontentsline{toc}{chapter}{\thechapter. 
\protect \bf{#1}}
                                                                  \fi
                    \else
                      \relax
                    \fi
                    \chaptermark{#1}%
                    %LoT ve LoF da bölümler arası geçişde bir boşluk 
bırakılacaksa...
                    %\addtocontents{lof}{\protect\addvspace{10\p@}}%
                    %\addtocontents{lot}{\protect\addvspace{10\p@}}%
                    \if@twocolumn
                      \@topnewpage[\@makechapterhead{#2}]%
                    \else
                      \@makechapterhead{#2}%
                      \@afterheading
                    \fi
                    }

%%EK BÖLÜMÜNDE BÖLÜM NUMARASI OLMASIN DİYE
\def\@eklerkapak[#1]#2{\BolumSagdaKalsinNolu
                    \ifnum \c@secnumdepth >\m@ne
                         \refstepcounter{chapter}%
                          \addtocontents{toc}{\protect\addvspace{-10\p@}}
                          %\addtocontents{toc}{\protect\addvspace{0\p@}}%
                          \if@appendix
                                                                                
\relax
                                                                  \else
                                                                                
\addcontentsline{toc}{chapter}{\protect \bf{\EklerinBasligi}}
                                                                  \fi
                    \else
                      \relax
                    \fi
                    \chaptermark{\EklerinBasligi}%
                    %LoT ve LoF da bölümler arası geçişde bir boşluk 
bırakılacaksa...
                    %\addtocontents{lof}{\protect\addvspace{10\p@}}%
                    %\addtocontents{lot}{\protect\addvspace{10\p@}}%
                   \if@twocolumn
                     \@topnewpage[\@makechapterheadEK{\EklerinBasligi}]%
                   \else
                     \@makechapterheadEK{\EklerinBasligi}%
                     \@afterheading
                   \fi
}

\def\@makechapterhead#1{
    \vspace*{\ChapterUstenBosluk}%
%               \addcontentsline{toc}{section}{\protect #1}
    {\parindent \z@ \raggedright
    \normalfont
    \ifnum \c@secnumdepth >\m@ne
     \if@appendix 
%      \th@HdFnt\th@ScSz \if@Ingilizce APPENDIX \else EK \fi \thechapter\;: #1
       \th@HdFnt\th@ScSz #1
%        \unnumberedsectionwithoneargument{#1}
%       \addcontentsline{toc}{subsection}{#1}
     \else
           \th@HdFnt\th@ScSz \thechapter. \;#1 
        \par\nobreak
        \vskip 18\p@
    \fi\fi
    \interlinepenalty\@M
    \th@HdFnt\th@ScSz \par\nobreak
    %\vskip 20\p@
  }}

%%EK BÖLÜMÜNDE BÖLÜM NUMARASI OLMASIN DİYE
\def\@makechapterheadEK#1{
    \vspace*{\ChapterUstenBosluk}%
    {\parindent \z@ \raggedright
    \normalfont
    \ifnum \c@secnumdepth >\m@ne
         \th@HdFnt\th@ScSz #1
     \fi
    \interlinepenalty\@M
    \th@HdFnt\th@ScSz \par\nobreak
    %\vskip 20\p@
  }}


\def\@schapter#1{\BolumSagdaKalsinNolu
    \@makeschapterhead{#1}
    \@afterheading
    }

    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\newcommand*{\th@DisKapak}{
        \BolumSagdaKalsin
        \thispagestyle{empty}
        
\begin{list}{}{\setlength{\leftmargin}{0cm}\setlength{\rightmargin}{-2cm}}
                \vspace*{-8.5mm}
        \centering\item[]
                        \begin{textblock}{}[0,1](1.85,1.78)
                                \if@Deprem
                                        \if@Ingilizce
                                                \hspace*{\kaydirmaboyuENGUpper}
                                        \else
                                                \hspace*{\kaydirmaboyuTRUpper}
                                        \fi
                                        \underline{{\bf\th@EnstituUpper}}\\
                                        \if@Ingilizce
                                                \hspace*{\kaydirmaboyuENGLower}
                                        \else
                                                \hspace*{\kaydirmaboyuTRLower}
                                        \fi                                     
                                        \underline{{\bf\th@EnstituLower}}\\
                                        %\hspace*{130pt} %FBE ingilizce yeni 
baslik icin
                                        
%\underline{\MakeUppercase{\bf\th@Instituteiki}}\\ %FBE ingilizce yeni baslik 
icin
                                \else
                                        \if@Ingilizce 
                                                \hspace*{\kaydirmaboyuENG}
                                        \else
                                                \hspace*{\kaydirmaboyuTR}
                                        \fi
                                        \underline{{\bf\th@EnstituUpper}}\\
                                        %\hspace*{130pt} %FBE ingilizce yeni 
baslik icin
                                        
%\underline{\MakeUppercase{\bf\th@Instituteiki}}\\ %FBE ingilizce yeni baslik 
icin                      
                                \fi
                        \end{textblock}
        \vspace*{55mm}
                \hspace{-20mm}
                        \begin{tabular}{c}
                                \th@titleFtSz\Baslikspacing \Baslikbir \\
                                \th@titleFtSz\Baslikspacing \Baslikiki \\
                                \th@titleFtSz\Baslikspacing \Baslikuc \\
                        \end{tabular}\\
        \vspace*{55mm}
                \hspace{-20mm}
                        \begin{tabular}[b]{c}
                                \th@titleFtSz \TezSeviyesi  \\
                                \\
                                \th@titleFtSz \th@isimsoyisim  \\
                                \\
                        \end{tabular}\\
        \vspace*{27mm}
                \hspace{-20mm}
                        \begin{tabular}[t]{c}
                                {\th@titleAnaBilimDaliFtSz \Anabilim}\\
                                \\
                                {\th@titleAnaBilimDaliFtSz \Program}
                        \end{tabular}\\
        \vspace*{14mm}
                \hspace{-20mm}
                        {\if@Bez
                                \begin{tabular}{c}
                                        \\
                                \end{tabular}\\
                        \else 
                                \begin{tabular}{c}
                                        \th@titleFtSz\DanismanBaslik : 
\th@titleFtSz \th@TezYoneticisi\\
                                \end{tabular}\\
                        \fi}
        \vspace*{22mm}
                \hspace{-20mm}
                        \begin{tabular}{c}
                                \th@titleFtSz \TarihBuyuk \\
                        \end{tabular}
        \end{list}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\th@IcKapak}{
    \BolumSagdaKalsin
    \thispagestyle{empty}
                
\begin{list}{}{\setlength{\leftmargin}{0cm}\setlength{\rightmargin}{-2cm}}
                        \vspace*{-8.5mm}
                        \centering\item[]
                        \begin{textblock}{}[0,1](1.85,1.78)
                                \if@Deprem
                                        \if@Ingilizce
                                                \hspace*{\kaydirmaboyuENGUpper}
                                        \else
                                                \hspace*{\kaydirmaboyuTRUpper}
                                        \fi
                                        \underline{{\bf\th@EnstituUpper}}\\
                                        \if@Ingilizce
                                                \hspace*{\kaydirmaboyuENGLower}
                                        \else
                                                \hspace*{\kaydirmaboyuTRLower}
                                        \fi                                     
                                        \underline{{\bf\th@EnstituLower}}\\
                                        %\hspace*{130pt} %FBE ingilizce yeni 
baslik icin
                                        
%\underline{\MakeUppercase{\bf\th@Instituteiki}}\\ %FBE ingilizce yeni baslik 
icin
                                \else
                                        \if@Ingilizce 
                                                \hspace*{\kaydirmaboyuENG}
                                        \else
                                                \hspace*{\kaydirmaboyuTR}
                                        \fi
                                        \underline{{\bf\th@EnstituUpper}}\\
                                        %\hspace*{130pt} %FBE ingilizce yeni 
baslik icin
                                        
%\underline{\MakeUppercase{\bf\th@Instituteiki}}\\ %FBE ingilizce yeni baslik 
icin                      
                                \fi
                        \end{textblock}
                        \vspace*{55mm}
                        \hspace{-20mm}
                                \begin{tabular}{c}
                                        \th@titleFtSz\Baslikspacing \Baslikbir 
\\
                                        \th@titleFtSz\Baslikspacing \Baslikiki 
\\
                                        \th@titleFtSz\Baslikspacing \Baslikuc \\
                                \end{tabular}\\
                        \vspace*{55mm}
                        \hspace{-20mm}
                                \begin{tabular}[b]{c}
                                        \th@titleFtSz \TezSeviyesi  \\
                                        \\
                                        \th@titleFtSz \th@isimsoyisim  \\
                                        \th@titleFtSz (\th@ogrencino)\\
                                \end{tabular}\\
                        \vspace*{27mm}
                        \hspace{-20mm}
                                \begin{tabular}[t]{c}
                                        {\th@titleAnaBilimDaliFtSz \Anabilim}\\
                                        \\
                                        {\th@titleAnaBilimDaliFtSz \Program}
                                \end{tabular}\\
                        \vspace*{14mm}
                        \hspace{-20mm}
                                \begin{tabular}{c}
                                        \th@titleFtSz\DanismanBaslik : 
\th@titleFtSz \th@TezYoneticisi\\
                                        
\ifthenelse{\equal{\th@esdanisman}{}}{}{ \bf{E\c{s} Dan\i \c{s}man:} 
\bf{\th@esdanisman} \\}
                                \end{tabular}\\
                        \vspace*{22mm}
                        \hspace{-20mm}
                                \begin{tabular}{c}
                                        \th@titleFtSz \TarihBuyuk \\
                                \end{tabular}
                \end{list}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\newcommand*{\th@IcKapakTurkce}{
    \BolumSagdaKalsin
    \thispagestyle{empty}
                
\begin{list}{}{\setlength{\leftmargin}{0cm}\setlength{\rightmargin}{-2cm}}
                        \vspace*{-8.5mm}
                        \centering\item[]
                                \begin{textblock}{}[0,1](1.85,1.78)
                                        \if@Deprem
                                                \hspace*{\kaydirmaboyuTRUpper}
                                                
\underline{{\bf\th@EnstituUpperTR}}\\
                                                \hspace*{\kaydirmaboyuTRLower}
                                                
\underline{{\bf\th@EnstituLowerTR}}\\
                                                %\hspace*{130pt} %FBE ingilizce 
yeni baslik icin
                                                
%\underline{\MakeUppercase{\bf\th@Instituteiki}}\\ %FBE ingilizce yeni baslik 
icin
                                        \else
                                                \hspace*{\kaydirmaboyuTR}
                                                
\underline{{\bf\th@EnstituUpperTR}}\\
                                                %\hspace*{130pt} %FBE ingilizce 
yeni baslik icin
                                                
%\underline{\MakeUppercase{\bf\th@Instituteiki}}\\ %FBE ingilizce yeni baslik 
icin                      
                                        \fi
                                \end{textblock}         
                        \vspace*{55mm}
                        \hspace{-20mm}
                                \begin{tabular}{c}
                                        \th@titleFtSz\Baslikspacing 
\th@baslikbir \\
                                        \th@titleFtSz\Baslikspacing 
\th@baslikiki \\
                                        \th@titleFtSz\Baslikspacing 
\th@baslikuc \\
                                \end{tabular}\\
                        \vspace*{55mm}
                        \hspace{-20mm}
                                \begin{tabular}[b]{c}
                                        \th@titleFtSz \TezSeviyesiTR  \\
                                        \\
                                        \th@titleFtSz \th@isimsoyisim  \\
                                        \th@titleFtSz (\th@ogrencino)\\
                                \end{tabular}\\
                        \vspace*{27mm}
                        \hspace{-20mm}
                                \begin{tabular}[t]{c}
                                        {\th@titleAnaBilimDaliFtSz 
\th@AnaBilimDali}\\
                                        \\
                                        {\th@titleAnaBilimDaliFtSz \th@Programi}
                                \end{tabular}\\
                        \vspace*{14mm}
                        \hspace{-20mm}
                                \begin{tabular}{c}
                                        \th@titleFtSz {Tez 
Dan{\i}\c{s}man{\i}}: \th@titleFtSz \th@TezYoneticisi\\
                                        
\ifthenelse{\equal{\th@esdanisman}{}}{}{ \bf{E\c{s} Dan\i \c{s}man:} 
\bf{\th@esdanisman} \\}
                                \end{tabular}\\
                        \vspace*{22mm}
                        \hspace{-20mm}
                                \begin{tabular}{c}
                                        \th@titleFtSz \th@tarih \\
                                \end{tabular}
                \end{list}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\newcommand*{\th@IthafSayfasi}{
      \BolumSagdaKalsinNolu
        \vspace*{0.3\textheight}
        \begin{flushright}
         \textbf{\emph{\th@Ithaf}}
        \end{flushright}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\newcommand{\th@onaypage}{
    \BolumSagdaKalsin
    \hyphenpenalty=100
    \singlespacing
\vspace*{18mm}
\if@Ingilizce
{\th@isimsoyisim}, a \if@Doktora Ph.D.\ \else M.Sc.\ \fi student of
ITU \th@Institute Engineering and Technology \th@ogrencino\ successfully 
defended the thesis
entitled {``\Baslikbir\ifthenelse{\equal{\Baslikiki}{}}{}{
\Baslikiki\ifthenelse{\equal{\Baslikuc}{}}{}{\
\Baslikuc}}''}, which he/she prepared after fulfilling the
requirements specified in the associated legislations,
before the jury whose signatures are below.

\vspace*{14mm}
\hspace{-3mm}
\begin{tabular}{p{33mm} l l}
   &  &  \\
   &  &  \\
   &  &  \\
  \bf{Thesis Advisor :}& \bf{\th@TezYoneticisi} & 
.............................. \\
   & \th@TezYoneticisiUniv  &  \\
\ifthenelse{\equal{\th@esdanisman}{}}{}{   &  &  \\
   &  &  \\
  \bf{Co-advisor :}& \bf{\th@esdanisman} & 
.............................. \\
   & \th@esdanismanuniv  &  \\}
   &  &  \\
   &  &  \\
  \bf{Jury Members :}& \bf{\th@juribir} & 
.............................. \\
   & \th@juribiruniv  &  \\
   &  &  \\
   &  &  \\
                        & \bf{\th@juriiki} & 
.............................. \\
   & \th@juriikiuniv  &  \\
   &  &  \\
   &  &  \\
                        & \bf{\th@juriuc} & 
.............................. \\
   & \th@juriucuniv  &  \\
   &  &  \\
   &  &  \\
\ifthenelse{\equal{\th@juridort}{}}{}{ & 
\bf{\th@juridort} & 
.............................. \\
   & \th@juridortuniv  &  \\}
   &  &  \\
   &  &  \\
\ifthenelse{\equal{\th@juribes}{}}{}{ & \bf{\th@juribes} & 
.............................. \\
   & \th@juribesuniv  &  \\}
   &  &  \\
   &  &  \\
\end{tabular}

\hspace{-3mm}
\begin{tabular}{l l}
   \bf{Date of Submission :} & \bf{\th@submissiondate}  \\
   \bf{Date of Defense :} & \bf{\th@defencedate}  \\
\end{tabular}
\else

\.IT\"U, \th@Enstitu'n\"un \th@ogrencino\ numaral{\i} \if@Doktora Doktora
\else Y\"uksek Lisans \fi\ \"O\u{g}rencisi
{\th@isimsoyisim}, ilgili 
y\"onetmeliklerin belirledi\u{g}i gerekli t\"um \c{s}artlar{\i} yerine 
getirdikten
sonra haz{\i}rlad{\i}\u{g}{\i} 
{``\Baslikbir\ifthenelse{\equal{\Baslikiki}{}}{}{   
\Baslikiki\ifthenelse{\equal{\Baslikuc}{}}{}{\ 
\Baslikuc}}''}
ba\c{s}\-l\i k\-l{\i}
tezini a\c{s}a\u{g}\i daki imzalar{\i} olan j\"uri \"on\"unde
ba\c{s}ar{\i} ile sunmu\c{s}tur.

\vspace*{14mm}
\hspace{-3mm}
\begin{tabular}{p{33mm} l l}
   &  &  \\
   &  &  \\
   &  &  \\
  \bf{Tez Dan\i \c{s}man{\i} :}& \bf{\th@TezYoneticisi} & 
.............................. \\
   & \th@TezYoneticisiUniv  &  \\
\ifthenelse{\equal{\th@esdanisman}{}}{}{   &  &  \\
   &  &  \\
  \bf{E\c{s} Dan\i \c{s}man :}& \bf{\th@esdanisman} & 
.............................. \\
   & \th@esdanismanuniv  &  \\}
   &  &  \\
   &  &  \\
  \bf{J\"uri \"Uyeleri :}& \bf{\th@juribir} & 
.............................. \\
   & \th@juribiruniv  &  \\
   &  &  \\
   &  &  \\
                        & \bf{\th@juriiki} & 
.............................. \\
   & \th@juriikiuniv  &  \\
   &  &  \\
   &  &  \\
\ifthenelse{\equal{\th@juriuc}{}}{}{ & 
\bf{\th@juriuc} & 
.............................. \\
   & \th@juriucuniv  &  \\}
   &  &  \\
   &  &  \\
\ifthenelse{\equal{\th@juridort}{}}{}{ & 
\bf{\th@juridort} & 
.............................. \\
   & \th@juridortuniv  &  \\}
   &  &  \\
   &  &  \\
\ifthenelse{\equal{\th@juribes}{}}{}{ & \bf{\th@juribes} 
& 
.............................. \\
   & \th@juribesuniv  &  \\}
   &  &  \\
   &  &  \\
\end{tabular}

\hspace{-3mm}
\begin{tabular}{l l}
   \bf{Teslim Tarihi :} & \bf{\th@tezvermetarih}  \\
   \bf{Savunma Tarihi :} & \bf{\th@tezsavunmatarih}  \\
\end{tabular}
\fi
    \sloppy
   }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\newcommand{\th@Onsoz}{
     \BolumSagdaKalsinNolu
     \singlespacing
     \hyphenpenalty=5000
     \vspace*{\UstenBosluk}
     \begin{list}{}{\setlength{\leftmargin}{0cm}\setlength{\rightmargin}{0cm}}
     \item[]
     \th@ChapterStyle\prefacename\\
     \end{list}
    \vspace*{-5mm}
    \sloppy
    \th@tesekkurStash   % the actual tesekkur
    \vspace{30pt} \\
    \TarihKucuk \hfill \th@isimsoyisim
    
    \vspace*{-2.54mm} \hfill \th@Unvan\\
    \addcontentsline{toc}{part}{\bf{\protect\onsoznameToC}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\th@ozetpage}{
     \BolumSagdaKalsinNolu
     \addcontentsline{toc}{part}{\bf{\protect\ozetnameToC}}
     \vspace*{\UstenBosluk}
       \begin{center}
        \begin{tabular}{c}
         \th@titleFtSz\Baslikspacing \th@baslikbir \\
         \th@titleFtSz\Baslikspacing \th@baslikiki \\
         \th@titleFtSz\Baslikspacing \th@baslikuc \\
                  \\
         \th@titleFtSz\abstractname\ \\
                  \\
        \end{tabular}
       \end{center}
%     \begin{list}{}{\setlength{\leftmargin}{0cm}\setlength{\rightmargin}{0cm}}
%     \item[]
%     \th@ChapterStyle \th@baslikbir\ \th@baslikiki\ \th@baslikuc  \\
%     \vspace*{10pt}\\
%     \th@ChapterStyle \abstractname\ \\
%     \end{list}
     \singlespacing
     \vspace*{-5mm}
     \sloppy
     \th@ozetStash   % the actual ozet
     }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
\newcommand{\th@Summarypage}{
     \BolumSagdaKalsinNolu
     \addcontentsline{toc}{part}{\bf{\protect\abstractnameToC}}
     \vspace*{\UstenBosluk}
       \begin{center}
        \begin{tabular}{c}
         \th@titleFtSz\Baslikspacing \th@Titlebir \\
         \th@titleFtSz\Baslikspacing \th@Titleiki \\
         \th@titleFtSz\Baslikspacing \th@Titleuc \\
                  \\
         \th@titleFtSz\summaryname\ \\
                  \\
        \end{tabular}
       \end{center}
     \singlespacing
     \vspace*{-5mm}
     \sloppy
     \th@abstractStash   % the actual abstract
     }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\th@ozgecmispage}{
     \BolumSagdaKalsinNolu
     \vspace*{\UstenBosluk}
     \begin{list}{}{\setlength{\leftmargin}{0cm}\setlength{\rightmargin}{0cm}}
     \item[]
     \th@ChapterStyle\ozgecmisname\\
     \end{list}
          \singlespacing
     \vspace*{-2mm}
     \sloppy
     \th@ozgecmisStash   % the actual ozgecmis
          \addtocontents{toc}{\protect\addvspace{-10\p@}}
     \addcontentsline{toc}{chapter}{\bf{\protect\ozgecmisnameToC}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\tableofcontents{
         \vspace*{\ChapterUstenBosluk}
             
{\chapter*{\contentsname}\addcontentsline{toc}{part}{\bf{\protect\contentsnameToC}}%
    \vspace*{-20pt}
    \hfill\vspace*{0.5truecm}{\bf\underline{\if@Ingilizce Page\else Sayfa\fi}}}

    \let\orig@numberline\numberline
    \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}
    \newlength{\th@oldparskip}
    \setlength{\th@oldparskip}{\parskip}
    \setlength{\parskip}{\ToCparskip}
    \@starttoc{toc}
    \setlength{\parskip}{\th@oldparskip}
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\newcommand\kisaltmalist{
    \vspace*{\ChapterUstenBosluk}
    
\chapter*{\kisaltmaname\@mkboth{\MakeUppercase\kisaltmaname}{\MakeUppercase\kisaltmaname}}
    \addcontentsline{toc}{part}{\bf{\protect\kisaltmanameToC}}
    \vspace*{-20pt}
    \th@kisaltmalistStash}
    
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
\newcommand\symbollist{
    \vspace*{\ChapterUstenBosluk}
    
\chapter*{\symbolname\@mkboth{\MakeUppercase\symbolname}{\MakeUppercase\symbolname}}
    \addcontentsline{toc}{part}{\bf{\protect\symbolnameToC}}
    \vspace*{-20pt}
    \th@symbollistStash
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\listoftables{
    \vspace*{\ChapterUstenBosluk}
    {\chapter*{\listtablename}
    \vspace*{-20pt}
    \hfill\vspace*{0.5truecm}{\bf\underline{\if@Ingilizce Page\else Sayfa\fi}}}
    
    \let\orig@numberline\numberline    
    \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}
    \renewcommand*{\numberline}[1]{%
%    \orig@numberline{\bf\tablename\ ##1}\hspace{-12pt}{\bf:}\hspace{7pt}}
% Bu sayılar değiştirildi. BE 31.11.2018
    \orig@numberline{\bf\tablename\ ##1}\hspace{-2pt}{\bf:}\hspace{3pt}}
    \addcontentsline{toc}{part}{\bf{\protect\listtablenameToC}}
    \setlength{\th@oldparskip}{\parskip}
    \setlength{\parskip}{\LoTparskip}
    \@starttoc{lot}
    \setlength{\parskip}{\th@oldparskip}
    \let\numberline\orig@numberline
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
\renewcommand\listoffigures{
    \vspace*{\ChapterUstenBosluk}
    {\chapter*{\listfigurename}
    \vspace*{-20pt}
    \hfill\vspace*{0.5truecm}{\bf\underline{\if@Ingilizce Page\else Sayfa\fi}}}

    \let\orig@numberline\numberline
    \@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}
    \renewcommand*{\numberline}[1]{%
%    \orig@numberline{\bf\figurename\ ##1}\hspace{-7pt}{\bf:}\hspace{7pt}}
% Bu sayılar değiştirildi. BE 31.11.2018
    \orig@numberline{\bf\figurename\ ##1}\hspace{-7.5pt}{\bf:}\hspace{3pt}}
    \addcontentsline{toc}{part}{\bf{\protect\listfigurenameToC}}
    \setlength{\th@oldparskip}{\parskip}
    \setlength{\parskip}{\LoFparskip}
    \@starttoc{lof}
    \setlength{\parskip}{\th@oldparskip}
    \let\numberline\orig@numberline
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% APPENDIX command

\newcommand{\eklerbolum}[1]{\par
    \newpage
    \singlespacing
    \setcounter{chapter}{#1}%
    \setcounter{section}{0}%
         \renewcommand{\theequation}{{\bf A.\arabic{equation}}}
         \setcounter{equation}{0}
    %\renewcommand\@chapapp{\appendixname}%
    \renewcommand\thechapter{\@Alph\c@chapter}
              %\addtocontents{toc}{\protect\addvspace{-10\p@}}
%    \addcontentsline{toc}{chapter}{\bf{\protect\appendixnameToC}}
    \global \@appendixtrue
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\@biblabel}[1]{#1}
\renewenvironment{thebibliography}[1]{%\singlespacing
     \vspace*{\ChapterUstenBosluk}

     \chapter*{\bibname}%
     \singlespacing
     \addtocontents{toc}{\protect\addvspace{-10\p@}}
     \addcontentsline{toc}{chapter}{\bf{\protect\bibnameToC}}
     \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
     \list{\@biblabel{[\@arabic\c@enumiv]}}%
           {\settowidth\labelwidth{\@biblabel{999}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \setlength{\leftmargin}{-\leftmargin}
            \advance\leftmargin by 29.0mm
            \setlength{\itemindent}{-15.0mm}%
  %         \setlength{\listparindent}{-20mm}%
            \@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}
      
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\th@MakeThesisPrologue}{
        \thispagestyle{empty}
        \fontfamily{ptm}
        \selectfont
        \th@Kapak
        \fontfamily{cmr}
        \selectfont
        \pagenumbering{roman}%
%        \setcounter{page}{\if@Bez 3\else 1\fi}%{\if@Ingilizce\if@Bez 3\else 
1\fi\else 1\fi}
        \setcounter{page}{\if@Ingilizce \if@Onluarkali 5 \else 3 \fi \else 
           \if@Onluarkali 3 \else 2 \fi \fi}
        \singlespacing
                  \renewcommand{\ttdefault}{pcr} %MS Times fontu için
                  \normalfont\selectfont               %MS Times fontu için
         

        \ifthenelse{\equal{\th@Ithaf}{}}{}{\th@IthafSayfasi} 
       
        \if@TesekkurVar
          \th@Onsoz
        \fi
        \ToCspacing
        \tableofcontents
        \if@KisaltmaListesiVar
          \kisaltmalist
        \fi
        \if@SembolListesiVar
          \symbollist
        \fi
        \if@TabloListesiVar
          \LoTspacing
          \listoftables
        \fi
        \if@SekilListesiVar
          \LoFspacing
          \listoffigures
        \fi
        \if@Ingilizce
          \th@Summarypage
          \th@ozetpage
        \else
          \th@ozetpage
          \th@Summarypage
        \fi
        \newpage
        \BolumSagdaKalsinNolu
        \oneandonehalf
     }

\let\th@OldBeginDocument\document
\renewcommand*{\document}{
    \th@OldBeginDocument
    \th@MakeThesisPrologue
    \oneandonehalf
    \pagenumbering{arabic}
}

\endinput
#% Do not delete the line below; configure depends on this      
#  \DeclareLaTeXClass[itutezLyX]{ITU Tez}
#  \DeclareCategory{Reports}

Format 66
Input stdclass.inc
Input numreport.inc

# Input general definitions
Input report.layout

Reply via email to