加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
neubechelor.cls 20.64 KB
一键复制 编辑 原始数据 按行查看 历史
NEUCloudLab 提交于 2024-06-16 07:26 . add en support
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
%%
%% 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化