From b94137267e204cd0f6bf8a34e8529244cbc04e84 Mon Sep 17 00:00:00 2001 From: DansYU Date: Fri, 28 Jun 2019 23:24:02 +0800 Subject: [PATCH] update V2.0.0 --- config/seuthesiY.cls | 823 ++++++++++++++++++++++--------------------- 1 file changed, 412 insertions(+), 411 deletions(-) diff --git a/config/seuthesiY.cls b/config/seuthesiY.cls index f0ace24..6b9ddb3 100644 --- a/config/seuthesiY.cls +++ b/config/seuthesiY.cls @@ -19,9 +19,8 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesClass{seuthesiY}[2019/06/23 1.0.2 The LaTeX template for academic degree thesis of Southeast University] -\typeout{Document Class `seuthesix' 1.0.1 by James Fan (2016/03/20), \\ -Document Class `seuthesiY' 1.0.2 by Deans Yu (2019/06/23)} +\ProvidesClass{seuthesiY}[2019/06/28 2.0.0 The LaTeX template for academic degree thesis of Southeast University] +\typeout{Document Class `seuthesiY' 2.0.0 by Deans Yu (2019/06/28). Document Class `seuthesiY' 1.0.2 by Deans Yu (2019/06/23). Document Class `seuthesix' 1.0.1 by James Fan (2016/03/20)} \newif\ifnocolorlinks\nocolorlinksfalse \newif\ifcoadvisor\coadvisorfalse @@ -34,7 +33,7 @@ Document Class `seuthesiY' 1.0.2 by Deans Yu (2019/06/23)} \newif\ifnomlist\nomlistfalse \InputIfFileExists{seuthesix.cfg} {\typeout{[seuthesix]: Load seuthesix.cfg successfully!}}% - {\typeout{[seuthesix]: Load seuthesix.cfg failed!}}% + {\typeout{[seuthesix]: Load seuthesix.cfg failed!}}% \DeclareOption{nocolorlinks}{\nocolorlinkstrue} \DeclareOption{algorithmlist}{\algorithmlisttrue} \DeclareOption{phd}{\phdtrue\mastersfalse\engineeringfalse\renewcommand\@degreelevel{博士}} @@ -44,9 +43,9 @@ Document Class `seuthesiY' 1.0.2 by Deans Yu (2019/06/23)} \DeclareOption{figurelist}{\figurelisttrue} \DeclareOption{tablelist}{\tablelisttrue} \DeclareOption{nomlist}{\nomlisttrue} -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexrep}} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} \ProcessOptions -\LoadClass[twoside,a4paper,zihao=-4,UTF8,openright]{ctexrep} +\LoadClass[twoside,a4paper,zihao=-4,UTF8,openright]{ctexbook} \RequirePackage[titles]{tocloft} \renewcommand{\cftchapleader}{\bfseries\cftdotfill{\cftdotsep}} \newcommand{\chuhao}{\fontsize{42bp}{46bp}\selectfont} @@ -65,19 +64,19 @@ Document Class `seuthesiY' 1.0.2 by Deans Yu (2019/06/23)} \newcommand{\qihao}{\fontsize{5.5bp}{6.5bp}\selectfont} \setCJKmainfont{SimSun} \ctexset{% - chapter/format=\centering, - chapter/nameformat=\large\heiti, - chapter/numberformat=\large\heiti, - chapter/titleformat=\large\heiti, - chapter/beforeskip=0pt, - section/format=\raggedright, - section/nameformat={\large\bfseries}, - section/numberformat={\large\bfseries}, - section/titleformat={\sihao\bfseries}, - subsection/format=\sihao\mdseries\raggedright, - subsubsection/format=\sihao\mdseries\raggedright, - listfigurename={插图目录}, - listtablename={表格目录} + chapter/format=\centering, + chapter/nameformat=\large\heiti, + chapter/numberformat=\large\heiti, + chapter/titleformat=\large\heiti, + chapter/beforeskip=0pt, + section/format=\raggedright, + section/nameformat={\large\bfseries}, + section/numberformat={\large\bfseries}, + section/titleformat={\sihao\bfseries}, + subsection/format=\sihao\mdseries\raggedright, + subsubsection/format=\sihao\mdseries\raggedright, + listfigurename={插图目录}, + listtablename={表格目录} } \RequirePackage[font=small]{caption} %\RequirePackage{mathptmx} @@ -116,50 +115,50 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \newcommand\citen[1]{[\!\!\citenum{#1}]} \RequirePackage{hyperref} \ifnocolorlinks -\hypersetup{colorlinks=false} + \hypersetup{colorlinks=false} \else -\hypersetup{colorlinks=true} + \hypersetup{colorlinks=true} \fi \hypersetup{ - linkcolor=blue, - anchorcolor=black, - citecolor=red, - filecolor=magenta, - menucolor=red, - urlcolor=magenta + linkcolor=blue, + anchorcolor=black, + citecolor=red, + filecolor=magenta, + menucolor=red, + urlcolor=magenta } \AtEndDocument{\backcover} \newcommand{\backcover}{ -\clearpage\thispagestyle{empty}\cleardoublepage\mbox{ } -\clearpage\thispagestyle{empty} %backcover always at even page. -\begin{picture}(0,0) - \put(-1,-22){ % - \includegraphics[width=\textwidth]{figures/back-cover.png}} - \end{picture} + \clearpage\thispagestyle{empty}\cleardoublepage\mbox{ } + \clearpage\thispagestyle{empty} %backcover always at even page. + \begin{picture}(0,0) + \put(-1,-22){ % + \includegraphics[width=\textwidth]{figures/back-cover.png}} + \end{picture} } \RequirePackage[top=1.2in,bottom=1in,left=2.5cm,right=2.5cm,a4paper]{geometry} \RequirePackage{fancyhdr} \fancypagestyle{seustyle}{% - \fancyhf{} - \fancyhead[CO]{\xiaowuhao\universityname{}\@thesistype} - \fancyhead[CE]{ \xiaowuhao\leftmark} - \fancyfoot[CO,CE]{\thepage} + \fancyhf{} + \fancyhead[CE]{\xiaowuhao\universityname{}\@thesistype} + \fancyhead[CO]{ \xiaowuhao\leftmark} + \fancyfoot[CO,CE]{\thepage} } \pagestyle{seustyle} \fancypagestyle{nom}{% - \fancyhf{} - \fancyhead[CO]{\xiaowuhao\universityname{}\@thesistype} - \fancyhead[CE]{ \xiaowuhao\nomname} - \fancyfoot[CO,CE]{\thepage} + \fancyhf{} + \fancyhead[CO]{\xiaowuhao\universityname{}\@thesistype} + \fancyhead[CE]{ \xiaowuhao\nomname} + \fancyfoot[CO,CE]{\thepage} } \renewcommand{\headrulewidth}{0.4pt} \RequirePackage{eso-pic} \renewcommand{\author}[2]{ - \def\@author{#1} - \newcommand{\@authoreng}{#2} + \def\@author{#1} + \newcommand{\@authoreng}{#2} } %=============================================================================== @@ -169,12 +168,12 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \newcommand{\@titlev}{} % 为了大封皮竖向标题可能存在英文 \newcommand{\@subtitlev}{} % 而不能竖排 \renewcommand{\title}[6]{ - \def\@title{#1} - \renewcommand{\@titlev}{#2} - \newcommand{\@subtitle}{#3} - \renewcommand{\@subtitlev}{#4} - \renewcommand{\@titleeng}{#5} - \renewcommand{\@subtitleeng}{#6} + \def\@title{#1} + \renewcommand{\@titlev}{#2} + \newcommand{\@subtitle}{#3} + \renewcommand{\@subtitlev}{#4} + \renewcommand{\@titleeng}{#5} + \renewcommand{\@subtitleeng}{#6} } %=============================================================================== \newcommand{\@advisorname}{} @@ -182,21 +181,21 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \newcommand{\@advisornameeng}{} \newcommand{\@advisortitleeng}{} \newcommand{\advisor}[4]{ - \renewcommand{\@advisorname}{#1} - \renewcommand{\@advisortitle}{#2} - \renewcommand{\@advisornameeng}{#3} - \renewcommand{\@advisortitleeng}{#4} + \renewcommand{\@advisorname}{#1} + \renewcommand{\@advisortitle}{#2} + \renewcommand{\@advisornameeng}{#3} + \renewcommand{\@advisortitleeng}{#4} } \newcommand{\@coadvisorname}{} \newcommand{\@coadvisortitle}{} \newcommand{\@coadvisornameeng}{} \newcommand{\@coadvisortitleeng}{} \newcommand{\coadvisor}[4]{ - \coadvisortrue - \renewcommand{\@coadvisorname}{#1} - \renewcommand{\@coadvisortitle}{#2} - \renewcommand{\@coadvisornameeng}{#3} - \renewcommand{\@coadvisortitleeng}{#4} + \coadvisortrue + \renewcommand{\@coadvisorname}{#1} + \renewcommand{\@coadvisortitle}{#2} + \renewcommand{\@coadvisornameeng}{#3} + \renewcommand{\@coadvisortitleeng}{#4} } \newcommand{\@categorynumber}{} \newcommand{\categorynumber}[1]{\renewcommand{\@categorynumber}{#1}} @@ -211,23 +210,23 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \newcommand{\@majorlen}{8em} \newcommand{\@major}{} \newcommand{\major}[2][8em]{ - \renewcommand{\@majorlen}{#1} - \renewcommand{\@major}{#2} + \renewcommand{\@majorlen}{#1} + \renewcommand{\@major}{#2} } \newcommand{\@department}{} \newcommand{\@departmenteng}{} \newcommand{\department}[2]{ - \renewcommand{\@department}{#1} - \renewcommand{\@departmenteng}{#2} + \renewcommand{\@department}{#1} + \renewcommand{\@departmenteng}{#2} } \newcommand{\@submajor}{} \newcommand{\submajor}[1]{ - \renewcommand{\@submajor}{#1} + \renewcommand{\@submajor}{#1} } \newcommand{\@defenddate}{} \newcommand{\defenddate}[1]{\renewcommand{\@defenddate}{#1}} \newcommand{\authorizeorganization}[1]{ - \renewcommand{\@authorizeorganization}{#1} + \renewcommand{\@authorizeorganization}{#1} } \newcommand{\@authorizedate}{} @@ -237,28 +236,28 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \newcommand{\@reviewerA}{} \newcommand{\@reviewerB}{} \newcommand{\reviewer}[2]{ - \renewcommand{\@reviewerA}{#1} - \renewcommand{\@reviewerB}{#2} + \renewcommand{\@reviewerA}{#1} + \renewcommand{\@reviewerB}{#2} } \newcommand{\CoverTopOption}[3][s]{ - \makebox[1.5cm][#1]{\xiaowuhao #2}:{ - \underline{\makebox[1.5cm][c]{\xiaowuhao #3}}} + \makebox[1.5cm][#1]{\xiaowuhao #2}:{ + \underline{\makebox[1.5cm][c]{\xiaowuhao #3}}} } \newcommand{\CoverBottomOption}[3][4.5cm]{ - \makebox[7cm][s]{ - {\songti\xiaosihao#2} - \underline{\makebox[#1][c]{\heiti\xiaosihao#3}} - } + \makebox[7cm][s]{ + {\songti\xiaosihao#2} + \underline{\makebox[#1][c]{\heiti\xiaosihao#3}} + } } \newif\ifthanks\thanksfalse \newcommand\@seuthesisthanks{ } \newcommand\seuthesisthanks[1]{\renewcommand\@seuthesisthanks{#1}\thankstrue} \newcommand\@thesisthanks{\ifthanks\thispagestyle{thanksstyle}\fi} \fancypagestyle{thanksstyle}{% - \fancyhf{} - \fancyfoot[L]{\setlength{\baselineskip}{0pt}% - \rule[-2.5pt]{6cm}{.4pt}\\ \small\@seuthesisthanks} - \renewcommand\headrulewidth{0pt} + \fancyhf{} + \fancyfoot[L]{\setlength{\baselineskip}{0pt}% + \rule[-2.5pt]{6cm}{.4pt}\\ \small\@seuthesisthanks} + \renewcommand\headrulewidth{0pt} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 封 皮 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -274,133 +273,133 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \noindent \begin{picture}(0,0) - \setlength{\unitlength}{1cm}\put(19.5,-8){% - \includegraphics[width=19cm]{figures/front-cover.jpg}}% + \setlength{\unitlength}{1cm}\put(19.5,-8){% + \includegraphics[width=19cm]{figures/front-cover.jpg}}% \end{picture} \begin{picture}(0,0) - \put(19.5,0){ - \renewcommand{\arraystretch}{1.0} - \begin{tabular}{l} - \CoverTopOption{\schoolcodepre}{\schoolcode} \\ - \CoverTopOption{\categorynumberpre}{\@categorynumber} \\ - \CoverTopOption{\secretlevelpre}{\@secretlevel}\\ - \CoverTopOption{U D C}{\@UDC} \\ - \CoverTopOption{\studentidpre}{\@studentid} - \end{tabular} - } + \put(19.5,0){ + \renewcommand{\arraystretch}{1.0} + \begin{tabular}{l} + \CoverTopOption{\schoolcodepre}{\schoolcode} \\ + \CoverTopOption{\categorynumberpre}{\@categorynumber} \\ + \CoverTopOption{\secretlevelpre}{\@secretlevel}\\ + \CoverTopOption{U D C}{\@UDC} \\ + \CoverTopOption{\studentidpre}{\@studentid} + \end{tabular} + } \end{picture} \ifengineering - \begin{picture}(0,0) - \put(23.2,-7.5){ % - \includegraphics[scale=0.65]{figures/engineering.png}} - \end{picture} + \begin{picture}(0,0) + \put(23.2,-7.5){ % + \includegraphics[scale=0.65]{figures/engineering.png}} + \end{picture} \else \ifmasters - \begin{picture}(0,0) - \put(24.5,-7.5){ % - \includegraphics[scale=1.1]{figures/master-hwzs.pdf}} - \end{picture} + \begin{picture}(0,0) + \put(24.5,-7.5){ % + \includegraphics[scale=1.1]{figures/master-hwzs.pdf}} + \end{picture} \else \ifphd - \begin{picture}(0,0) - \put(24.5,-7.5){ % - \includegraphics[scale=1.1]{figures/doctor-hwzs.pdf}} - \end{picture} + \begin{picture}(0,0) + \put(24.5,-7.5){ % + \includegraphics[scale=1.1]{figures/doctor-hwzs.pdf}} + \end{picture} \else - \ClassError{seuthesix}{invalid degree type option.}% - {Check your class option of degree type to be one of the following:% - masters, engineering, phd.} + \ClassError{seuthesix}{invalid degree type option.}% + {Check your class option of degree type to be one of the following:% + masters, engineering, phd.} \fi \fi \fi \begin{picture}(0,0) - \put(35,0){ % - \includegraphics[width=2cm]{figures/seu-color-logo.png}} + \put(35,0){ % + \includegraphics[width=2cm]{figures/seu-color-logo.png}} \end{picture} \begin{picture}(0,0) - \put(-1,-22){ % - \includegraphics[width=\textwidth]{figures/back-cover.png}} + \put(-1,-22){ % + \includegraphics[width=\textwidth]{figures/back-cover.png}} \end{picture} %=========================================================================== %===========================封边的标题设计=================================== \begin{picture}(0,0) - \put(18,-11){% - \parbox[c]{\ccwd}{% - \bfseries% - \setlength{\baselineskip}{0pt} - \@titlev\\ - \rule{0pt}{\ccwd}\\ - \@subtitlev\\ - \vspace*{2cm} - \@author\\ - \vspace*{2cm} - \universityname + \put(18,-11){% + \parbox[c]{\ccwd}{% + \bfseries% + \setlength{\baselineskip}{0pt} + \@titlev\\ + \rule{0pt}{\ccwd}\\ + \@subtitlev\\ + \vspace*{2cm} + \@author\\ + \vspace*{2cm} + \universityname + } } - } \end{picture} %=========================================================================== \vspace*{8cm} \hspace*{20.5cm} \begin{minipage}{16cm} - \begin{center} - \linespread{1.25} - \yihao\heiti\@title\\ - \yihao\heiti\@subtitle - \end{center} + \begin{center} + \linespread{1.25} + \yihao\heiti\@title\\ + \yihao\heiti\@subtitle + \end{center} \end{minipage} \hspace*{20.5cm} \begin{minipage}{16cm} - \begin{center} - \setlength{\tabcolsep}{0pt} - \renewcommand{\arraystretch}{2.0} - \begin{tabular}{cr} - \makebox[3.5cm][s]{\xiaoerhao\songti\authorpre: } & - \underline{\makebox[6cm][s]{ - \hspace*{1cm} - \makebox[2.5cm][c]{\xiaoerhao\heiti\@author} - \makebox[2cm][r]{}}} \\ - \makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre: } & - \underline{\makebox[6cm][s]{ - \hspace*{1cm} - \makebox[2.5cm][c]{\xiaoerhao\heiti\@advisorname} - \makebox[2cm][r]{\xiaoerhao\heiti\@advisortitle}}} - \\ - & - \ifcoadvisor - \underline{\makebox[6cm][s]{ - \hspace*{1cm} - \makebox[2.5cm][c]{\xiaoerhao\heiti\@coadvisorname} - \makebox[2cm][r]{\xiaoerhao\heiti\@coadvisortitle}}} - \else - \fi \\ - \end{tabular} - \end{center} + \begin{center} + \setlength{\tabcolsep}{0pt} + \renewcommand{\arraystretch}{2.0} + \begin{tabular}{cr} + \makebox[3.5cm][s]{\xiaoerhao\songti\authorpre: } & + \underline{\makebox[6cm][s]{ + \hspace*{1cm} + \makebox[2.5cm][c]{\xiaoerhao\heiti\@author} + \makebox[2cm][r]{}}} \\ + \makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre: } & + \underline{\makebox[6cm][s]{ + \hspace*{1cm} + \makebox[2.5cm][c]{\xiaoerhao\heiti\@advisorname} + \makebox[2cm][r]{\xiaoerhao\heiti\@advisortitle}}} + \\ + & + \ifcoadvisor + \underline{\makebox[6cm][s]{ + \hspace*{1cm} + \makebox[2.5cm][c]{\xiaoerhao\heiti\@coadvisorname} + \makebox[2cm][r]{\xiaoerhao\heiti\@coadvisortitle}}} + \else + \fi \\ + \end{tabular} + \end{center} \end{minipage} \hspace*{20.5cm} \begin{minipage}{16cm} - \begin{center} + \begin{center} \setlength{\tabcolsep}{10pt} \renewcommand{\arraystretch}{2.0} - \begin{tabular}{ll} - \CoverBottomOption{\appdegreepre}{\@degreetype} & - \CoverBottomOption{\authorizeorganizationpre}{\@authorizeorganization} \\ - \CoverBottomOption{\majorpre}{\@major} & - \CoverBottomOption{\defenddatepre}{\@defenddate}\\ - \CoverBottomOption{\submajorpre}{\@submajor} & - \CoverBottomOption{\authorizedatepre}{\@authorizedate}\\ - \CoverBottomOption[4.05cm]{\committeechairpre}{\@committeechair} & - \CoverBottomOption{\reviewerpre}{\@reviewerA}\\ - & \CoverBottomOption{\makebox[2.55cm]{}}{\@reviewerB} - \end{tabular} - \end{center} + \begin{tabular}{ll} + \CoverBottomOption{\appdegreepre}{\@degreetype} & + \CoverBottomOption{\authorizeorganizationpre}{\@authorizeorganization} \\ + \CoverBottomOption{\majorpre}{\@major} & + \CoverBottomOption{\defenddatepre}{\@defenddate}\\ + \CoverBottomOption{\submajorpre}{\@submajor} & + \CoverBottomOption{\authorizedatepre}{\@authorizedate}\\ + \CoverBottomOption[4.05cm]{\committeechairpre}{\@committeechair} & + \CoverBottomOption{\reviewerpre}{\@reviewerA}\\ + & \CoverBottomOption{\makebox[2.55cm]{}}{\@reviewerB} + \end{tabular} + \end{center} \end{minipage} - + \vfill - + \hspace*{20.5cm} {\songti\sihao\centerline{\today} \par} \eject @@ -417,198 +416,199 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} \newcommand{\makechinesecover}{ \hypersetup{ - pdfauthor={\@author}, - pdftitle={\universityname{}\@thesistype}, - pdfsubject={\@title \@subtitle}, - pdfcreator={xetex} - } - - \thispagestyle{empty} - \AddToShipoutPictureFG*{ - \setlength{\unitlength}{1cm}\put(1,26){% - \renewcommand{\arraystretch}{1.0} - \begin{tabular}{l} - \CoverTopOption{\schoolcodepre}{\schoolcode} \\ - \CoverTopOption{\categorynumberpre}{\@categorynumber} \\ - \CoverTopOption{\secretlevelpre}{\@secretlevel}\\ - \CoverTopOption{U D C}{\@UDC} \\ - \CoverTopOption{\studentidpre}{\@studentid} - \end{tabular} + pdfauthor={\@author}, + pdftitle={\universityname{}\@thesistype}, + pdfsubject={\@title \@subtitle}, + pdfcreator={xetex} } - } - \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,23){% - \parbox{\paperwidth}{\centering\includegraphics[width=\paperwidth]{figures/front-cover.jpg}}}}% + \thispagestyle{empty} + \AddToShipoutPictureFG*{ + \setlength{\unitlength}{1cm}\put(1,26){% + \renewcommand{\arraystretch}{1.0} + \begin{tabular}{l} + \CoverTopOption{\schoolcodepre}{\schoolcode} \\ + \CoverTopOption{\categorynumberpre}{\@categorynumber} \\ + \CoverTopOption{\secretlevelpre}{\@secretlevel}\\ + \CoverTopOption{U D C}{\@UDC} \\ + \CoverTopOption{\studentidpre}{\@studentid} + \end{tabular} + } + } - \ifengineering - \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ % - \parbox{\paperwidth}{\centering\includegraphics[scale=0.65]{figures/engineering.png}}}}% - \else \ifmasters - \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ % - \parbox{\paperwidth}{\centering\includegraphics[scale=1.1]{figures/master-hwzs.pdf}}}}% - \else \ifphd - \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ % - \parbox{\paperwidth}{\centering\includegraphics[scale=1.1]{figures/doctor-hwzs.pdf}}}}% - \else - \ClassError{seuthesix}{invalid degree type option.}% - {Check your class option of degree type to be one of the following:% - masters, engineering, phd.} - \fi - \fi - \fi + \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,23){% + \parbox{\paperwidth}{\centering\includegraphics[width=\paperwidth]{figures/front-cover.jpg}}}}% - - \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(17,27){% - \parbox{\paperwidth}{\includegraphics[width=2cm]{figures/seu-color-logo.png}}}}% - - \vspace*{8cm} - - \begin{center} - \linespread{1.25} - \yihao\heiti\@title\\ - \yihao\heiti\@subtitle - \end{center} - - \begin{center} - \setlength{\tabcolsep}{0pt} - \renewcommand{\arraystretch}{2.0} - \begin{tabular}{cr} - \makebox[3.5cm][s]{\xiaoerhao\songti\authorpre: } & - \underline{\makebox[6cm][s]{ - \hspace*{1cm} - \makebox[2.5cm][c]{\xiaoerhao\heiti\@author} - \makebox[2cm][r]{}}} \\ - \makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre: } & - \underline{\makebox[6cm][s]{ - \hspace*{1cm} - \makebox[2.5cm][c]{\xiaoerhao\heiti\@advisorname} - \makebox[2cm][r]{\xiaoerhao\heiti\@advisortitle}}} - \\ - & - \ifcoadvisor - \underline{\makebox[6cm][s]{ - \hspace*{1cm} - \makebox[2.5cm][c]{\xiaoerhao\heiti\@coadvisorname} - \makebox[2cm][r]{\xiaoerhao\heiti\@coadvisortitle}}} - \else - \fi \\ - \end{tabular} - \end{center} - - \begin{center} - \setlength{\tabcolsep}{10pt} - \renewcommand{\arraystretch}{2.0} - \begin{tabular}{ll} - \CoverBottomOption{\appdegreepre}{\@degreetype} & - \CoverBottomOption{\authorizeorganizationpre}{\@authorizeorganization} \\ - \CoverBottomOption{\majorpre}{\@major} & - \CoverBottomOption{\defenddatepre}{\@defenddate}\\ - \CoverBottomOption{\submajorpre}{\@submajor} & - \CoverBottomOption{\authorizedatepre}{\@authorizedate}\\ - \CoverBottomOption[4.05cm]{\committeechairpre}{\@committeechair} & - \CoverBottomOption{\reviewerpre}{\@reviewerA}\\ - & \CoverBottomOption{\makebox[2.55cm]{}}{\@reviewerB} - \end{tabular} - \end{center} - - \vfill - \setcounter{page}{1} - {\songti\sihao\centerline{\today} \par} - - \clearpage\thispagestyle{empty}\cleardoublepage% - \thispagestyle{empty} - \begin{center} - \xiaochuhao - - \includegraphics[height=0.63in]{figures/seu-text-logo} - - \ifmasters - \includegraphics{figures/master-hwzs} + \ifengineering + \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ % + \parbox{\paperwidth}{\centering\includegraphics[scale=0.65]{figures/engineering.png}}}}% + \else \ifmasters + \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ % + \parbox{\paperwidth}{\centering\includegraphics[scale=1.1]{figures/master-hwzs.pdf}}}}% + \else \ifphd + \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ % + \parbox{\paperwidth}{\centering\includegraphics[scale=1.1]{figures/doctor-hwzs.pdf}}}}% \else - \includegraphics{figures/doctor-hwzs} + \ClassError{seuthesix}{invalid degree type option.}% + {Check your class option of degree type to be one of the following:% + masters, engineering, phd.} + \fi + \fi \fi - \vspace{31.5pt} - \yihao\heiti\@title\@thesisthanks\\ - \yihao\heiti\@subtitle - \vspace{42pt} - { - \setlength{\tabcolsep}{0pt} - \begin{tabular}{cc} - \makebox[3.5cm][s]{\xiaoerhao\heiti{}专~~业~~名~~称: } & - \underline{\makebox[6cm][s]{ - \xiaoerhao\songti\textbf{\@major} }} \\ - \\ - \makebox[3.5cm][s]{ \xiaoerhao\heiti\authorpre: } & - \underline{\makebox[6cm][s]{ - \xiaoerhao\songti\textbf{\@author} }} \\ - \\ - \makebox[3.5cm][s]{ \xiaoerhao\heiti\advisorpre: } & - \underline{\makebox[6cm][s]{ - \xiaoerhao\songti\textbf{\@advisorname\quad\@advisortitle} }} - \\ - & - \ifcoadvisor - \underline{\makebox[6cm][s]{ - \xiaoerhao\songti\textbf{\@coadvisorname\quad\@coadvisortitle} }} - \else - \fi - \end{tabular} - } - \end{center} + \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(17,27){% + \parbox{\paperwidth}{\includegraphics[width=2cm]{figures/seu-color-logo.png}}}}% + + \vspace*{8cm} + + \begin{center} + \linespread{1.25} + \yihao\heiti\@title\\ + \yihao\heiti\@subtitle + \end{center} + + \begin{center} + \setlength{\tabcolsep}{0pt} + \renewcommand{\arraystretch}{2.0} + \begin{tabular}{cr} + \makebox[3.5cm][s]{\xiaoerhao\songti\authorpre: } & + \underline{\makebox[6cm][s]{ + \hspace*{1cm} + \makebox[2.5cm][c]{\xiaoerhao\heiti\@author} + \makebox[2cm][r]{}}} \\ + \makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre: } & + \underline{\makebox[6cm][s]{ + \hspace*{1cm} + \makebox[2.5cm][c]{\xiaoerhao\heiti\@advisorname} + \makebox[2cm][r]{\xiaoerhao\heiti\@advisortitle}}} + \\ + & + \ifcoadvisor + \underline{\makebox[6cm][s]{ + \hspace*{1cm} + \makebox[2.5cm][c]{\xiaoerhao\heiti\@coadvisorname} + \makebox[2cm][r]{\xiaoerhao\heiti\@coadvisortitle}}} + \else + \fi \\ + \end{tabular} + \end{center} + + \begin{center} + \setlength{\tabcolsep}{10pt} + \renewcommand{\arraystretch}{2.0} + \begin{tabular}{ll} + \CoverBottomOption{\appdegreepre}{\@degreetype} & + \CoverBottomOption{\authorizeorganizationpre}{\@authorizeorganization} \\ + \CoverBottomOption{\majorpre}{\@major} & + \CoverBottomOption{\defenddatepre}{\@defenddate}\\ + \CoverBottomOption{\submajorpre}{\@submajor} & + \CoverBottomOption{\authorizedatepre}{\@authorizedate}\\ + \CoverBottomOption[4.05cm]{\committeechairpre}{\@committeechair} & + \CoverBottomOption{\reviewerpre}{\@reviewerA}\\ + & \CoverBottomOption{\makebox[2.55cm]{}}{\@reviewerB} + \end{tabular} + \end{center} + + \vfill + \setcounter{page}{1} + {\songti\sihao\centerline{\today} \par} + + \clearpage\thispagestyle{empty}\cleardoublepage% + \thispagestyle{empty} + + \begin{center} + \xiaochuhao + + \includegraphics[height=0.63in]{figures/seu-text-logo} + + \ifmasters + \includegraphics{figures/master-hwzs} + \else + \includegraphics{figures/doctor-hwzs} + \fi + + \vspace{31.5pt} + \yihao\heiti\@title\@thesisthanks\\ + \yihao\heiti\@subtitle + \vspace{42pt} + + { + \setlength{\tabcolsep}{0pt} + \begin{tabular}{cc} + \makebox[3.5cm][s]{\xiaoerhao\heiti{}专~~业~~名~~称: } & + \underline{\makebox[6cm][s]{ + \xiaoerhao\songti\textbf{\@major} }} \\ + \\ + \makebox[3.5cm][s]{ \xiaoerhao\heiti\authorpre: } & + \underline{\makebox[6cm][s]{ + \xiaoerhao\songti\textbf{\@author} }} \\ + \\ + \makebox[3.5cm][s]{ \xiaoerhao\heiti\advisorpre: } & + \underline{\makebox[6cm][s]{ + \xiaoerhao\songti\textbf{\@advisorname\quad\@advisortitle}}} + \\ + & + \ifcoadvisor + \underline{\makebox[6cm][s]{ + \xiaoerhao\songti\textbf{\@coadvisorname\quad\@coadvisortitle}}} + \else + \fi + \end{tabular} + } + \end{center} } %=============================================================================== %=============================================================================== %==================================英 文 封 面================================== \newcommand{\makeenglishcover}{% -\clearpage\thispagestyle{empty}\cleardoublepage\thispagestyle{empty} -\begin{center} - ~\\ - {\fontsize{24pt}{28pt}\selectfont - \MakeUppercase{\@titleeng}\\ - \MakeUppercase{\@subtitleeng} - \par - } + \clearpage\thispagestyle{empty}\cleardoublepage\thispagestyle{empty} + \begin{center} + ~\\ + {\fontsize{24pt}{28pt}\selectfont + \MakeUppercase{\@titleeng}\\ + \MakeUppercase{\@subtitleeng} + \par + } - \vspace{2cm}% - {\fontsize{16pt}{24pt}\selectfont - {A - \ifmasters - Thesis - \else - Dissertation - \fi - submitted to}\\ - {\universitynameeng}\\ - {For the Academic Degree of \@degreetypeen}\\ - {\vspace{0.5in}}% - {BY}\\ - {\@authoreng}\\ - {\vspace{0.5in}}% - {Supervised by:}\\ - {\@advisortitleeng\ \@advisornameeng}\\ - \ifcoadvisor - {and}\\ - {\@coadvisortitleeng\ \@coadvisornameeng}\\ - \else - \fi - {\vfill} - {\@departmenteng}\\ - {\universitynameeng}\\ - {\todayeng} - \par - }% - \end{center}% + \vspace{2cm}% + {\fontsize{16pt}{24pt}\selectfont + {A + \ifmasters + Thesis + \else + Dissertation + \fi + submitted to}\\ + {\universitynameeng}\\ + {For the Academic Degree of \@degreetypeen}\\ + {\vspace{0.5in}}% + {BY}\\ + {\@authoreng}\\ + {\vspace{0.5in}}% + {Supervised by:}\\ + {\@advisortitleeng\ \@advisornameeng}\\ + \ifcoadvisor + {and}\\ + {\@coadvisortitleeng\ \@coadvisornameeng}\\ + \else + \fi + {\vfill} + {\@departmenteng}\\ + {\universitynameeng}\\ + {\todayeng} + \par + }% + \end{center}% } %=============================================================================== \newcommand\makecover{% - \makechinesecover - \makeenglishcover - \seudeclare + \makechinesecover + \makeenglishcover + \seudeclare } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -616,22 +616,22 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 摘 要 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %=============================================================================== %================================ 中 文 摘 要 ================================== -\renewenvironment{abstract}[1] +\newenvironment{abstract}[1] { - \pagenumbering{Roman} - \clearpage\thispagestyle{empty}\cleardoublepage\thispagestyle{plain} - \newcommand{\@keywords}{#1} - \hypersetup{pdfkeywords={\@keywords}} - \phantomsection - \addcontentsline{toc}{chapter}{\@abstracttitle} - \chapter*{\@abstracttitle} - \setcounter{page}{1} + \pagenumbering{Roman} + \clearpage\thispagestyle{empty}\cleardoublepage\thispagestyle{plain} + \newcommand{\@keywords}{#1} + \hypersetup{pdfkeywords={\@keywords}} + \phantomsection + \addcontentsline{toc}{chapter}{\@abstracttitle} + \chapter*{\@abstracttitle} + \setcounter{page}{1} } { - \par - \begin{description} - \item[关键词:] \@keywords - \end{description} + \par + \begin{description} + \item[关键词:] \@keywords + \end{description} } %=============================================================================== @@ -640,76 +640,77 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} %================================ 英 文 摘 要 ================================== \newenvironment{englishabstract}[1] { - \cleardoublepage\thispagestyle{plain} - \newcommand{\@keywords}{#1} - \phantomsection - \addcontentsline{toc}{chapter}{Abstract} - \ctexset{% - chapter/nameformat=\large\bfseries, - chapter/titleformat=\large\bfseries - } - \chapter*{Abstract} - \ctexset{% - chapter/nameformat=\large\heiti, - chapter/titleformat=\large\heiti - } + \cleardoublepage\thispagestyle{plain} + \newcommand{\@keywords}{#1} + \phantomsection + \addcontentsline{toc}{chapter}{Abstract} + \ctexset{% + chapter/nameformat=\large\bfseries, + chapter/titleformat=\large\bfseries + } + \chapter*{Abstract} + \ctexset{% + chapter/nameformat=\large\heiti, + chapter/titleformat=\large\heiti + } } { - \par - \begin{description} - \item[Keywords:] \@keywords - \end{description} + \par + \begin{description} + \item[Keywords:] \@keywords + \end{description} } %=============================================================================== %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 目 录 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand\listofothers{% - \iffigurelist - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{\listfigurename} - \listoffigures - \fi + \iffigurelist + \cleardoublepage + \phantomsection + \addcontentsline{toc}{chapter}{\listfigurename} + \listoffigures + \fi - \iftablelist - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{\listtablename} - \listoftables - \fi + \iftablelist + \cleardoublepage + \phantomsection + \addcontentsline{toc}{chapter}{\listtablename} + \listoftables + \fi - \ifalgorithmlist - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{\listalgorithmname} - \listofalgorithms - \fi + \ifalgorithmlist + \cleardoublepage + \phantomsection + \addcontentsline{toc}{chapter}{\listalgorithmname} + \listofalgorithms + \fi - \ifnomlist - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{\nomname} - \pagestyle{nom} - \printnomenclature[1in] - \fi + \ifnomlist + \cleardoublepage + \phantomsection + \addcontentsline{toc}{chapter}{\nomname} + \pagestyle{seustyle} + \printnomenclature[1in] + \fi } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 正 文 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\newcommand{\mainmatter}{% - \cleardoublepage - \pagenumbering{arabic} - \pagestyle{seustyle} +\renewcommand{\mainmatter}{% + \cleardoublepage + \pagenumbering{arabic} + \pagestyle{seustyle} } \newcommand{\acknowledgement}{% - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{致 谢} - \chapter*{致 谢} + \cleardoublepage + % \pagestyle{plain} + \phantomsection + % \addcontentsline{toc}{chapter}{致 谢} + \chapter{致 谢} } % \newcommand{\thesisbib}[1]{% @@ -721,26 +722,26 @@ gbpub=false,gbnamefmt=lowercase,gbbiblabel=dot,]{biblatex} % } %========================================================= \newcommand{\thesisbib}{% - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{\bibname} - \printbibliography + \cleardoublepage + \phantomsection + \addcontentsline{toc}{chapter}{\bibname} + \printbibliography } %========================================================== \newcommand{\resume}[1]{% - \cleardoublepage - \phantomsection - \addcontentsline{toc}{chapter}{#1} - \chapter*{#1} + \cleardoublepage + \phantomsection + % \addcontentsline{toc}{chapter}{#1} + \chapter{#1} } \newcommand{\seuthesix}{% - \makebox{S\hspace{-0.3ex}\raisebox{-0.5ex}{E}\hspace{-0.3ex}U\hspace{0.1em}% - \textsc{Thesix}} + \makebox{S\hspace{-0.3ex}\raisebox{-0.5ex}{E}\hspace{-0.3ex}U\hspace{0.1em}% + \textsc{Thesix}} } \newcommand{\seuthesis}{% - \makebox{S\hspace{-0.3ex}\raisebox{-0.5ex}{E}\hspace{-0.3ex}U\hspace{0.1em}% - \textsc{Thesis}} + \makebox{S\hspace{-0.3ex}\raisebox{-0.5ex}{E}\hspace{-0.3ex}U\hspace{0.1em}% + \textsc{Thesis}} } \endinput