Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJUThesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU LUG
NJU LaTeX Templates
NJUThesis
Commits
9fda9dc0
Commit
9fda9dc0
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
feat: 新增了研究生的英文封面
parent
93c88e5e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
njuthesis-sample.tex
+2
-1
2 additions, 1 deletion
njuthesis-sample.tex
njuthesis.dtx
+57
-9
57 additions, 9 deletions
njuthesis.dtx
with
59 additions
and
10 deletions
njuthesis-sample.tex
+
2
−
1
View file @
9fda9dc0
...
...
@@ -18,7 +18,7 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass
[
degree=
ug,
% ug: 本科
, mg: 学硕, mf: 专硕, phd: 博士
degree=
phd,
% 默认本科(ug)
, mg: 学硕, mf: 专硕, phd: 博士
type=thesis,
% thesis: 毕业论文,design: 毕业设计
nlcover=true,
% 需要国家图书馆封面,对本科无效
% 若以下两项不设置则自动调用系统预装字体
...
...
@@ -61,6 +61,7 @@
% SupervisorBTitle* = Associate professor,
% 提交日期
SubmitDate = 2021年8月10日,
SubmitDate* =
{
Aug 10, 2021
}
,
% 研究生项
% 答辩,均为研究生项
DefendDate = 2021年9月19日,
ReviewerChairman = 张晓山~教授,
...
...
This diff is collapsed.
Click to expand it.
njuthesis.dtx
+
57
−
9
View file @
9fda9dc0
...
...
@@ -737,6 +737,7 @@ through XeTeX.
\keys_define:nn { nju / info }
{
SubmitDate .tl_set:N = \l_@@_submit_date_tl,
SubmitDate* .tl_set:N = \l_@@_submit_date_en_tl,
}
% \end{macrocode}
%
...
...
@@ -1677,10 +1678,16 @@ through XeTeX.
}
}
% \end{macrocode}
%
%
Put text here.
%
\begin{variable}{\c_@@_name_degree_tl,\c_@@_name_degree_en_tl}
%
用于存储学位名称的变量
% \begin{macrocode}
\tl_new:N \c_@@_name_degree_tl
\tl_new:N \c_@@_name_degree_en_tl
% \end{macrocode}
% \end{variable}
%
% 判断学位进行命令定义
% \begin{macrocode}
\str_if_eq:NNTF {\l_@@_info_degree_tl} { ug }
{
% 本科
...
...
@@ -1711,12 +1718,17 @@ through XeTeX.
\tl_const:Nn \c_@@_cover_box_len_tl { 6em }
% 研究生学位分类
\str_case_e:nn { \l_@@_info_degree_tl }
% 研究生学位名称
\str_if_eq:NNTF { \l_@@_info_degree_tl } { phd }
{
\tl_set:Nn \c_@@_name_degree_tl { 博士 }
\tl_set:Nn \c_@@_name_degree_en_tl { Doctor of Philosophy }
}
{
{ mg } { \tl_const:Nn \c_@@_name_degree_tl { 硕士 } }
{ mf } { \tl_const:Nn \c_@@_name_degree_tl { 硕士专业 } }
{ phd } { \tl_const:Nn \c_@@_name_degree_tl { 博士 } }
\tl_set:Nn \c_@@_name_degree_en_tl { Master }
\str_if_eq:NNTF { \l_@@_info_degree_tl } { mg }
{ \tl_set:Nn \c_@@_name_degree_tl { 硕士 } }
{ \tl_set:Nn \c_@@_name_degree_tl { 硕士专业 } }
}
}
% \end{macrocode}
...
...
@@ -1793,7 +1805,6 @@ through XeTeX.
% \end{macrocode}
% \end{macro}
%
% Put text here.
% 封面信息栏 本科
% \begin{macrocode}
\cs_new_protected:Npn \@@_print_covertab:
...
...
@@ -2034,6 +2045,42 @@ through XeTeX.
\end{spacing}
\cleardoublepage
}
\cs_new_protected:Npn \@@_print_cover_en:
{
\thispagestyle{empty}
\pdfbookmark{英文封面}{English cover} % 将封面插入pdf书签
\begin{center}
\vspace*{20pt}
\bf\sffamily\zihao{2}\l_@@_info_title_en_tl
\vskip \stretch{1}
\normalfont\rmfamily\zihao{4}{by}
\vskip 3pt
\bf\sffamily\zihao{4}\l_@@_info_author_en_tl
\vskip\stretch{1}
\normalfont\rmfamily\zihao{4}{Supervised by}
\vskip 3pt
\normalfont\sffamily\zihao{4}\l_@@_info_supv_a_title_en_tl
\hspace{.5em}\l_@@_info_supv_a_en_tl
\vskip\stretch{1}
\normalsize\rmfamily{%
A dissertation submitted to\\
the graduate school of Nanjing University\\
in partial fulfilment of the requirements for the degree of\\
{\textsc{\c_@@_name_degree_en_tl}}\\
in\\
{\l_@@_major_en_tl}
}
\vskip\stretch{2}
\includegraphics[width=2.5cm]{njulogo} \\
\vskip 3mm
\normalfont\l_@@_info_dept_en_tl\\
{Nanjing University}
\vskip 30pt
\normalfont\normalsize\l_@@_submit_date_en_tl
\end{center}
\normalfont
\cleardoublepage
}
% \end{macrocode}
%
% Put text here.
...
...
@@ -2048,7 +2095,8 @@ through XeTeX.
}
{
\nju_printcover_nl % 国家图书馆封面
\nju_printcover_g % 研究生封面
\nju_printcover_g % 研究生封面
\@@_print_cover_en: % 英文封面
}
}
% \end{macrocode}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment