%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%     Suleyman Demirel University                                                                                    %%
%%     Graduate School of Applied and Natural Sciences                                                  %%
%%                                                                                                                                     %%
%%     'sduffbetez.cls'  Document class  --- LaTeX2e     (06.05.2023)                               %%
%%                                                                                                                                       %%
%%     Class file provided by ZD                                                                                          %%
%%                                                                                                                                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{sdufbetezTR}[12/12/2015 fbe paper class]
\AtEndOfClass{\RequirePackage{microtype}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{extarticle}}
\ProcessOptions*
\LoadClass{extarticle}





\RequirePackage[left=4cm,%
                right=2.5cm,%
                top=2.5cm,%
                bottom=2.5cm,%
                a4paper]{geometry}%


\RequirePackage[utf8]{inputenc}
\RequirePackage[english]{babel}
\RequirePackage{amsmath}
%\RequirePackage{amsfonts}
\RequirePackage{mathptmx}                  %times new roman
\RequirePackage[T1]{fontenc}
\RequirePackage{lastpage}   %the number of pages




\newcommand{\titlefont}{\normalfont\bfseries\fontsize{14}{16.8}\selectfont}


\RequirePackage{textcomp}  % for textcopyright
\RequirePackage{longtable}


\RequirePackage{natbib}
\bibliographystyle{sdubibTR}



\RequirePackage{lscape}

\RequirePackage{multirow}
\RequirePackage{subfigure}





\newcommand{\@universitynameEN}{Süleyman Demirel University}
\newcommand{\@instituteEN}{Graduate School of Natural and Applied Sciences}

\newcommand{\@universitynameTRL}{Süleyman Demirel Üniversitesi}
\newcommand{\@instituteTRL}{Fen Bilimleri Enstitüsü}

\newcommand{\@universitynameTRU}{SÜLEYMAN DEMİREL ÜNİVERSİTESİ}
\newcommand{\@instituteTRU}{FEN BİLİMLERİ ENSTİTÜSÜ}

\newcommand{\tauthor}{}
\newcommand{\thesisauthor}[1]{\renewcommand{\tauthor}{#1}}

\newcommand{\tdegreeTRL}{}
\newcommand{\thesisdegreeTRL}[1]{\renewcommand{\tdegreeTRL}{#1} }
\newcommand{\tdegreeTRU}{}
\newcommand{\thesisdegreeTRU}[1]{\renewcommand{\tdegreeTRU}{#1} }
\newcommand{\tdegreeEN}{}
\newcommand{\thesisdegreeEN}[1]{\renewcommand{\tdegreeEN}{#1} }

\newcommand{\tsupervisorTR}{}
\newcommand{\thesissupervisorTR}[1]{\renewcommand{\tsupervisorTR}{#1}}
\newcommand{\tsupervisorEN}{}
\newcommand{\thesissupervisorEN}[1]{\renewcommand{\tsupervisorEN}{#1}}

\newcommand{\tsupervisoraffil}{}
\newcommand{\thesissupervisoraffil}[1]{\renewcommand{\tsupervisoraffil}{#1}}


\newcommand{\tsecondsupervisorTR}{}
\newcommand{\thesissecondsupervisorTR}[1]{\renewcommand{\tsecondsupervisorTR}{#1}}
\newcommand{\tsecondsupervisorEN}{}
\newcommand{\thesissecondsupervisorEN}[1]{\renewcommand{\tsecondsupervisorEN}{#1}}

\newcommand{\tsecondsupervisoraffil}{}
\newcommand{\thesissecondsupervisoraffil}[1]{\renewcommand{\tsecondsupervisoraffil}{#1}}


\newcommand{\tdepartmentTRL}{}
\newcommand{\thesisdepartmentTRL}[1]{\renewcommand{\tdepartmentTRL}{#1}}
\newcommand{\tdepartmentTRU}{}
\newcommand{\thesisdepartmentTRU}[1]{\renewcommand{\tdepartmentTRU}{#1}}
\newcommand{\tdepartmentEN}{}
\newcommand{\thesisdepartmentEN}[1]{\renewcommand{\tdepartmentEN}{#1}}


\newcommand{\ttitleTRL}{}
\newcommand{\thesistitleTRL}[1]{\renewcommand{\ttitleTRL}{#1}}

\newcommand{\ttitleEN}{}
\newcommand{\thesistitleEN}[1]{\renewcommand{\ttitleEN}{#1}}

\newcommand{\ttitleTRU}{}
\newcommand{\thesistitleTRU}[1]{\renewcommand{\ttitleTRU}{#1}}


\newcommand{\tmembera}{}
\newcommand{\thesiscommitteemembera}[1]{\renewcommand{\tmembera}{#1}}
\newcommand{\tmemberb}{}
\newcommand{\thesiscommitteememberb}[1]{\renewcommand{\tmemberb}{#1}}
\newcommand{\tmemberc}{}
\newcommand{\thesiscommitteememberc}[1]{\renewcommand{\tmemberc}{#1}}
\newcommand{\tmemberd}{}
\newcommand{\thesiscommitteememberd}[1]{\renewcommand{\tmemberd}{#1}}


\newcommand{\tmemberaaffil}{}
\newcommand{\thesiscommitteememberaaffil}[1]{\renewcommand{\tmemberaaffil}{#1}}
\newcommand{\tmemberbaffil}{}
\newcommand{\thesiscommitteememberbaffil}[1]{\renewcommand{\tmemberbaffil}{#1}}
\newcommand{\tmembercaffil}{}
\newcommand{\thesiscommitteemembercaffil}[1]{\renewcommand{\tmembercaffil}{#1}}
\newcommand{\tmemberdaffil}{}
\newcommand{\thesiscommitteememberdaffil}[1]{\renewcommand{\tmemberdaffil}{#1}}


\newcommand{\theadofinstitute}{}
\newcommand{\thesisheadofinstitute}[1]{\renewcommand{\theadofinstitute}{#1}}

\newcommand{\tyear}{}
\newcommand{\thesisyear}[1]{\renewcommand{\tyear}{#1}}


\newcommand{\keyTR}{}
\newcommand{\keywordsTR}[1]{\renewcommand{\keyTR}{{\bf Anahtar Kelimeler:}~ #1}}

\newcommand{\keyEN}{}
\newcommand{\keywordsEN}[1]{\renewcommand{\keyEN}{{\bf Keywords:}~ #1}}





%%%%%%%%%%%%%%%%%%%%5
\RequirePackage{xifthen}
\newboolean{secondsupervisor}
\newcounter{numsupervisor}
%%%%%%%%%%%%%%%%%%%%%%%%%%5
\newcommand{\setnumsupervisor}{
\ifnum\value{numsupervisor}=1
\setboolean{secondsupervisor}{false} 
\else
\setboolean{secondsupervisor}{true} 
\fi
 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\newboolean{numberofcommitteemember}
\newcounter{numcommitte}
%%%%%%%%%%%%%%%%%%%%%%%%%%5
\newcommand{\setnumcommitte}{
\ifnum\value{numcommitte}=3
\setboolean{numberofcommitteemember}{true} 
\else
\setboolean{numberofcommitteemember}{false} 
\fi
 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\newboolean{thesisdegree}
\newcounter{numdegree}
%%%%%%%%%%%%%%%%%%%%%%%%%%5
\newcommand{\setthesisdegree}{
\ifnum\value{numdegree}=1
\setboolean{thesisdegree}{true} 
\thesisdegreeTRL{Yüksek Lisans Tezi}
\thesisdegreeTRU{YÜKSEK LİSANS TEZİ}
\thesisdegreeEN{M.Sc. Thesis} 
\else
\setboolean{thesisdegree}{false}
\thesisdegreeTRL{Doktora Tezi} 
\thesisdegreeTRU{DOKTORA TEZİ}
\thesisdegreeEN{Ph.D. Thesis}
\fi
 }
%%%%%%%%%%%%%%%%%%%%%%%%%






%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\thesistitlepage}{
    \thispagestyle{empty}
	{\centering \normalfont \bf  \quad \\
        { \titlefont   {T.C.} \\ 
	\@universitynameTRU \\ 
	\@instituteTRU \\
  	  \vskip 14em
	 {\ttitleTRU} } \normalfont \bf  
	\vfill {
	\vskip 7em
	\tauthor
	\vskip 7em
	{Danışman} \\ \tsupervisorTR 
	\vskip .001em
	 \ifthenelse{\boolean{secondsupervisor}}{  \bf II. Danışman \\ \tsecondsupervisorTR }{}      
	\vfill
	\begin{center} \normalfont \bf
     {  \tdegreeTRU \\ \tdepartmentTRU \\  \centering {ISPARTA - } \tyear}
         \end{center}}}
    \newpage
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\newcommand{\thesiscopyright}{
    \thispagestyle{empty}
	 \begin{center} 
	{\topskip0pt
\vspace*{\fill}
 \centering \normalfont   \textcopyright~\tyear~[\tauthor]
\vspace*{\fill}    }
	\end{center} 
    \newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\thesissignaturepageTHREE}{
    \thispagestyle{empty}{
\begin{center} 
 \normalfont {\bf {TEZ ONAYI}} 
\end{center}  
\normalfont {\bf\tauthor}~{tarafından hazırlanan}~"{\bf{\ttitleTRL}}"~{adlı tez çalışması aşağıdaki jüri üyeleri önünde Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü} ~{\bf\tdepartmentTRL}{’nda}~{\bf\tdegreeTRU}~{olarak başarı ile savunulmuştur.} 
\vskip 5em  \renewcommand{\arraystretch}{1}
\begin{longtable}{@{} p{.25\textwidth}  p{.5\textwidth}  p{.25\textwidth} } 
\textbf{Danışman} & \textbf{\tsupervisorTR}&	  \\
     & \tsupervisoraffil  &  {\color{gray} ........................} \\
& & \\
 \textbf{Jüri Üyesi} & \textbf{\tmembera}&	 \\
      & \tmemberaaffil  &   {\color{gray} ........................}  \\
& & \\
 \textbf{Jüri Üyesi} & \textbf{\tmemberb}&	 \\
      & \tmemberbaffil  &   {\color{gray} ........................}  \\
\end{longtable}
 \vskip 23em \vfill {
\begin{longtable}{@{} p{.25\textwidth}  p{.5\textwidth}  p{.25\textwidth} } 
\textbf{Enstitü Müdürü} & \textbf{\theadofinstitute} &	 {\color{gray} ........................}   \\
\end{longtable}}
    }\newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\thesissignaturepageFIVE}{
    \thispagestyle{empty}{
\begin{center} 
 \normalfont {\bf {TEZ ONAYI}} 
\end{center}  
\normalfont {\bf\tauthor}~{tarafından hazırlanan}~"{\bf{\ttitleTRL}}"~{adlı tez çalışması aşağıdaki jüri üyeleri önünde Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü} ~{\bf\tdepartmentTRL}{’nda}~{\bf\tdegreeTRU}~{olarak başarı ile savunulmuştur.} 
\vskip 5em \renewcommand{\arraystretch}{1}
\begin{longtable}{@{} p{.25\textwidth}  p{.5\textwidth}  p{.25\textwidth} } 
\textbf{Danışman} & \textbf{\tsupervisorTR}&	\\
     & \tsupervisoraffil &   {\color{gray} ........................}  \\
& & \\
  \ifthenelse{\boolean{secondsupervisor}}{\ifthenelse{\boolean{thesisdegree}}{\bf{II. Danışman}}{\bf{Jüri Üyesi}}}{\bf{Jüri Üyesi}} &    \ifthenelse{\boolean{secondsupervisor}}{\ifthenelse{\boolean{thesisdegree}}{\bf \tsecondsupervisorTR} {\bf \tmembera}} {\bf \tmembera}   &     \\
      &    \ifthenelse{\boolean{secondsupervisor}}{\ifthenelse{\boolean{thesisdegree}}{\tsecondsupervisoraffil}{\tmemberaaffil}}{\tmemberaaffil}  &  {\color{gray} ........................} \\
& & \\
 \textbf{Jüri Üyesi} & \textbf{\tmemberb}&	 \\
      & \tmemberbaffil  &  {\color{gray} ........................}  \\
& & \\
 \textbf{Jüri Üyesi} & \textbf{\tmemberc}&	 \\
      & \tmembercaffil &  {\color{gray} ........................} \\
& & \\
 \textbf{Jüri Üyesi} & \textbf{\tmemberd}&	 \\
      & \tmemberdaffil  & {\color{gray} ........................}  \\
\end{longtable}
\par \vskip 15em \vfill  {
\begin{longtable}{@{} p{.25\textwidth}  p{.5\textwidth}  p{.25\textwidth} } 
\textbf{Enstitü Müdürü} & \textbf{\theadofinstitute} &	 {\color{gray} ........................}   \\
\end{longtable}}
    }\newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\newcommand{\thesissignaturepage}{
  \ifthenelse{\boolean{numberofcommitteemember}}{\thesissignaturepageTHREE}{\thesissignaturepageFIVE}
    }



%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\thesisagreement}{
    \thispagestyle{empty}{
\quad
 \normalfont {\vskip 21em \bf {TAAHHÜTNAME}} 
\vskip .001em
Bu tezin akademik ve etik kurallara uygun olarak yazıldığını ve kullanılan tüm literatür bilgilerinin referans gösterilerek tezde yer aldığını beyan ederim. 
\vskip -1em 
\hfill \textbf{\tauthor}}
    \newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\RequirePackage[subfigure]{tocloft}
%\RequirePackage{titlesec}
\RequirePackage{titletoc}


%İçindekiler kısmının oluşturulması
\titlecontents{section}
[0.0em]
{\hangindent1em}
{\thecontentslabel.\enspace{\hspace*{-0.3em}}}
{}
{\titlerule*[0.2pc]{.}\contentspage}


\titlecontents{subsection}
[1.1em]
{\hangindent1.75em}
{\thecontentslabel.\enspace{\hspace*{-0.3em}}}
{}
{\titlerule*[0.2pc]{.}\contentspage}

\titlecontents{subsubsection}
[2.2em]
{\hangindent2.5em}
{\thecontentslabel.\enspace{\hspace*{-0.3em}}}
{}
{\titlerule*[0.2pc]{.}\contentspage}


\titlecontents{paragraph}
[3.3em]
{\hangindent 3.6em}
{\thecontentslabel\enspace{\hspace*{-0.3em}}}
{}
{\titlerule*[0.2pc]{.}\contentspage}


\setcounter{tocdepth}{4}
\setlength{\cftsecnumwidth}{5ex}
\setlength{\cftsubsecnumwidth}{3ex}
\setlength{\cftbeforesecskip}{1pt}


%\stepcounter{secnumdepth}
%\stepcounter{tocdepth}

%\cftsetpnumwidth{3em}

\newcommand{\thesistoc}{\pagenumbering{roman}
\renewcommand\contentsname{  \normalfont \normalsize \bf
İÇİNDEKİLER \hfil \hskip 5em \hfill \quad \par
}
\tableofcontents
\addcontentsline{toc}{section}{İÇİNDEKİLER}
    \newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newenvironment{thesisozet}
    {\addcontentsline{toc}{section}{ÖZET}
     \begin{center}
	 \normalfont \bf {ÖZET} \vskip.001em {\tdegreeTRL} \vskip.001em \ttitleTRU \vskip.001em  \tauthor \vskip.001em
	\@universitynameTRL \\ \@instituteTRL \\  \tdepartmentTRL \vskip.001em {Danışman:}~\tsupervisorTR  {  \ifthenelse{\boolean{secondsupervisor}}{\vskip.001em {II. Danışman:}~\tsecondsupervisorTR}{} } \vskip 1em
     \end{center}   
     } {\vskip 0.001em \keyTR  \vskip 0.001em{ \bf \tyear,~\pageref{LastPage}~{sayfa}} \newpage  }
    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{thesisabstract}
    {\addcontentsline{toc}{section}{ABSTRACT}
     \begin{center}
	\normalfont \bf {ABSTRACT}  \vskip.001em {\tdegreeEN}   \vskip.001em \ttitleEN  \vskip.001em  \tauthor  \vskip.001em
	\@universitynameEN \\ \@instituteEN \\  \tdepartmentEN   \vskip.001em {Supervisor:}~\tsupervisorEN   {  \ifthenelse{\boolean{secondsupervisor}}{\vskip.001em {Co-Supervisor:}~\tsecondsupervisorEN}{} } \vskip 1em 
     \end{center}
     } {\vskip.001em \keyEN \vskip.001em{ \bf \tyear,~\pageref{LastPage}~{pages}} \newpage  }
    

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%









%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{thesisacknowledgment}
    {\addcontentsline{toc}{section}{TEŞEKKÜR}
 \normalfont{\bf{TEŞEKKÜR}} \vskip .001em } 
 { \vskip 1em \hfill \tauthor 
   {\vskip-1em\hfill ISPARTA,~\tyear}
\newpage 
 }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\numberwithin{table}{section}
\numberwithin{figure}{section}
\numberwithin{equation}{section}


\AtBeginDocument{%
  \renewcommand\tablename{Çizelge}
}

\AtBeginDocument{%
  \renewcommand\figurename{Şekil}
}

\titlecontents{figure}
  [2cm]
  {}
  {\makebox[0pt][r]{%
      \makebox[2cm][l]{\figurename~\thecontentslabel.}%
    }%
  }
  {\hspace{-1.7cm}}
  {\titlerule*[0.20pc]{.}\contentspage \vskip.2em}


\titlecontents{table}
  [2.4cm]
  {}
  {\makebox[0pt][r]{%
      \makebox[2.36cm][l]{\tablename~\thecontentslabel.}
    }\hskip-.04cm
  }
  {}
  {\titlerule*[0.20pc]{.}\contentspage \vskip.2em}

\newcommand{\thesislistoffigures}{\captionsetup{format=hang}
\renewcommand{\listfigurename}{\normalsize{ŞEKİLLER DİZİNİ} \hfil \hskip 5em \hfill \quad \par
}
\begin{flushleft}
\listoffigures
\end{flushleft}
\addcontentsline{toc}{section}{ŞEKİLLER DİZİNİ}
    \newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\newcommand{\thesislistoftables}{
\renewcommand{\listtablename}{\normalsize{ÇİZELGELER DİZİNİ} \hfil \hskip 5em \hfill \quad 
}
\listoftables
\addcontentsline{toc}{section}{ÇİZELGELER DİZİNİ}
    \newpage
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\listsymbolsname}{SİMGELER DİZİNİ}
\newenvironment{thesislistofsymbols}{
    {
\normalfont {\bf\listsymbolsname} 
\vskip 1.5em  
}
   \addcontentsline{toc}{section}{\listsymbolsname} 
 }\newpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\listofabbreviationname}{TERMİNOLOJİ DİZİNİ}

\newenvironment{listofabbreviations}{
    { 
\normalsize  {\bf\listofabbreviationname} 
\vskip 1.5em 
} 
    \addcontentsline{toc}{section}{\listofabbreviationname}
 }\newpage




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\newcommand{\references}{
\setlength{\bibhang}{3em} 
\linespread{1.03}\selectfont 
\setlength{\bibsep}{11.5pt}
%Imports the bibliography file "sample.bib"
%\baselinestretch{1}
\renewcommand\refname{KAYNAKLAR}
\addcontentsline{toc}{section}{KAYNAKLAR} 
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\RequirePackage[notquote]{hanging}  %for symbol '


\RequirePackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}


%\renewcommand{\numberline}[1]{\textnormal{#1}.}


\newenvironment{bibtem}[1]{
\begin{hangparas}{1.25cm}{1}
#1
\end{hangparas}
    }


% Section/subsection/paragraph set-up
\RequirePackage[explicit]{titlesec}

\titleformat{\section}
  {\bfseries}
  {\thesection.}
  {0.5em}
  {#1}
  []
\titleformat{name=\section,numberless}
  {\bfseries}
  {}
  {0em}
  {#1}
  []
\titleformat{\subsection}
  {\bfseries}
  {\thesubsection.}
  {0.5em}
  {#1}
  []
\titleformat{\subsubsection}
  {\bfseries}
  {\thesubsubsection.}
  {0.5em}
  {#1}
  []
\titleformat{\paragraph}[runin]
  {\bfseries}
  {}
  {0em}
  {#1}
\titlespacing*{\section}{0pc}{0em}{0pt}
\titlespacing*{\subsection}{0pc}{0em}{0pt}
\titlespacing*{\subsubsection}{0pc}{0em}{0pt}
\titlespacing*{\paragraph}{0pc}{1em}{0pt}



%\setlength{\parskip}{1em}
\newcommand{\thesisnormaltext}{
    \def\baselinestretch{1.5}\selectfont 
\clearpage
\pagenumbering{arabic}
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\RequirePackage{times} 

% Fonts and language

\RequirePackage{url}
%\RequirePackage[colorlinks=true, allcolors=blue]{hyperref}   %tehlikeli
\RequirePackage{pbox}
\RequirePackage{enumitem}


% Copyright statement 

\RequirePackage{textcomp} 


\RequirePackage[%labelfont={bf},%
                labelsep=period,%
                figurename=Şekil,
	     tablename=Çizelge,%
               % singlelinecheck=on,%
               ]{caption}    %for left align "RaggedRight"   justification=centering


\RequirePackage{caption}


%\renewcommand{\headrulewidth}{0pt}
\renewcommand{\baselinestretch}{1}  %1 satır aralığı ilk bölüm için
\sloppy    %(gevşek) komutu sağa taşmayı önler


%\setlength{\parskip}{\baselineskip}



% Table style
\renewcommand{\arraystretch}{1} % Increased line spacing
%\captionsetup[table]{position=below}   % Reduce spacing below caption







%\setlength{\mathindent}{0pt}  %Math mode align left (equation)  with "fleqn"
%\setlength\parindent{0pt}  % par start without indent


%\RequirePackage{tocloft}
\RequirePackage{setspace}


\newcommand{\sectionbreak}{\clearpage}  %section start new page

\RequirePackage{fancyhdr}
\pagestyle{plain}     %numaralandırma alt ortada olur
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}


\setlength{\parindent}{0pt}%

%%%%%%%%%%%%%%%%%%%%%%%%
% TOC
\makeatletter
\renewcommand{\contentspage}[1][\thecontentspage]{\hb@xt@\@pnumwidth{\hskip 1em #1\hfill}\hspace*{-\@pnumwidth}}   %%thanks to stack.exchange
\renewcommand{\@pnumwidth}{2em}
\makeatother

\makeatletter
\def\@pnumwidth{0.45in}    %toc package dotted up to ..
\makeatother

\addtocontents{toc}{~\hfill\textbf{Sayfa}\par}
\addtocontents{lof}{~\hfill\textbf{Sayfa}\par}
\addtocontents{lot}{~\hfill\textbf{Sayfa}\par}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{mathtools}

%%%%%  ispat & proof
\RequirePackage{amsthm}
\renewenvironment{proof}{\vskip -.75em{\itshape İspat}.}{\hfill \qed \vskip 0.001em}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\makeatletter    %Hari mutf
\def\thm@space@setup{%
  \thm@preskip=1.5em \thm@postskip=0em
}
\makeatother




\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}  %to show mathcal symbols


\RequirePackage[misc]{ifsym}
\RequirePackage{caption}





\makeatletter
\def\moverlay{\mathpalette\mov@rlay}
\def\mov@rlay#1#2{\leavevmode\vtop{%
   \baselineskip\z@skip \lineskiplimit-\maxdimen
   \ialign{\hfil$\m@th#1##$\hfil\cr#2\crcr}}}
\newcommand{\charfusion}[3][\mathord]{
    #1{\ifx#1\mathop\vphantom{#2}\fi
        \mathpalette\mov@rlay{#2\cr#3}
      }
    \ifx#1\mathop\expandafter\displaylimits\fi}
\makeatother
\newcommand{\cupdot}{\charfusion[\mathbin]{\cup}{\cdot}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\setlength{\parskip}{1.2\baselineskip}%
\setlength{\parindent}{0pt}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
            {0em}%
            {0.01em}%
            {\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
\setcounter{tocdepth}{4} 
\RequirePackage{secdot}

\makeatletter
\g@addto@macro\theparagraph.      %Thanks to Stefan Kottwitz
\makeatother


%%%%%%%%%%%%%%%%%%%%%%%%%%%%5


% link, clickable toc
\RequirePackage{color}   %May be necessary if you want to color links
\RequirePackage[unicode]{hyperref}
\hypersetup{
    colorlinks=true, %set true if you want colored links
    linktoc=all,     %set to all if you want both sections and subsections linked
    linkcolor=black,  %choose some color if you want links to stand out
    citecolor=black,
    urlcolor=black
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%sections start on a new page
\let\oldsection\section
\renewcommand\section{\clearpage\oldsection}

%"equation", "align" gibi birimler otomatik olarak diğer sayfaya geçmek için parçalanır
\allowdisplaybreaks

%empty set
\let\oldemptyset\emptyset
\let\emptyset\varnothing



%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END