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
ef5e04f6
Commit
ef5e04f6
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
feat: 添加学位类型选择,初步绘制硕士封面
parent
be42afc7
No related branches found
Branches containing commit
Tags
v0.8.3
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
figure/njuname-large.jpg
+0
-0
0 additions, 0 deletions
figure/njuname-large.jpg
njuthesis.cls
+3
-1
3 additions, 1 deletion
njuthesis.cls
njuthesis.tex
+5
-3
5 additions, 3 deletions
njuthesis.tex
profile/cover.sty
+127
-49
127 additions, 49 deletions
profile/cover.sty
with
135 additions
and
53 deletions
figure/njuname-large.jpg
0 → 100644
+
0
−
0
View file @
ef5e04f6
798 KiB
This diff is collapsed.
Click to expand it.
njuthesis.cls
+
3
−
1
View file @
ef5e04f6
...
...
@@ -56,11 +56,13 @@
StudentName .tl
_
set:N =
\nju
_
student
_
name,
StudentNameEN .tl
_
set:N =
\nju
_
student
_
name
_
en,
% 院系专业
% 院系专业
方向
Department .tl
_
set:N =
\nju
_
department,
DepartmentEN .tl
_
set:N =
\nju
_
department
_
en,
Major .tl
_
set:N =
\nju
_
major,
MajorEN .tl
_
set:N =
\nju
_
major
_
en,
Field .tl
_
set:N =
\nju
_
field,
FieldEN .tl
_
set:N =
\nju
_
field
_
en,
% 导师
MentorA .tl
_
set:N =
\nju
_
mentor
_
a,
...
...
This diff is collapsed.
Click to expand it.
njuthesis.tex
+
5
−
3
View file @
ef5e04f6
...
...
@@ -18,7 +18,7 @@
\documentclass
[
titlelength=2,
% 选择标题行数,范围是1~3
secondmentor=true,
% 有第二导师请取消注释此项
%
degree=
UG
,%
UG
: 本科
本项不需更改
degree=
m
,
%
ug
: 本科
, m: 硕士, d: 博士
type=thesis,
% thesis: 毕业论文,design: 毕业设计
% systemfont=false,% 自定义字体请取消注释此项
% customlatinfont=windows,% 设置英文字符集
...
...
@@ -42,8 +42,10 @@
% 院系专业
Department = 拉太赫科学与技术学院,
DepartmentEN = School~of~
\hologo
{
LaTeX
}
,
Major = 拉太赫语言学,
MajorEN =
\hologo
{
LaTeX
}
~Linguistics,
Major = 拉太赫语言在现当代的使用,
MajorEN = Contemporary~Usage~of~the~
\hologo
{
LaTeX
}
~Language,
Field = 拉太赫语言学,
FieldEN =
\hologo
{
LaTeX
}
~Linguistics,
% 导师
MentorA = 李成殿,
MentorAEN= Li~Chengdian,
...
...
This diff is collapsed.
Click to expand it.
profile/cover.sty
+
127
−
49
View file @
ef5e04f6
...
...
@@ -9,31 +9,44 @@
}
% 封面表格边框
\cs
_
new:Npn
\nju
_
coverbox:n #1
{
\cs
_
new:Npn
\nju
_
coverbox
_
ug
:n #1
{
\makebox
[4.2em][s]
{
#1
}
}
% 封面信息栏
\tl
_
new:N
\nju
_
cover
_
personalinfo
\tl
_
set:Nn
\nju
_
cover
_
personalinfo
{
% 判断学位
\str
_
case
_
e:nn
{
\nju
_
degree
}
{
{
ug
}
{
\tl
_
const:Nn
\nju
_
degree
_
name
{
本
\hfill
科
\hfill
}
}
{
m
}
{
\tl
_
const:Nn
\nju
_
degree
_
name
{
研
\hfill
究
\hfill
生
\hfill
}
}
{
d
}
{
\tl
_
const:Nn
\nju
_
degree
_
name
{
博
\hfill
士
\hfill
生
\hfill
}
}
}
% 判断类型
\str
_
if
_
eq:eeTF
{
\nju
_
type
}
{
thesis
}
{
\tl
_
const:Nn
\nju
_
type
_
name
{
\nju
_
degree
_
name 毕
\hfill
业
\hfill
论
\hfill
文
}}
{
\tl
_
const:Nn
\nju
_
type
_
name
{
\nju
_
degree
_
name 毕
\hfill
业
\hfill
设
\hfill
计
}}
% 封面信息栏 本科
\tl
_
new:N
\nju
_
printcover
_
ug
\tl
_
set:Nn
\nju
_
printcover
_
ug
{
\begin{tabular}
{
p
{
4.2em
}
c
}
\nju
_
coverbox:n
{
院
\hfill
系
}
\nju
_
coverbox
_
ug
:n
{
院
\hfill
系
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\songti\nju
_
department
}
\\
\nju
_
coverbox:n
{
专
\hfill
业
}
\nju
_
coverbox
_
ug
:n
{
专
\hfill
业
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\songti\nju
_
major
}
\\
% 标题换行
\int
_
case:nn
{
\nju
_
titlelength
}
{
{
1
}
{
\nju
_
coverbox:n
{
题
\hfill
目
}
\nju
_
coverbox
_
ug
:n
{
题
\hfill
目
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
a
}}
\\
}
{
2
}
{
\nju
_
coverbox:n
{
题
\hfill
目
}
\nju
_
coverbox
_
ug
:n
{
题
\hfill
目
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
a
}}
\\
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
b
}}
\\
}
{
3
}
{
\nju
_
coverbox:n
{
题
\hfill
目
}
\nju
_
coverbox
_
ug
:n
{
题
\hfill
目
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
a
}}
\\
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
b
}}
\\
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
c
}}
\\
}
...
...
@@ -41,73 +54,138 @@
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
cp
{
4.2em
}
c
}
\nju
_
coverbox:n
{
年
\hfill
级
}
\nju
_
coverbox
_
ug
:n
{
年
\hfill
级
}
&
\nju
_
cover
_
underline:nn
{
90pt
}{
\nju
_
grade
}
&
\nju
_
coverbox:n
{
学
\hfill
号
}
&
\nju
_
coverbox
_
ug
:n
{
学
\hfill
号
}
&
\nju
_
cover
_
underline:nn
{
90pt
}{
\songti\nju
_
student
_
id
}
\\
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
c
}
\nju
_
coverbox:n
{
学
\hfill
生
\hfill
姓
\hfill
名
}
\nju
_
coverbox
_
ug
:n
{
学
\hfill
生
\hfill
姓
\hfill
名
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\nju
_
student
_
name
}
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
cp
{
4.2em
}
c
}
\nju
_
coverbox:n
{
导
\hfill
师
}
\nju
_
coverbox
_
ug
:n
{
导
\hfill
师
}
&
\nju
_
cover
_
underline:nn
{
90pt
}{
\nju
_
mentor
_
a
}
&
\nju
_
coverbox:n
{
职
\hfill
称
}
&
\nju
_
coverbox
_
ug
:n
{
职
\hfill
称
}
&
\nju
_
cover
_
underline:nn
{
90pt
}{
\nju
_
mentor
_
a
_
title
}
\\
% 第二导师
\bool
_
if:NTF
\nju
_
second
_
mentor
{
\nju
_
coverbox:n
{
第
\hfill
二
\hfill
导
\hfill
师
}
\nju
_
coverbox
_
ug
:n
{
第
\hfill
二
\hfill
导
\hfill
师
}
&
\nju
_
cover
_
underline:nn
{
90pt
}{
\nju
_
mentor
_
b
}
&
\nju
_
coverbox:n
{
职
\hfill
称
}
&
\nju
_
coverbox
_
ug
:n
{
职
\hfill
称
}
&
\nju
_
cover
_
underline:nn
{
90pt
}{
\nju
_
mentor
_
b
_
title
}
\\
}
{}
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
c
}
\nju
_
coverbox:n
{
提
\hfill
交
\hfill
日
\hfill
期
}
\nju
_
coverbox
_
ug
:n
{
提
\hfill
交
\hfill
日
\hfill
期
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\nju
_
submit
_
date
}
\\
\end{tabular}
}
% 判断类型
\str
_
if
_
eq:eeTF
{
\nju
_
degree
}
{
UG
}
{
\tl
_
const:Nn
\nju
_
degree
_
name
{
本
\hfill
科
\hfill
}}{}
% 封面信息栏 硕士
\tl
_
new:N
\nju
_
printcover
_
m
\tl
_
set:Nn
\nju
_
printcover
_
m
{
\begin{tabular}
{
p
{
4.2em
}
c
}
% 标题换行
\int
_
case:nn
{
\nju
_
titlelength
}
{
{
1
}
{
\nju
_
coverbox
_
ug:n
{
论
\hfill
文
\hfill
题
\hfill
目
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
a
}}
\\
}
{
2
}
{
\nju
_
coverbox
_
ug:n
{
论
\hfill
文
\hfill
题
\hfill
目
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
a
}}
\\
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
b
}}
\\
}
{
3
}
{
\nju
_
coverbox
_
ug:n
{
论
\hfill
文
\hfill
题
\hfill
目
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
a
}}
\\
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
b
}}
\\
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\nju
_
title
_
c
}}
\\
}
}
\str
_
if
_
eq:eeTF
{
\nju
_
type
}
{
thesis
}
{
\tl
_
const:Nn
\nju
_
type
_
name
{
\nju
_
degree
_
name 毕
\hfill
业
\hfill
论
\hfill
文
}}
{
\tl
_
const:Nn
\nju
_
type
_
name
{
\nju
_
degree
_
name 毕
\hfill
业
\hfill
设
\hfill
计
}}
\nju
_
coverbox
_
ug:n
{
作
\hfill
者
\hfill
姓
\hfill
名
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\nju
_
student
_
name
}
\\
\nju
_
coverbox
_
ug:n
{
专
\hfill
业
\hfill
名
\hfill
称
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\nju
_
major
}
\\
\nju
_
coverbox
_
ug:n
{
研
\hfill
究
\hfill
方
\hfill
向
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\nju
_
field
}
\\
\nju
_
coverbox
_
ug:n
{
指
\hfill
导
\hfill
教
\hfill
师
}
&
\nju
_
cover
_
underline:nn
{
250pt
}{
\nju
_
mentor
_
a
}
\\
\end{tabular}
}
% 重定义maketitle生成封面
\RenewDocumentCommand
\maketitle
{}
{
%
\thispagestyle
{
empty
}
\pagenumbering
{
Roman
}
% Start
\pdfbookmark
{
封面
}{
封面
}
% 将封面插入pdf书签
\begin{spacing}
{
1.25
}
\vskip
0mm
\hspace
{
-10mm
}
\includegraphics
[height=3cm]
{
njulogo
}
\smallskip
\begin{center}
\includegraphics
[height=3.35cm]
{
njuname
}
\vskip
10mm
{
\zihao
{
1
}
\makebox
[9em][s]
{
\textbf
{
\songti\nju
_
type
_
name
}}}
\vfill
\vskip\stretch
{
0
}
{
\bgroup
\kaishu\zihao
{
3
}
\def\tabcolsep
{
1pt
}
\def\arraystretch
{
1.5
}
\nju
_
cover
_
personalinfo
% 绘制信息框
\egroup
}
\vfill
\end{center}
\end{spacing}
\cleardoublepage
\vfill
% \newpage
\str
_
case
_
e:nn
{
\nju
_
degree
}
{
{
ug
}
{
\thispagestyle
{
empty
}
\pagenumbering
{
Roman
}
% Start
\pdfbookmark
{
封面
}{
封面
}
% 将封面插入pdf书签
\begin{spacing}
{
1.25
}
\vskip
0mm
\hspace
{
-10mm
}
\includegraphics
[height=3cm]
{
njulogo
}
\smallskip
\begin{center}
\includegraphics
[height=3.35cm]
{
njuname
}
\vskip
10mm
{
\zihao
{
1
}
\makebox
[9em][s]
{
\textbf
{
\songti\nju
_
type
_
name
}}}
\vfill
\vskip\stretch
{
0
}
{
\bgroup
\kaishu\zihao
{
3
}
\def\tabcolsep
{
1pt
}
\def\arraystretch
{
1.5
}
\nju
_
printcover
_
ug
% 绘制信息框
\egroup
}
\vfill
\end{center}
\end{spacing}
\cleardoublepage
\vfill
% \newpage
}
% 硕士封面
{
m
}
{
\thispagestyle
{
empty
}
\pagenumbering
{
Roman
}
% Start
\pdfbookmark
{
封面
}{
封面
}
% 将封面插入pdf书签
\begin{spacing}
{
1.25
}
\begin{center}
\includegraphics
[height=1.9cm]
{
njulogo
}
\vskip
10mm
\includegraphics
[height=1.9cm]
{
njuname-large
}
\vskip
10mm
{
\zihao
{
1
}
\makebox
[9em][s]
{
\textbf
{
\kaishu\nju
_
type
_
name
}}}
\vskip
5mm
{
\zihao
{
1
}
\makebox
[9em][s]
{
\textbf
{
\kaishu
{
(申请硕士专业学位)
}}}}
\par
\vfill
\vskip\stretch
{
0
}
{
\bgroup
\kaishu\zihao
{
3
}
\def\tabcolsep
{
1pt
}
\def\arraystretch
{
1.5
}
\vskip
10mm
\nju
_
printcover
_
m
% 绘制信息框
\egroup
}
\vfill
\vskip
10mm
\nju
_
submit
_
date
\vfill
\end{center}
\end{spacing}
\cleardoublepage
\vfill
% \newpage
}
{
d
}
{
}
}
}
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