%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%     CMU-THESIS TEMPLATE version 201710      %%%
%%%             By Wanchai Tapanyo              %%%
%%%   XeLaTeX typesetting system (MikTeX 2.9)   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Mathematics Department, Faculty of Science  %%%
%%% Chiang Mai University, Chiang Mai Thailand  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\documentclass[11pt,oneside,a4paper]{CMUThesis}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%% DEFAULT THEOREM STYLE AND COMMANDS %%%%%%%%

% MATH PACKAGE ------------------------------------
\usepackage{amsmath,amsfonts,amssymb,amsthm,bm}
\allowdisplaybreaks % break long equations
										
\theoremstyle{plain}							
\newtheorem{theorem}{Theorem}[section]			
\newtheorem{lemma}[theorem]{Lemma}				
\newtheorem{corollary}[theorem]{Corollary}		
\newtheorem{proposition}[theorem]{Proposition}	
\newtheorem{remark}[theorem]{Remark}			
\newtheorem{conjecture}[theorem]{Conjecture}	
												
\theoremstyle{definition}						
\newtheorem{definition}[theorem]{Definition}	
\newtheorem{notation}[theorem]{Notation}		
\newtheorem{example}[theorem]{Example}			
\newtheorem{conclusion}{}[section]	

\numberwithin{theorem}{section}
\numberwithin{theorem}{chapter}
\renewcommand{\thetheorem}{%
	\ifnum\value{section}=0
	\thechapter%
	\else
	\thesection%
	\fi%
	.\arabic{theorem}}			
												
%%%%%%% DEFAULT THEOREM STYLE AND COMMANDS %%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% AUTHOR'S ADDITIONAL COMMANDS %%%%%%%%%%

% matrix ----------------------------------------------
\newenvironment{mymatrix}[1]{\begingroup\renewcommand*{\arraystretch}{0.5}\bigg(\begin{matrix} #1}{\end{matrix}\bigg)\endgroup}


% Latex Draw Packages --------------------------------
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes

%%%%%%%%%%% AUTHOR'S ADDITIONAL COMMANDS %%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% WATERMARK %%%%%%%%%%%%%%%%%%%%
												
%\watermark										
												
%%%%%%%%%%%%%%%%%%%% WATERMARK %%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% BODY %%%%%%%%%%%%%%%%%%%%%%%
												
\begin{document}								
\pagenumbering{roman} % page number B4 chapters 
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%% THESIS INFORMATION %%%%%%%%%%			
									
\include{ThesisInfo} 				
									
%%%%%%%%% THESIS INFORMATION %%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%% COVER AND TITLE PAGES %%%%%%%%			
											
\CoverTitlePage 								
									
%%%%%%%% COVER AND TITLE PAGES %%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%%% APPROVAL PAGE %%%%%%%%%%%%%			
									
\include{ApprovalPage}  				
									
%%%%%%%%%%% APPROVAL PAGE %%%%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%% DEDICATION PAGE (POTIONAL) %%%%%%			
									
\DedicationPage 	 				
									
%%%%% DEDICATION PAGE (POTIONAL) %%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%% ACKNOWLEDGEMENT PAGE %%%%%%%%%			
									
\include{Acknowledgement}			
									
%%%%%%%% ACKNOWLEDGEMENT PAGE %%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%% ABSTRACT PAGES %%%%%%%%%%%%%		
									
\include{Abstract_Thai}						
\include{Abstract_English}				
									
%%%%%%%%%% ABSTRACT PAGES %%%%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%%%% CONTENT PAGE %%%%%%%%%%%%%			
									
\tableofcontents* 					
									
%%%%%%%%%%%% CONTENT PAGE %%%%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%%%%%% OPTIONNAL %%%%%%%%%%%%%%			
									
\listoftables   % list of tables	
\listoffigures  % list of figures	
%\listofsymbols  % list of symbols	
									
% statement of originality -----  	
\include{StateOrigin_Thai}    		
\include{StateOrigin_English} 	
									
%%%%%%%%%%%%%% OPTIONNAL %%%%%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
\newpage										
\pagenumbering{arabic} % page numbering 		
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%%%%% TEXT PAGES %%%%%%%%%%%%%%			
									
\include{Chap1_Introduction}   	   	
\include{Chap2_Preliminaries}   	
\include{Chap3_MainResults}     	
\include{Chap4_Conclusion}			
									
%%%%%%%%%%%%% TEXT PAGES %%%%%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%%%% BIBLIOGRAPHY %%%%%%%%%%%%%			
									
% use bibtex ------------------		
\bibliographystyle{ieeetr} % style	
\bibliography{References} % database 
									
% manual ----------------------  	
%\include{Bibliography}	    		
									
%%%%%%%%%%%% BIBLIOGRAPHY %%%%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%% PUBLICATIONS PAGE %%%%%%%%%%%			
									
\include{ListPublications}   	   	
									
%%%%%%%%% PUBLICATIONS PAGE %%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%% APPENDICES (OPTIONAL) %%%%%%%%			
									
\appendix       	   	     		
\input{Appendix_A} % use input only 
\include{Appendix_B}    	   		
\include{Appendix_C}    	   		
									
%%%%%%%% APPENDICES (OPTIONAL) %%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
												
												
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%			
%%%%%%%%%% CURRICULUM VITAE %%%%%%%%%%%			
									
\include{CurriculumVitae}   	   	
									
%%%%%%%%%% CURRICULUM VITAE %%%%%%%%%%%			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%	
												
\end{document}									
												
%%%%%%%%%%%%%%%%%%%%%% BODY %%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

