refactor: 适配纳米材料专业课论文

这个提交包含在:
2026-06-02 19:38:31 +08:00
当前提交 22bdd38bdd
共有 15 个文件被更改,包括 829 次插入 和 0 次删除

33
builtin/abstract.tex 普通文件
查看文件

@ -0,0 +1,33 @@
\makeatletter
\def\muckeywords{} % @符号变量需包裹
\def\mucenglishkeywords{} % @符号变量需包裹
\makeatother
\newcommand{\keywords}[1]{%
\makeatletter
\def\muckeywords{#1}%
\makeatother
}
% 关键词生成
\newcommand{\makekeywords}{%
\makeatletter
\par\noindent
{\fontsize{9pt}{\baselineskip}\bfseries 关键字:}%
{\fontsize{9pt}{\baselineskip}\bfseries\space \muckeywords}
\makeatother
}
\newenvironment{MUCAbstract}{%
\phantomsection
\addcontentsline{toc}{section}{摘要}%
\par\noindent
{\fontsize{10pt}{12pt}\selectfont\textbf{摘要:}}%
\par{}
\obeylines{}
\ignorespaces{}
\songti\fontsize{8pt}{10pt}\selectfont
\ignorespaces
}{%
\par
}

99
builtin/config.tex 普通文件
查看文件

@ -0,0 +1,99 @@
\makeatletter
\def\mucdoctitle{}
\makeatother
\newcommand{\doctitle}[1]{%
\def\mucdoctitle{#1}% 不需要 \makeatletter,因为没用到 @
}
\newcommand{\makedoctitle}{%
\color{white}\songti\zihao{3}%
\mucdoctitle
}
\makeatletter
\def\mucdocsubtitle{}
\makeatother
\newcommand{\docsubtitle}[1]{%
\makeatletter
\def\mucdocsubtitle
{#1}%
\makeatother
}
\newcommand{\makedocsubtitle}{%
\makeatletter
{\fontsize{16pt}{18pt} \selectfont \heiti{}%
\ifx\mucdocsubtitle\empty\else ——\mucdocsubtitle\fi}
\makeatother
}
\makeatletter
\def\varmucprojectid{}
\makeatother
\newcommand{\mucprojectid}[1]{%
\makeatletter
\def\varmucprojectid{#1}%
\makeatother
}
\makeatletter
\def\varmucprojecttype{}
\makeatother
\newcommand{\mucprojecttype}[1]{%
\makeatletter
\def\varmucprojecttype{#1}%
\makeatother
}
\makeatletter
\def\varmucprojectteacher{}
\makeatother
\newcommand{\mucprojectteacher}[1]{%
\makeatletter
\def\varmucprojectteacher{#1}%
\makeatother
}
\makeatletter
\def\varmucauthor{}
\makeatother
\newcommand{\mucauthor}[1]{%
\makeatletter
\def\varmucauthor{#1}%
\makeatother
}
\makeatletter
\def\varmucstudentid{}
\makeatother
\newcommand{\mucstudentid}[1]{%
\makeatletter
\def\varmucstudentid{#1}%
\makeatother
}
\makeatletter
\def\varmucclass{}
\makeatother
\newcommand{\mucclass}[1]{%
\makeatletter
\def\varmucclass{#1}%
\makeatother
}
\newcommand{\makeauthorinfo}{%
{%
\begin{flushright}
\songti\fontsize{10pt}{12pt}\selectfont
\varmucauthor{},\varmucstudentid{},\varmucclass{}%
\end{flushright}
}%
}

47
builtin/cover.tex 普通文件
查看文件

@ -0,0 +1,47 @@
\newcommand{\fontstxs}{\fontsize{15pt}{17pt} \selectfont \songti{}}
\newcommand{\fontstsh}{\fontsize{14pt}{16pt} \selectfont \songti{}}
\newcommand{\fonthtxe}{\fontsize{18pt}{20pt} \selectfont \heiti{}}
\newcommand{\makecover}{
\thispagestyle{empty}
\begin{center}
\vspace*{1cm}
\noindent
%% 这里两个minipage的作用是让Logo与标题对齐
\begin{minipage}[c]{2.17cm}
\includegraphics[width=\linewidth]{assets/MUC.jpg}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[c]{0.8\textwidth}
{\fontsize{18pt}{20pt}\selectfont \heiti{}
中央民族大学大学生创新训练计划结题论文\\[0.3cm]}
{\fontsize{12pt}{14pt}\fontfamily{phv} \selectfont \bfseries
URTP Final Thesis of Minzu University of China}
% 中文黑体小二,英文Arial小四加粗
\end{minipage}
%% 下方是正式的内容
\vspace{4cm}
\makedoctitle{}
\vspace{0.5cm}
\makedocsubtitle{}
\vspace{6cm}
\begin{tabular}{ll}
{\fontstxs{} 计划编号:} & \underline{\fontstxs{} \makebox[6cm][c]{\varmucprojectid}}\\
{\fontstxs{} 项目类型:} & \underline{\fontstxs{} \makebox[6cm][c]{\varmucprojecttype}}\\
{\fontstxs{} 指导教师:} & \underline{\fontstxs{} \makebox[6cm][c]{\varmucprojectteacher}}\\
{\fontstxs{} 项目成员:} & \underline{\fontstxs{} \makebox[6cm][c]{\varmucprojectmembers}}\\
{\fontstxs{} 依托单位:} & \underline{\fontstxs{} \makebox[6cm][c]{\varmucprojectunit}}\\
\end{tabular}
\vspace{3cm}
{\fontstsh{} \varmucprojectdate{}}
\end{center}
\clearpage
}

23
builtin/header.tex 普通文件
查看文件

@ -0,0 +1,23 @@
\newcommand{\setupHeader}{
\renewcommand{\baselinestretch}{1.25}
\setlength{\parindent}{2em}
\titleformat{\section}
{\clearpage\centering\bfseries\kaishu\sanhao}
{第\chinese{section}章}
{1em}
{}
\titleformat{name=\section,numberless}
{\centering\bfseries\kaishu\sanhao}
{}
{0pt}
{}
\titlespacing*{\section}{0pt}{12pt}{6pt}
\pagestyle{fancy}
\setlength{\headheight}{14.5pt} % 建议值=基础值+2pt缓冲
\setlength{\headsep}{15pt} % 页眉与正文间距
\fancyhf{}
\fancyhead[C]{\songti\zihao{5}中央民族大学课程论文《纳米材料制备与表征方法》}
\renewcommand{\headrulewidth}{1pt} % 页眉线粗细
\fancyfoot[C]{\thepage}
}