Merge pull request #2 from SilverLiningSL/master

完善对专业硕士学位论文的支持
This commit is contained in:
huanyu 2021-05-25 14:11:08 +08:00 committed by GitHub
commit 81af1a93dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 181 additions and 116 deletions

View File

@ -1,5 +1,12 @@
# Change Log
## [3.0.3] - 2021.4.24
- 大封面及中文封面填空处加粗
- 完善对工程硕士学位论文的支持
- 增加华文中宋字体的支持
## [3.1.0] - TODO
<!-- TODO 更改章节字号 -->

View File

@ -6,7 +6,7 @@
**SeuThesiY** 提供了一个用于排版东南大学硕博学位论文的LaTeX模板。该模板主要是在[seuthesix](https://github.com/zhimengfan1990/seuthesix)基础上进行的修改。
目前该模板支持博士、硕士学位论文。
目前该模板支持博士、学术型硕士、专业型硕士学位论文。
## 功能特色

View File

@ -8,6 +8,7 @@
\advisor{夜帝}{教授}{King Night}{Prof.}
\coadvisor{楚留香}{副教授}{Perfume Tsu}{Associate Prof.} % 没有% 可以不填
\degreetype{武学博士}{Doctor of kung fu} % 详细学位名称
\thesisform{应用研究} % 包括应用研究、调研报告、规划、产品开发、案例分析、项目管理、文学艺术作品、其它。非专业型硕士可忽略
\major{内功}
\submajor{内功心法}
\defenddate{\today}

BIN
config/font/simzs.ttf Normal file

Binary file not shown.

154
config/seuthesiY.cls Normal file → Executable file
View File

@ -68,6 +68,8 @@ BoldItalicFont=simfang.ttf
\newcommand{\kaiti}{\CJKfamily{zhkai}}
\setCJKfamilyfont{zhfs}[Path = ./config/font/]{simfang.ttf}
\newcommand{\fs}{\CJKfamily{zhfs}}
\setCJKfamilyfont{zhzs}[Path = ./config/font/]{simzs.ttf}
\newcommand{\zhongsong}{\CJKfamily{zhzs}}
% my change, 使 Times New Roman
\setmainfont[
@ -141,7 +143,8 @@ BoldItalicFont=timesbi.ttf
\newcommand{\setnomname}[1]{\renewcommand\nomname{#1}}
\renewcommand{\nomname}{}
\RequirePackage{algorithm}
\RequirePackage{algorithmic}
% \RequirePackage{algorithmic}
\RequirePackage{algpseudocode}
\numberwithin{algorithm}{chapter}
\floatname{algorithm}{}
\renewcommand{\listalgorithmname}{}
@ -245,6 +248,8 @@ BoldItalicFont=timesbi.ttf
\newcommand{\UDC}[1]{\renewcommand{\@UDC}{#1}}
\newcommand{\@studentid}{}
\newcommand{\studentid}[1]{\renewcommand{\@studentid}{#1}}
\newcommand{\@thesisform}{}
\newcommand{\thesisform}[1]{\renewcommand{\@thesisform}{#1}}
\newcommand\degreetype[2]{\renewcommand\@degreetype{#1}%
\renewcommand\@degreetypeen{#2}}
\newcommand{\@majorlen}{8em}
@ -386,54 +391,80 @@ BoldItalicFont=timesbi.ttf
\begin{center}
\linespread{1.25}
\yihao\heiti\@title\\
\yihao\heiti\@subtitle
\yihao\heiti\@subtitle\\
\ifengineering
{\sanhao\zhongsong\ (\sanhao\zhongsong\thesisformpre }
{\sanhao\zhongsong\@thesisform)}
\else
\vspace*{0.5\baselineskip}
\fi
\end{center}
\end{minipage}
\ifengineering
\vspace*{1\baselineskip}
\else
\fi
\hspace*{20.5cm}
\begin{minipage}{16cm}
\begin{center}
\setlength{\tabcolsep}{0pt}
\renewcommand{\arraystretch}{2.0}
\renewcommand{\arraystretch}{1.7}
\begin{tabular}{cr}
\makebox[3.5cm][s]{\xiaoerhao\songti\authorpre: } &
\makebox[3.5cm][s]{\xiaoerhao\songti\authorpre\textbf{:} } &
\underline{\makebox[6cm][s]{
\hspace*{1cm}
\makebox[2.5cm][c]{\xiaoerhao\heiti\@author}
\makebox[2.5cm][c]{\xiaoerhao\heiti\textbf{\@author}}
\makebox[2cm][r]{}}} \\
\makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre: } &
\makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre\textbf{:} } &
\underline{\makebox[6cm][s]{
\hspace*{1cm}
\makebox[2.5cm][c]{\xiaoerhao\heiti\@advisorname}
\makebox[2cm][r]{\xiaoerhao\heiti\@advisortitle}}}
\makebox[2.5cm][c]{\xiaoerhao\heiti\textbf{\@advisorname}}
\makebox[2cm][r]{\xiaoerhao\heiti\textbf{\@advisortitle}}}}
\\
&
\ifcoadvisor
\underline{\makebox[6cm][s]{
\hspace*{1cm}
\makebox[2.5cm][c]{\xiaoerhao\heiti\@coadvisorname}
\makebox[2cm][r]{\xiaoerhao\heiti\@coadvisortitle}}}
\makebox[2.5cm][c]{\xiaoerhao\heiti\textbf{\@coadvisorname}}
\makebox[2cm][r]{\xiaoerhao\heiti\textbf{\@coadvisortitle}}}}
\else
\fi \\
\end{tabular}
\end{center}
\end{minipage}
\ifengineering
\vspace*{0.5\baselineskip}
\else
\fi
\hspace*{20.5cm}
\begin{minipage}{16cm}
\begin{center}
\setlength{\tabcolsep}{10pt}
\renewcommand{\arraystretch}{2.0}
\renewcommand{\arraystretch}{1.7}
\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}
\CoverBottomOption{\appdegreepre}{\textbf{\@degreetype}} &
\CoverBottomOption{\authorizeorganizationpre}{\textbf{\@authorizeorganization}} \\
\ifengineering
\CoverBottomOption{\fieldpre}{\textbf{\@major}}
\else
\CoverBottomOption{\majorpre}{\textbf{\@major}}
\fi
&
\CoverBottomOption{\defenddatepre}{\textbf{\@defenddate}}\\
\ifengineering
\CoverBottomOption{\directionpre}{\textbf{\@submajor}}
\else
\CoverBottomOption{\submajorpre}{\textbf{\@submajor}}
\fi
&
\CoverBottomOption{\authorizedatepre}{\textbf{\@authorizedate}}\\
\CoverBottomOption[4.05cm]{\committeechairpre}{\textbf{\@committeechair}} &
\CoverBottomOption{\reviewerpre}{\textbf{\@reviewerA}}\\
& \CoverBottomOption{\makebox[2.55cm]{}}{\textbf{\@reviewerB}}
\end{tabular}
\end{center}
\end{minipage}
@ -477,10 +508,10 @@ BoldItalicFont=timesbi.ttf
}
\AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,23){%
\parbox{\paperwidth}{\centering\includegraphics[width=\paperwidth]{figures/front-cover.jpg}}}}%
\parbox{\paperwidth}{\centering\includegraphics[width=0.8\paperwidth]{figures/front-cover.jpg}}}}%
\ifengineering
\AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ %
\AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,17.5){ %
\parbox{\paperwidth}{\centering\includegraphics[scale=0.65]{figures/engineering.png}}}}%
\else \ifmasters
\AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(0,18){ %
@ -497,38 +528,43 @@ BoldItalicFont=timesbi.ttf
\fi
\AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(17,27){%
\parbox{\paperwidth}{\includegraphics[width=2cm]{figures/seu-color-logo.png}}}}%
% \AddToShipoutPictureBG*{\setlength{\unitlength}{1cm}\put(17,27){%
% \parbox{\paperwidth}{\includegraphics[width=2cm]{figures/seu-color-logo.png}}}}%
\vspace*{8cm}
\vspace*{10cm}
\begin{center}
\linespread{1.25}
\yihao\heiti\@title\\
\yihao\heiti\@subtitle
\yihao\heiti\@subtitle\\
\ifengineering
{\sanhao\zhongsong\ (\sanhao\zhongsong\thesisformpre }
{\sanhao\zhongsong\@thesisform)}
\else
\fi
\end{center}
\begin{center}
\setlength{\tabcolsep}{0pt}
\renewcommand{\arraystretch}{2.0}
\renewcommand{\arraystretch}{1.7}
\begin{tabular}{cr}
\makebox[3.5cm][s]{\xiaoerhao\songti\authorpre: } &
\makebox[3.5cm][s]{\xiaoerhao\songti\authorpre\textbf{:} } &
\underline{\makebox[6cm][s]{
\hspace*{1cm}
\makebox[2.5cm][c]{\xiaoerhao\heiti\@author}
\makebox[2.5cm][c]{\xiaoerhao\heiti\textbf{\@author}}
\makebox[2cm][r]{}}} \\
\makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre: } &
\makebox[3.5cm][s]{\xiaoerhao\songti\advisorpre\textbf{:} } &
\underline{\makebox[6cm][s]{
\hspace*{1cm}
\makebox[2.5cm][c]{\xiaoerhao\heiti\@advisorname}
\makebox[2cm][r]{\xiaoerhao\heiti\@advisortitle}}}
\makebox[2.5cm][c]{\xiaoerhao\heiti\textbf{\@advisorname}}
\makebox[2cm][r]{\xiaoerhao\heiti\textbf{\@advisortitle}}}}
\\
&
\ifcoadvisor
\underline{\makebox[6cm][s]{
\hspace*{1cm}
\makebox[2.5cm][c]{\xiaoerhao\heiti\@coadvisorname}
\makebox[2cm][r]{\xiaoerhao\heiti\@coadvisortitle}}}
\makebox[2.5cm][c]{\xiaoerhao\heiti\textbf{\@coadvisorname}}
\makebox[2cm][r]{\xiaoerhao\heiti\textbf{\@coadvisortitle}}}}
\else
\fi \\
\end{tabular}
@ -536,17 +572,27 @@ BoldItalicFont=timesbi.ttf
\begin{center}
\setlength{\tabcolsep}{10pt}
\renewcommand{\arraystretch}{2.0}
\renewcommand{\arraystretch}{1.7}
\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}
\CoverBottomOption{\appdegreepre}{\textbf{\@degreetype}} &
\CoverBottomOption{\authorizeorganizationpre}{\textbf{\@authorizeorganization}} \\
\ifengineering
\CoverBottomOption{\fieldpre}{\textbf{\@major}}
\else
\CoverBottomOption{\majorpre}{\textbf{\@major}}
\fi
&
\CoverBottomOption{\defenddatepre}{\textbf{\@defenddate}}\\
\ifengineering
\CoverBottomOption{\directionpre}{\textbf{\@submajor}}
\else
\CoverBottomOption{\submajorpre}{\textbf{\@submajor}}
\fi
&
\CoverBottomOption{\authorizedatepre}{\textbf{\@authorizedate}}\\
\CoverBottomOption[4.05cm]{\committeechairpre}{\textbf{\@committeechair}} &
\CoverBottomOption{\reviewerpre}{\textbf{\@reviewerA} \quad \textbf{\@reviewerB}}\\
% & \CoverBottomOption{\makebox[2.55cm]{}}{\@reviewerB}
\end{tabular}
\end{center}
@ -562,11 +608,15 @@ BoldItalicFont=timesbi.ttf
\includegraphics[height=0.63in]{figures/seu-text-logo}
\ifmasters
\ifengineering
\vspace*{0.5\baselineskip}
\includegraphics[width=0.75\textwidth]{figures/engineering.png}
\else \ifmasters
\includegraphics{figures/master-hwzs}
\else
\includegraphics{figures/doctor-hwzs}
\fi
\fi
\vspace{31.5pt}
\yihao\heiti\@title\@thesisthanks\\
@ -576,15 +626,15 @@ BoldItalicFont=timesbi.ttf
{
\setlength{\tabcolsep}{0pt}
\begin{tabular}{cc}
\makebox[3.5cm][s]{\xiaoerhao\heiti{}~~~~~~: } &
\makebox[3.5cm][s]{\xiaoerhao\heiti{}~~~~~~\textbf{:} } &
\underline{\makebox[6cm][s]{
\xiaoerhao\songti\textbf{\@major} }} \\
\xiaoerhao\heiti\textbf{\@major} }} \\
\\
\makebox[3.5cm][s]{ \xiaoerhao\heiti\authorpre: } &
\makebox[3.5cm][s]{ \xiaoerhao\heiti\authorpre\textbf{:} } &
\underline{\makebox[6cm][s]{
\xiaoerhao\songti\textbf{\@author} }} \\
\\
\makebox[3.5cm][s]{ \xiaoerhao\heiti\advisorpre: } &
\makebox[3.5cm][s]{ \xiaoerhao\heiti\advisorpre\textbf{:} } &
\underline{\makebox[6cm][s]{
\xiaoerhao\songti\textbf{\@advisorname\quad\@advisortitle}}}
\\
@ -622,7 +672,11 @@ BoldItalicFont=timesbi.ttf
\fi
submitted to}\\
{\universitynameeng}\\
{For the Academic Degree of \@degreetypeen}\\
\ifengineering
{For the Professional Degree of \@degreetypeen}\\
\else
{For the Academic Degree of \@degreetypeen}\\
\fi
{\vspace{0.5in}}%
{BY}\\
{\@authoreng}\\

3
config/seuthesix.cfg Normal file → Executable file
View File

@ -26,11 +26,14 @@
\newcommand{\secretlevelpre}{密级}
\newcommand{\categorynumberpre}{分类号}
\newcommand{\studentidpre}{学号}
\newcommand{\thesisformpre}{学位论文形式:}
\newcommand{\authorpre}{研究生姓名}
\newcommand{\advisorpre}{导~~师~~姓~~名}
\newcommand{\appdegreepre}{申请学位类别}
\newcommand{\majorpre}{一级学科名称}
\newcommand{\submajorpre}{二级学科名称}
\newcommand{\fieldpre}{工程领域名称}
\newcommand{\directionpre}{研~~~~究~~~~方~~~~向}
\newcommand{\defenddatepre}{论文答辩日期}
\newcommand{\authorizeorganizationpre}{学位授予单位}
\newcommand{\@authorizeorganization}{~~东~南~大~学~~}

View File

@ -1,4 +1,4 @@
\documentclass[algorithmlist, figurelist,tablelist, nomlist,phd]{config/seuthesiY}
\documentclass[algorithmlist, figurelist,tablelist, nomlist, engineering, AutoFakeBold]{config/seuthesiY}
%===============================================================================
% 采用的编译方式为 XELATEX -→ BIBER -→ XELATEX -→ XELATEX