代码拉取完成,页面将自动刷新
%%
%% This is file `nuebechelor.cls'.
%%
%% Copyright (C) 2022 by Chaopeng GUO <guochaopeng@swc.neu.edu.cn>
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3a
%% of this license or (at your option) any later version.
%% The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3a or later is part of all distributions of LaTeX
%% version 2004/10/01 or later.
%%
%% Any Suggestions : Chaopeng Guo <guochaopeng@swc.neu.edu.cn>
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{neubechelor}[2022/11/22 v0.1 Northeastern University Bechelor Thesis Template]
% \newif\ifisanon\isanonfalse
% \DeclareOption{anon}{\isanontrue}
% \newif\ifisen\isenfalse
% \DeclareOption{en}{\isentrue}
\newif\if@mylangpackage@english
\@mylangpackage@englishfalse % 默认设置为false
% 检查是否传递了'en'选项
\DeclareOption{en}{
\@mylangpackage@englishtrue % 设置为true
}
\ProcessOptions\relax
\LoadClass[a4paper,cs4size,openright,oneside]{ctexbook}
% Set Geometry
\RequirePackage[includeheadfoot]{geometry}
\RequirePackage{geometry}
\RequirePackage{setspace}
\geometry{a4paper,left=2.5cm, right=2.5cm, top=1.5cm, bottom=2cm}
\geometry{headsep=0.5cm,footskip=1cm}
% Font Style Settings
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}
\setCJKmainfont[BoldFont=华文中宋,ItalicFont=楷体]{宋体}
\setCJKsansfont{黑体} % Hei
\setCJKmonofont{仿宋} % Fangsong
\setCJKfamilyfont{song}{宋体}
\setCJKfamilyfont{hei}{黑体}
\setCJKfamilyfont{fs}{仿宋} % fang-song
\setCJKfamilyfont{kai}{楷体} % Kai
\newcommand{\cusong}{\bfseries}
\newcommand{\song}{\CJKfamily{song}} % 宋体
\newcommand{\fs}{\CJKfamily{fs}}
\newcommand{\kai}{\CJKfamily{kai}}
\newcommand{\hei}{\CJKfamily{hei}}
%% Font Size Settings
\newcommand{\chuhao}{\zihao{0}}
\newcommand{\xiaochu}{\zihao{-0}}
\newcommand{\yihao}{\zihao{1}}
\newcommand{\xiaoyi}{\zihao{-1}}
\newcommand{\erhao}{\zihao{2}}
\newcommand{\xiaoer}{\zihao{-2}}
\newcommand{\sanhao}{\zihao{3}}
\newcommand{\xiaosan}{\zihao{-3}}
\newcommand{\sihao}{\zihao{4}}
\newcommand{\xiaosi}{\zihao{-4}}
\newcommand{\wuhao}{\zihao{5}}
\newcommand{\xiaowu}{\zihao{-5}}
\newcommand{\liuhao}{\zihao{6}}
\newcommand{\xiaoliu}{\zihao{-6}}
\newcommand{\qihao}{\zihao{7}}
\newcommand{\bahao}{\zihao{8}}
% Define Variables
\newcommand\studentid[1]{\renewcommand\@studentid{#1}}
\newcommand\@studentid{}
\newcommand\serialno[1]{\renewcommand\@serialno{#1}}
\newcommand\@serialno{}
\newcommand\zhtitle[1]{\renewcommand\@zhtitle{#1}}
\newcommand\@zhtitle{}
\newcommand\entitle[1]{\renewcommand\@entitle{#1}}
\newcommand\@entitle{}
\newcommand\zhauthor[1]{\renewcommand\@zhauthor{#1}}
\newcommand\@zhauthor{}
\newcommand\enauthor[1]{\renewcommand\@enauthor{#1}}
\newcommand\@enauthor{}
\newcommand\zhsupervisor[1]{\renewcommand\@zhsupervisor{#1}}
\newcommand\@zhsupervisor{}
\newcommand\zhsupervisortitle[1]{\renewcommand\@zhsupervisortitle{#1}}
\newcommand\@zhsupervisortitle{}
\newcommand\zhsupervisortwo[1]{\renewcommand\@zhsupervisortwo{#1}}
\newcommand\@zhsupervisortwo{}
\newcommand\zhsupervisortwotitle[1]{\renewcommand\@zhsupervisortwotitle{#1}}
\newcommand\@zhsupervisortwotitle{}
\newcommand\campusname[1]{\renewcommand\@campusname{#1}}
\newcommand\@campusname{}
\newcommand\zhmajor[1]{\renewcommand\@zhmajor{#1}}
\newcommand\@zhmajor{}
\newcommand\zhthesisdate[1]{\renewcommand\@zhthesisdate{#1}}
\newcommand\@zhthesisdate{}
\newcommand\enthesisdate[1]{\renewcommand\@enthesisdate{#1}}
\newcommand\@enthesisdate{}
\newcommand\ensupervisor[1]{\renewcommand\@ensupervisor{#1}}
\newcommand\@ensupervisor{}
\newcommand\ensupervisortwo[1]{\renewcommand\@ensupervisortwo{#1}}
\newcommand\@ensupervisortwo{}
\newcommand\encampusname[1]{\renewcommand\@encampusname{#1}}
\newcommand\@encampusname{}
\newcommand\enmajor[1]{\renewcommand\@enmajor{#1}}
\newcommand\@enmajor{}
% Document Organization Settings
\RequirePackage[center]{titlesec}
\linespread{1.55}
%% Document Structure Settings: Headers and Footers
\RequirePackage{fancyhdr}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancypagestyle{plain}{}
% for declaration page
\fancypagestyle{frontmatternohead}{%
\fancyhf{}
\fancyfoot[C]{\xiaowu -\thepage- }
\setlength{\parskip}{0pt}
\renewcommand{\headrulewidth}{0pt}}
\fancypagestyle{declaration}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\fancyhead[R] {\wuhao Declaration}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fancyhead[R] {\wuhao \song 郑重声明}
\fi
\fancyfoot[C]{~}
\titleformat{\chapter}[hang]{\center \erhao \song}{~}{1em}{}
\titlespacing{\chapter}{0pt}{*1}{1cm}
\if@mylangpackage@english
\linespread{1.4375}
\else
\linespread{1.625}
\fi
\titlespacing*{name=\chapter,numberless}{0pt}{-0.5cm}{0.5\baselineskip}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\fancypagestyle{zhabstract}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\fancyhead[R] {\wuhao \song 摘\quad 要}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fancyhead[R] {\wuhao \song 摘\quad 要}
\setcounter{page}{1}
\fi
\fancyfoot[C]{\xiaowu -\thepage- }
\titleformat{\chapter}[hang]{\centering \xiaoer \hei}{~}{0}{\xiaoer \hei}
\linespread{1.625}
\titlespacing*{name=\chapter,numberless}{0pt}{-0.625cm}{0.525ex}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\fancypagestyle{enabstract}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\fancyhead[R] {\wuhao Abstract }
\setcounter{page}{1}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fancyhead[R] {\wuhao Abstract }
\fi
\fancyfoot[C]{\xiaowu -\thepage- }
\linespread{1.4375}
\setlength{\parskip}{0pt}
\titleformat{\chapter}[hang]{\centering \xiaoer \bfseries }{~}{}{}
\titlespacing*{\chapter}{0pt}{-0.625cm}{0.625ex}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\fancypagestyle{tableofcontents}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\fancyhead[R] {\wuhao \song Content}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fancyhead[R] {\wuhao \song 目\quad 录}
\fi
\fancyfoot[C]{\xiaowu -\thepage- }
\if@mylangpackage@english
\linespread{1.4375}
\else
\linespread{1.625}
\fi
\setlength{\parskip}{0pt}
\titleformat{\chapter}[hang]{\center \xiaoer \hei}{~}{1em}{}
\titlespacing*{\chapter}{0pt}{*1}{0cm}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\fancypagestyle{mainbody}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fi
\fancyhead[R] {\wuhao \song \thechapter\hspace{1em}\leftmark}
\fancyfoot[C]{\xiaowu -\thepage-}
\if@mylangpackage@english
\linespread{1.4375}
\else
\linespread{1.625}
\fi
\linespread{1.625}
\setlength{\parskip}{0pt}
\titleformat{\chapter}[hang]{\centering \xiaoer \hei}{\thechapter }{1em}{\hei}
\titlespacing*{\chapter}{0pt}{-0.625cm}{0.625ex}
\titleformat{\section}[hang]{\sihao \hei}{\thesection}{1em}{\sihao \hei}
\titlespacing*{\section}{0pt}{0.5ex}{0.5ex}
\titleformat{\subsection}[hang]{\xiaosi \hei}{\thesubsection}{1em}{\xiaosi \hei}
\titlespacing*{\subsection}{0pt}{0ex}{0ex}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\fancypagestyle{refmatternochapter}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\fancyhead[R] {\xiaowu \song References}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fancyhead[R] {\xiaowu \song 参考文献 }
\fi
\fancyfoot[C]{\xiaowu -\thepage-}
\if@mylangpackage@english
\linespread{1.4375}
\else
\linespread{1.625}
\fi
\setlength{\parskip}{0pt}
\titleformat{\chapter}[hang]{\centering \xiaoer \hei}{~}{}{}
\titlespacing*{\chapter}{0pt}{-0.625cm}{0.625ex}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\fancypagestyle{backmatternochapter}{%
\if@mylangpackage@english
\fancyhead[L] {\wuhao Northeastern University Graduation Design (Thesis)}
\else
\fancyhead[L] {\wuhao \song 东北大学本科生毕业设计(论文)}
\fi
\fancyhead[R] {\xiaowu \song \leftmark }
\fancyfoot[C]{\xiaowu -\thepage-}
\if@mylangpackage@english
\linespread{1.4375}
\else
\linespread{1.625}
\fi
\setlength{\parskip}{0pt}
\titleformat{\chapter}[hang]{\centering \xiaoer \hei}{~}{}{}
\titlespacing*{\chapter}{0pt}{-0.625cm}{0.625ex}
\xiaosi
\renewcommand{\headrulewidth}{0.5pt}}
\renewcommand\frontmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagenumbering{Roman}
\pagestyle{frontmatternohead}}
\newcommand\lastmatter{%
\if@openright\clearpage\else\cleardoublepage\fi
\@mainmatterfalse
\pagestyle{empty}}
\newcommand\declarationmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagestyle{declaration}}
\newcommand\zhabstractmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagestyle{zhabstract}}
\newcommand\enabstractmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagestyle{enabstract}}
\newcommand\tableofcontentsmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagestyle{tableofcontents}}
\renewcommand\mainmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmattertrue
\pagenumbering{arabic}
\pagestyle{mainbody}}
\newcommand\refmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagestyle{refmatternochapter}}
\renewcommand\backmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse
\pagestyle{backmatternochapter}}
%% Setting for the empty page after the chapters with odd end
\renewcommand\cleardoublepage{\clearpage\if@openright \ifodd\c@page\else
\newpage{}
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\end{center}
\vspace*{\fill}
\clearpage\fi\fi}
\RequirePackage{graphicx}
\RequirePackage[config]{subfig}
\RequirePackage{float}
\RequirePackage{array}
\RequirePackage{longtable}
\RequirePackage{booktabs}
\RequirePackage{multirow}
\RequirePackage{tabularx}
\RequirePackage{enumitem}
%\RequirePackage{enumerate}
\RequirePackage{tikz}
\RequirePackage{xcolor}
\RequirePackage{amsmath,amssymb}
\RequirePackage[Symbolsmallscale]{upgreek}
\interdisplaylinepenalty=2500
\RequirePackage{bm}
\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
\RequirePackage{zhnumber}
\RequirePackage{indentfirst}
\RequirePackage{xunicode-addon}
\RequirePackage{cite}
\RequirePackage{multicol}
\RequirePackage{makecell}
\newcommand{\entry}[3]{\multicolumn{#1}{l}{\underline{\hbox to #2{\hfil#3\hfil}}}}
% Define Contents of Table
\RequirePackage{titletoc}
\CTEXsetup[name={,}, number=\arabic{chapter}]{chapter}
\titlecontents{chapter}[0cm]{\bf}{\contentslabel{0cm}\hspace*{0.1cm} \hspace*{0.1cm}}%
{}{\titlerule*[0.4pc]{$\cdot$}\contentspage}%
\titlecontents{section}[4em]{\bf}%
{\contentslabel{2em}}%
{}%
{\titlerule*[0.4pc]{$\cdots$}\contentspage}
\titlecontents{subsection}[6.5em]{}%
{\contentslabel{2.5em}}%
{}%
{\titlerule*[0.4pc]{$\cdots$}\contentspage}
\if@mylangpackage@english
\renewcommand{\maketitle}{
\newpage
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {
\includegraphics[width=21cm, height=29.7cm]{Figures/neucover}
};
\end{tikzpicture}
\vspace{13.5cm}
\hspace{0.9cm}
\xiaosan
\begin{tabular}{lp{10cm}}
\xiaosan
\makebox[3.5cm][s]{论文题目:} & \@zhtitle \\[3mm]
\makebox[3.5cm][s]{学院名称:} & \@campusname \\[3mm]
\makebox[3.5cm][s]{专业名称:} & \@zhmajor \\[3mm]
\makebox[3.5cm][s]{学生姓名:} & \@zhauthor \\[3mm]
\makebox[3.5cm][s]{指导老师:} & \@zhsupervisor\quad \@zhsupervisortwo \\
\end{tabular}
\newpage
\thispagestyle{empty}
~
\newpage
\thispagestyle{empty}
\vspace*{20mm}
\begin{center}
\hei \erhao \@zhtitle
\end{center}
\vspace{60mm}
\begin{center}
\xiaosan
\begin{tabular}{p{3.5cm}l}
\xiaosan
作者姓名: & \@zhauthor \\
校内指导老师: & \@zhsupervisor \\
校外指导老师: & \@zhsupervisortwo \\
单位名称: & \@campusname \\
专业名称: & \@zhmajor \\
\end{tabular}
\end{center}
\vspace{45mm}
\begin{center}
{\sihao \song 东\ 北\ 大\ 学}
{\sihao \song \@zhthesisdate}
\end{center}
\newpage
\thispagestyle{empty}
~
\newpage
\thispagestyle{empty}
\vspace*{20mm}
\begin{center}
\hei \erhao \@entitle
\end{center}
\vspace{60mm}
\begin{center}
\xiaosan
\begin{tabular}{p{5cm}l}
\xiaosan
Author: & \@enauthor \\
Supervisor: & \@ensupervisor \\
Enterprise Supervisor: & \@ensupervisortwo \\
Coolege: & \@encampusname \\
Major: & \@enmajor \\
\end{tabular}
\end{center}
\vspace{45mm}
\begin{center}
{\sihao Northeastern University}
{\sihao \song \@enthesisdate}
\end{center}
\newpage
\thispagestyle{empty}
~
\newpage
\thispagestyle{empty}
\vspace*{20mm}
\begin{center}
\hei \erhao \@zhtitle
\end{center}
\vspace{60mm}
\begin{center}
\xiaosan
\begin{tabular}{p{3.5cm}l}
\xiaosan
作者姓名: & \@zhauthor \\
校内指导老师: & \@zhsupervisor \\
校外指导老师: & \@zhsupervisortwo \\
单位名称: & \@campusname \\
专业名称: & \@zhmajor \\
\end{tabular}
\end{center}
\vspace{45mm}
\begin{center}
{\sihao \song 东\ 北\ 大\ 学}
{\sihao \song \@zhthesisdate}
\end{center}
\newpage
\thispagestyle{empty}
~
}
\else
\renewcommand{\maketitle}{
\newpage
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {
\includegraphics[width=21cm, height=29.7cm]{Figures/neucover}
};
\end{tikzpicture}
\vspace{13.5cm}
\hspace{0.9cm}
\xiaosan
\begin{tabular}{lp{10cm}}
\xiaosan
\makebox[3.5cm][s]{论文题目:} & \@zhtitle \\[3mm]
\makebox[3.5cm][s]{学院名称:} & \@campusname \\[3mm]
\makebox[3.5cm][s]{专业名称:} & \@zhmajor \\[3mm]
\makebox[3.5cm][s]{学生姓名:} & \@zhauthor \\[3mm]
\makebox[3.5cm][s]{指导老师:} & \@zhsupervisor\quad \@zhsupervisortwo \\
\end{tabular}
\newpage
\thispagestyle{empty}
~
\newpage
\thispagestyle{empty}
\vspace{5mm}
\begin{center}
\hei \wuhao %
\begin{tabular}{llcll}
\wuhao 学号 & \entry{1}{5cm}{\@studentid} & \hspace*{1cm} %
\wuhao 密级 & \entry{1}{5cm}{\@serialno} \\ %
\end{tabular}
\end{center}%
\vspace{18mm}
\begin{center}
\song \yihao 东北大学本科毕业论文
\end{center}
\vspace{24mm}
\begin{center}
\hei \erhao \@zhtitle
\end{center}
\vspace{29mm}
\begin{center}
\xiaosan
\begin{tabular}{ll}
\xiaosan
\makebox[3.5cm][s]{学院名称:} & \@campusname \\[3mm]
\makebox[3.5cm][s]{专业名称:} & \@zhmajor \\[3mm]
\makebox[3.5cm][s]{作者姓名:} & \@zhauthor \\[3mm]
\makebox[3.5cm][s]{指导老师:} & \@zhsupervisor\quad \@zhsupervisortitle \\[3mm]
& \@zhsupervisortwo\quad\@zhsupervisortwotitle \\[2mm]
\end{tabular}
\end{center}
\vspace{24mm}
\begin{center}
\xiaoer \@zhthesisdate
\end{center}
\newpage
\thispagestyle{empty}
~
\newpage
\thispagestyle{empty}
\vspace*{20mm}
\begin{center}
\hei \erhao \@zhtitle
\end{center}
\vspace{60mm}
\begin{center}
\xiaosan
\begin{tabular}{p{3.5cm}l}
\xiaosan
作者姓名: & \@zhauthor \\
校内指导老师: & \@zhsupervisor \\
校外指导老师: & \@zhsupervisortwo \\
单位名称: & \@campusname \\
专业名称: & \@zhmajor \\
\end{tabular}
\end{center}
\vspace{45mm}
\begin{center}
{\sihao \song 东\ 北\ 大\ 学}
{\sihao \song \@zhthesisdate}
\end{center}
\newpage
\thispagestyle{empty}
~
\newpage
\thispagestyle{empty}
\vspace*{20mm}
\begin{center}
% \begin{spacing}{1.2}%%行间距变为double-space
%
%\end{spacing}
\erhao\textbf{\@entitle}
\end{center}
\vspace{35mm}
\begin{center}
\sihao
By \@enauthor
\end{center}
\vspace{35mm}
\begin{center}
\sihao
\begin{tabular}{p{5.5cm}l}
\sihao
Supervisor: & \@ensupervisor \\[2mm]
Associate Supervisor: & \@ensupervisortwo \\
\end{tabular}
\end{center}
\vspace{35mm}
\begin{center}
{\sihao \centering Northeastern University}
{\sihao \centering \@enthesisdate}
\end{center}
\newpage
\thispagestyle{empty}
~
\newpage
}
\fi
\newcommand{\pozhehao}{\kern0.2em\rule[0.8ex]{1.6em}{0.1ex}\kern0.2em}
\newcommand{\xiaopozhe}{\kern0.2em\rule[0.8ex]{0.6em}{0.1ex}\kern0.2em}
\if@mylangpackage@english
\renewcommand\contentsname{Content}
\newcommand\equationname{Equation}
\renewcommand\bibname{References}
\renewcommand\indexname{Index}
\renewcommand\figurename{Figure}
\renewcommand\tablename{Table}
\renewcommand\appendixname{}
\newcommand{\figref}[1]{Figure \ref{#1}}
\newcommand{\tabref}[1]{Table \ref{#1}}
\newcommand{\equref}[1]{Equation \ref{#1}}
\else
\renewcommand\contentsname{目\hspace{1em}录}
\newcommand\equationname{公式}
\renewcommand\bibname{参考文献}
\renewcommand\indexname{索引}
\renewcommand\figurename{图}
\renewcommand\tablename{表}
\renewcommand\appendixname{附录}
\newcommand{\figref}[1]{图\ref{#1}}
\newcommand{\tabref}[1]{表\ref{#1}}
\newcommand{\equref}[1]{式\ref{#1}}
\fi
%\AtBeginEnvironment{table}{\wuhao}
\AtBeginEnvironment{tabular}{\vspace*{-0.3cm}}
\AtBeginEnvironment{figure}{\linespread{1}}
\RequirePackage{caption}
\renewcommand{\captionfont}{\wuhao }
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
\setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\endinput
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。