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
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
Wendi Zheng
NJUThesis
Commits
3c8e3a4d
Commit
3c8e3a4d
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
feature: 实现多行标题的手动选择功能
parent
2898095e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
njuthesis.cls
+6
-1
6 additions, 1 deletion
njuthesis.cls
njuthesis.tex
+6
-3
6 additions, 3 deletions
njuthesis.tex
profile/format/cover.tex
+36
-13
36 additions, 13 deletions
profile/format/cover.tex
with
48 additions
and
17 deletions
njuthesis.cls
+
6
−
1
View file @
3c8e3a4d
...
...
@@ -15,13 +15,16 @@
% 输入配置文件
\input
{
profile/profile.cls
}
\DeclareStringOption
[1]
{
TitleLength
}
\DeclareStringOption
[thesis]
{
Type
}
\DeclareStringOption
{
Department
}
\DeclareStringOption
{
Department
_
EN
}
\DeclareStringOption
{
Major
}
\DeclareStringOption
{
Major
_
EN
}
\DeclareStringOption
{
Title
}
\DeclareStringOption
{
TitleOne
}
\DeclareStringOption
{
TitleTwo
}
\DeclareStringOption
{
TitleThree
}
\DeclareStringOption
{
Title
_
EN
}
\DeclareStringOption
{
Grade
}
\DeclareStringOption
{
StudentID
}
...
...
@@ -34,6 +37,8 @@
\DeclareStringOption
{
SubmitDate
}
\DeclareStringOption
[本科]
{
Degree
}
% \Title定义需要latex3,暂存于cover.tex
\ProcessKeyvalOptions*
\ifthenelse
{
\equal
{
\Type
}{
thesis
}}
...
...
This diff is collapsed.
Click to expand it.
njuthesis.tex
+
6
−
3
View file @
3c8e3a4d
\documentclass
[
Title = 曲率引擎的研究,
%标题
TitleLength = 1,
% 选择标题行数,范围是1~3
TitleOne = 曲率引擎的研究,
% 第一行标题
TitleTwo =,
% 第二行标题
TitleThree =,
% 第三行标题
Title
_
EN = Curvature engine research,
Grade = 17,
StudentID = 17184xxx,
...
...
@@ -14,8 +17,8 @@
MentorTitle = 教授,
MentorTitle
_
EN = Professor,
SubmitDate = 2077年12月31日,
Degree = 本科,
%学位
Type = thesis
% thesis:毕业论文,design:毕业设计
Degree = 本科,
%
学位
Type = thesis
% thesis:毕业论文,design:毕业设计
]
{
njuthesis
}
\addbibresource
{
njuthesis.bib
}
...
...
This diff is collapsed.
Click to expand it.
profile/format/cover.tex
+
36
−
13
View file @
3c8e3a4d
% 封面下划线
\cs
_
new:Npn
\cover
_
underline:nn #1 #2
{
\uline
{
\makebox
[#1]
{
#2
}}
\uline
{
\makebox
[#1]
{
#2
}}
}
% 封面表格边框
\cs
_
new:Npn
\coverbox
:n #1
{
\makebox
[4.2em][s]
{
#1
}
}
% 将三行标题拼接为一行
\tl
_
new:N
\Title
\tl
_
set:Nn
\Title
{
\TitleOne\TitleTwo\TitleThree
}
% 封面标题
\tl
_
new:N
\cover
_
oneline
_
title
\tl
_
set:Nn
\cover
_
oneline
_
title
{
\begin{tabular}
{
p
{
4.2em
}
c
}
\
makebox
[4.2em][s]
{
院系
}
\
coverbox
:n
{
院系
}
&
\cover
_
underline:nn
{
250pt
}{
\songti\Department
}
\\
\
makebox
[4.2em][s]
{
专业
}
\
coverbox
:n
{
专业
}
&
\cover
_
underline:nn
{
250pt
}{
\songti\Major
}
\\
\makebox
[4.2em][s]
{
题目
}
&
\cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\Title
}}
\coverbox
:n
{
题目
}
&
\cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\TitleOne
}}
\\
\ifnum\TitleLength
=2
% 标题行数选择
\coverbox
:n
{}
&
\cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\TitleTwo
}}
\\
\fi
\ifnum\TitleLength
=3
\coverbox
:n
{}
&
\cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\TitleTwo
}}
\\
\coverbox
:n
{}
&
\cover
_
underline:nn
{
250pt
}{
\textbf
{
\songti\TitleThree
}}
\\
\fi
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
cp
{
4.2em
}
c
}
\
makebox
[4.2em][s]
{
年级
}
\
coverbox
:n
{
年级
}
&
\cover
_
underline:nn
{
90pt
}{
\Grade
}
&
\
makebox
[4.2em][s]
{
学号
}
&
\
coverbox
:n
{
学号
}
&
\cover
_
underline:nn
{
90pt
}{
\songti\StudentID
}
\\
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
c
}
\
makebox
[4.2em][s]
{
学生姓名
}
\
coverbox
:n
{
学生姓名
}
&
\cover
_
underline:nn
{
250pt
}{
\StudentName
}
\end{tabular}
\\
\begin{tabular}
{
p
{
4.2em
}
cp
{
4.2em
}
c
}
\
makebox
[4.2em][s]
{
导师
}
\
coverbox
:n
{
导师
}
&
\cover
_
underline:nn
{
90pt
}{
\Mentor
}
&
\
makebox
[4.2em][s]
{
职称
}
&
\
coverbox
:n
{
职称
}
&
\cover
_
underline:nn
{
90pt
}{
\MentorTitle
}
\\
\end{tabular}
\\
% % 第二导师
% \ifnjut@title@twosupervisors
% \begin{tabular}{p{4.2em}cp{4.2em}c}
% \
makebox[4.2em][s]
{\njut@cap@cover@secondsupervisor}
% \
coverbox:n
{\njut@cap@cover@secondsupervisor}
% & \njutunderline[90pt]{\songti\njut@value@secondsupervisor}
% & \
makebox[4.2em][s]
{\njut@cap@cover@secondsupervisortitle}
% & \
coverbox:n
{\njut@cap@cover@secondsupervisortitle}
% & \njutunderline[90pt]{\songti\njut@value@secondsupervisortitle}\\
% \end{tabular}
% \fi
\begin{tabular}
{
p
{
4.2em
}
c
}
\
makebox
[4.2em][s]
{
提交日期
}
\
coverbox
:n
{
提交日期
}
&
\cover
_
underline:nn
{
250pt
}{
\SubmitDate
}
\\
\end{tabular}
}
...
...
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