%%%%%%%%%%%%%%%封面版面設定%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\NCCUtitlepage}{
\def\guavaALstring{\theadvisorALN} \StrLen{\guavaALstring}[\guavaALslen]
\def\guavaAstring{\theadvisorAFN} \StrLen{\guavaAstring}[\guavaAslen]
\def\guavaBLstring{\theadvisorBLN} \StrLen{\guavaBLstring}[\guavaBLslen]
\def\guavaBstring{\theadvisorBFN} \StrLen{\guavaBstring}[\guavaBslen]
\begin{titlepage}%
\begin{picture}(0,0) 
\put(-25, -40){\parbox{16cm}{\centering
%			\makebox[14cm][s]{\fontsize{28pt}{28pt}\selectfont\centering \theuniversityCH{}\theinstituteCH }
%				 \par\vspace{-1em}
%			\makebox[8cm][s]{\centering \fontsize{28pt}{28pt}\selectfont \thedegreeCH{}學位論文}
			{\fontsize{18pt}{28pt}\selectfont\centering \theuniversityCH{}\theinstituteCH }
			\par\vspace{-1em}
			{\centering \fontsize{18pt}{28pt}\selectfont \thedegreeCH{}學位論文}
			\ifx  \thedraft  \itsempty
				\relax % 沒有初稿，所以不佔版面，不印任何空白
			\else
			% 初稿
		 	{\centering \fontsize{18pt}{32pt}\selectfont \par \vskip 12pt \thedraft } %顯示初稿
			\fi		 
		}}

\put(-25, -290){\parbox{16cm}{\centering {\fontsize{20pt}{24pt}\selectfont \thetitleCH} \\ {\fontsize{16pt}{20pt}\selectfont\thetitleEN}}}

\put(-25, -625){\parbox{16cm}{\centering\fontsize{18pt}{18pt}\selectfont 
			% 有指導教授A教授，並判斷名字的長度
			\ifnum \guavaALslen >1 %判斷姓氏是否超過一個字 e.g. 歐陽、司馬...
				\def\guavaAthresh{2}%名字是兩個字
					\ifthenelse{\guavaAslen = \guavaAthresh}{指導教授：\theadvisorALN{}\theadvisorAFN{}\theadvisorDegreeA{}}{
				\def\guavaAthresh{1}%名字是一個字
					 \ifthenelse{\guavaAslen = \guavaAthresh}{指導教授：\theadvisorALN{}\theadvisorAFN{}\quad \theadvisorDegreeA{}}{
				\def\guavaAthresh{3}%名字是三個字
					 \ifthenelse{\guavaAslen = \guavaAthresh}{指導教授：\theadvisorALN\theadvisorAFN\theadvisorDegreeA{}}{}}}
			\else
				\def\guavaAthresh{2}%名字是兩個字
					\ifthenelse{\guavaAslen = \guavaAthresh}{指導教授：\theadvisorALN\theadvisorAFN\quad \theadvisorDegreeA{}}{
				\def\guavaAthresh{1}%名字是一個字
					 \ifthenelse{\guavaAslen = \guavaAthresh}{指導教授：\theadvisorALN \quad \theadvisorAFN\quad \theadvisorDegreeA{}}{
				\def\guavaAthresh{3}%名字是三個字
					 \ifthenelse{\guavaAslen = \guavaAthresh}{指導教授：\theadvisorALN\theadvisorAFN\theadvisorDegreeA{}}{}}}
			\fi
			\par
			% 判斷是否有共同指導的教授 B
			\ifx \theadvisorBLN  \itsempty
				\relax % 沒有共同指導B教授，就不佔版面，顯示空白
			\else
			% 有共同指導的B教授，並判斷名字的長度
				\ifnum \guavaBLslen >1 %判斷姓氏是否超過一個字 e.g. 歐陽、司馬...
					\def\guavaBthresh{2}%名字是兩個字
						\ifthenelse{\guavaBslen = \guavaBthresh}{\qquad\qquad\quad \theadvisorBLN{}\theadvisorBFN{}\theadvisorDegreeB{}\par}{
					\def\guavaBthresh{1}%名字是一個字
						 \ifthenelse{\guavaBslen = \guavaBthresh}{\qquad\qquad\quad\theadvisorBLN{}\theadvisorBFN{}\quad \theadvisorDegreeB{}\par}{
					\def\guavaBthresh{3}%名字是三個字
						 \ifthenelse{\guavaBslen = \guavaBhresh}{\qquad\qquad\quad\theadvisorBLN\theadvisorBFN\theadvisorDegreeB{}\par}{}}}
				\else 
				%\def\guavaBstring{\theadvisorBFN} \StrLen{\guavaBstring}[\guavaBslen]
					%\def\guavaBthresh{2}%名字是三個字
						 \ifthenelse{\guavaBslen = 2 }{\qquad\qquad\quad \theadvisorBLN\theadvisorBFN\quad{}\theadvisorDegreeB{}\par}{
				%\def\guavaBstring{\theadvisorBFN} \StrLen{\guavaBstring}[\guavaBslen]
				 	%\def\guavaBthresh{1}%名字是兩個字
			 			\ifthenelse{\guavaBslen = 1 }{\qquad\qquad\quad\theadvisorBLN{}\quad{}\theadvisorBFN\quad{}\theadvisorDegreeB{}\par}{
			 	%\def\guavaBstring{\theadvisorBFN} \StrLen{\guavaBstring}[\guavaBslen]
			 		%\def\guavaBthresh{3}%名字是四個字
			 			\ifthenelse{\guavaBslen = 3 }{\qquad\qquad\quad\theadvisorBLN\theadvisorBFN\theadvisorDegreeB{}\par}{}}}
				\fi		
			\fi
			\vskip 7pt\par 
			{研究生：\theauthorCH{}\quad{}撰}
			\vskip 7pt\par 
			\makebox[8cm][s]{\centering \fontsize{18pt}{18pt}\selectfont {中華民國 \theyearCH 年 \themonthCH 月}}
}}

\end{picture}
		
\end{titlepage}
}
