Skip to content
Snippets Groups Projects
Commit ce0e6b0c authored by Yichen Zhao's avatar Yichen Zhao
Browse files

构建摘要、页码

parent ce41c859
No related branches found
No related tags found
No related merge requests found
# NJU Thesis
> 此项目是基于[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)的重构版本。
> 此项目是基于[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)的重构版本,目前**正在重构中**
原来的[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)模板太过古老并且不支持硕士、博士论文,目前难以维护,因此为了模板的可持续发展,现在将对该项目进行重构,项目将被挂载于[NJU-LUG](https://github.com/nju-lug)组织仓库下
\ No newline at end of file
......@@ -25,8 +25,8 @@
\DeclareStringOption{Grade}
\DeclareStringOption{StudentID}
\DeclareStringOption{StudentName}
\DeclareStringOption{Supervisor}
\DeclareStringOption{SupervisorTitle}
\DeclareStringOption{Mentor}
\DeclareStringOption{MentorTitle}
\DeclareStringOption{SubmitDate}
\ProcessKeyvalOptions*
......
\documentclass{njuthesis}
\pagestyle{empty}
\begin{document}
\maketitle
\begin{abstract}
模板。
\keywords{}
\end{abstract}
\begin{englishabstract}
The diversity of handwritten Chinese text make it a promising but challenging computer vision problem.
% 英文关键词。关键词之间用英文半角逗号隔开,末尾无符号。
\englishkeywords{Handwritten Chinese, Text recognition, Deep learning}
\end{englishabstract}
\mainmatter
\chapter{绪论}
\section{高达历史简介}
\chapter{原理}
......
\ExplSyntaxOn
\input{profile/format/font.tex}
\input{profile/format/cover.tex}
\input{profile/format/abstract.tex}
\input{profile/format/page.tex}
\ctexset{
chapter/format = \zihao{4}\bfseries\centering,
......
\newenvironment{abstract}{%
\pagestyle{plain}
\pagenumbering{Roman}
% \pdfbookmark[0]{\njut@cap@abstract}{abstract}
\begin{center}
\kaishu\zihao{-2}{\textbf{\uuline{南京大学本科生毕业论文(设计、作品)中文摘要}}}
\end{center}
{\bgroup
\kaishu\zihao{-4}
\def\tabcolsep{0pt}
\def\arraystretch{0.8}
\noindent
题目: \Title \\
院系: \Department \\
专业: \Major \\
本科生姓名: \StudentName \\
指导教师(姓名、职称): \Mentor\ \MentorTitle \\
摘要:
\egroup
}
\kaishu\zihao{-4}\par%
}{%
\newpage
}
\newcommand{\keywords}[1]{%
\renewcommand*{\njut@value@abstract@keywords}{#1}%
\par\vspace{2ex}\noindent%
{\kaishu\zihao{-4}\makebox[4em][s]{关键词{}}}~{#1}%
}
% \newcommand*{\englishabstracttitlea}[1]{%
% \renewcommand{\njut@value@abstract@en@titlea}{#1}%
% }
% \newcommand*{\englishabstracttitleb}[1]{%
% \renewcommand{\njut@value@abstract@en@titleb}{#1}%
% }
% 英文摘要
\newenvironment{englishabstract}{%
\pagestyle{plain}
% \pdfbookmark[0]{\njut@cap@abstract@en}{englishabstract}
\begin{center}
\kaishu\zihao{-2}{\textbf{\uuline{南京大学本科生毕业论文(设计、作品)英文摘要}}}
\end{center}
{
\bgroup
THESIS: \Title \\
DEPARTMENT: \Department \\
SPECIALIZATION: \Major \\
UNDERGRADUATE: \StudentName \\
MENTOR: \Mentor \\
ABSTRACT:
\egroup
}
\zihao{-4}\par%
}{%
\cleardoublepage
\newpage
}
\newcommand{\englishkeywords}[1]{%
\renewcommand*{\njut@value@abstract@en@keywords}{#1}%
\par\vspace{2ex}\noindent%
{KEYWORDS{:}}~~{#1}%
}
\ No newline at end of file
......@@ -19,9 +19,9 @@
\end{tabular}\\
\begin{tabular}{p{4.2em}cp{4.2em}c}
\makebox[4.2em][s]{导师}
& \coverunderline[90pt]{\Supervisor}
& \coverunderline[90pt]{\Mentor}
& \makebox[4.2em][s]{职称}
& \coverunderline[90pt]{\SupervisorTitle}\\
& \coverunderline[90pt]{\MentorTitle}\\
\end{tabular}\\
% % 第二导师
% \ifnjut@title@twosupervisors
......@@ -79,5 +79,6 @@
\vskip 8mm
\end{center}
\end{spacing}
% \cleardoublepage
\cleardoublepage
% \newpage
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
{
% \setCJKfamilyfont{zhfs} {FangSong} [AutoFakeBold={\FakeBoldSize}]
% \setCJKfamilyfont{zhhei} {SimHei} [AutoFakeBold={\FakeBoldSize}]
% \setCJKfamilyfont{zhkai} {KaiTi} [AutoFakeBold={\FakeBoldSize}]
\setCJKfamilyfont{zhkai} {KaiTi} [AutoFakeBold=2.17]
\setCJKfamilyfont{zhsong} {SimSun} [AutoFakeBold=2.17]
% \setCJKmainfont[AutoFakeBold={2.17}]{SimSun}
......
\fancypagestyle{plain}{%
\fancyhead{}
\fancyfoot[C]{\zihao{5}\thepage}
}
\renewcommand{\headrulewidth}{0pt} % and the header line
\renewcommand{\footrulewidth}{0pt} % and the footer line
\RequirePackage{ifxetex}
\RequirePackage{lastpage}
\RequirePackage{fancyhdr}
\RequirePackage{geometry}
\RequirePackage{ifthen}
\RequirePackage{expl3}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment