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
f4397a95
Commit
f4397a95
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
refactor: cls代码样式调整
parent
61abd1ca
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.cls
+21
-17
21 additions, 17 deletions
njuthesis.cls
njuthesis.dtx
+4
-2
4 additions, 2 deletions
njuthesis.dtx
with
25 additions
and
19 deletions
njuthesis.cls
+
21
−
17
View file @
f4397a95
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
%%
%%
\NeedsTeXFormat
{
LaTeX2e
}
\NeedsTeXFormat
{
LaTeX2e
}
\RequirePackage
{
expl3
}
\RequirePackage
{
expl3
}
\GetIdInfo
$
Id: njuthesis.dtx
0
.
9
.
0
202
0
-
09
-
15
12
:
00
:
00
+
0800
NJU LUG <my@yaoge
123
.com>
$
\GetIdInfo
$
Id: njuthesis.dtx
0
.
9
.
0
202
1
-
09
-
15
12
:
00
:
00
+
0800
NJU LUG <my@yaoge
123
.com>
$
{
Thesis template for Nanjing University
}
{
Thesis template for Nanjing University
}
\ProvidesExplClass
{
\ExplFileName
}{
\ExplFileDate
}{
\ExplFileVersion
}{
\ExplFileDescription
}
\ProvidesExplClass
{
\ExplFileName
}{
\ExplFileDate
}{
\ExplFileVersion
}{
\ExplFileDescription
}
\LoadClass
[
\LoadClass
[
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
twoside,
twoside,
UTF8,
UTF8,
scheme=chinese,
scheme=chinese,
linespread=1.625,
% laTex默认1.2行距,word默认行距是1.3,要求1.5倍word行距,故1.5/1.2*1.3 = 1.625
linespread=1.625,
fontset=none,
fontset=none,
zihao=-4
zihao=-4
]
{
ctexbook
}
[2018/04/01]
]
{
ctexbook
}
[2018/04/01]
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
\RequirePackage
{
siunitx
}
% 用于书写单位符号
\RequirePackage
{
siunitx
}
% 用于书写单位符号
\RequirePackage
[version=4]
{
mhchem
}
% 用于绘制分子式
\RequirePackage
[version=4]
{
mhchem
}
% 用于绘制分子式
\RequirePackage
{
hologo
}
\RequirePackage
{
hologo
}
\sys
_
if
_
engine
_
xetex:T
\sys
_
if
_
engine
_
xetex:T
{
{
\RequirePackage
{
microtype
}
\RequirePackage
{
microtype
}
...
@@ -204,10 +205,12 @@
...
@@ -204,10 +205,12 @@
\setCJKfamilyfont
{
zhhei
}{
SimHei
}
\setCJKfamilyfont
{
zhhei
}{
SimHei
}
\setCJKfamilyfont
{
zhfs
}{
FangSong
}
\setCJKfamilyfont
{
zhfs
}{
FangSong
}
\setCJKfamilyfont
{
zhkai
}{
KaiTi
}
[AutoFakeBold=2.17]
\setCJKfamilyfont
{
zhkai
}{
KaiTi
}
[AutoFakeBold=2.17]
\setCJKfamilyfont
{
zhnewhei
}{
Microsoft~YaHei
}
[BoldFont=Microsoft~YaHei~Bold]
\setCJKfamilyfont
{
zhnewhei
}{
Microsoft~YaHei
}
[
BoldFont=Microsoft~YaHei~Bold]
}
}
\NewDocumentCommand\set
_
chinese
_
fontset
_
macos
{}{
\NewDocumentCommand\set
_
chinese
_
fontset
_
macos
{}{
\msg
_
redirect
_
name:nnn
{
fontspec
}
{
no-script
}
{
info
}
% 移除 does not contain script "CJK" 警告
% 移除 does not contain script "CJK" 警告
\msg
_
redirect
_
name:nnn
{
fontspec
}
{
no-script
}
{
info
}
\setCJKmainfont
{
Songti~SC~Light
}
[
\setCJKmainfont
{
Songti~SC~Light
}
[
BoldFont=Songti~SC~Bold,
BoldFont=Songti~SC~Bold,
ItalicFont=Kaiti~SC,
ItalicFont=Kaiti~SC,
...
@@ -231,7 +234,8 @@
...
@@ -231,7 +234,8 @@
\setCJKfamilyfont
{
zhnewhei
}{
PingFang~SC
}
\setCJKfamilyfont
{
zhnewhei
}{
PingFang~SC
}
}
}
\NewDocumentCommand\set
_
chinese
_
fontset
_
fandol
{}{
\NewDocumentCommand\set
_
chinese
_
fontset
_
fandol
{}{
\msg
_
redirect
_
name:nnn
{
fontspec
}
{
no-script
}
{
info
}
% 移除 does not contain script "CJK" 警告
% 移除 does not contain script "CJK" 警告
\msg
_
redirect
_
name:nnn
{
fontspec
}
{
no-script
}
{
info
}
\setCJKmainfont
{
FandolSong-Regular
}
[
\setCJKmainfont
{
FandolSong-Regular
}
[
Extension=.otf,
Extension=.otf,
BoldFont=FandolSong-Bold,
BoldFont=FandolSong-Bold,
...
@@ -252,9 +256,6 @@
...
@@ -252,9 +256,6 @@
AutoFakeBold=2.17]
AutoFakeBold=2.17]
}
}
\NewDocumentCommand\set
_
chinese
_
fontset
_
founder
{}{
\NewDocumentCommand\set
_
chinese
_
fontset
_
founder
{}{
% FZSSK 方正书宋(简繁扩展) http://www.foundertype.com/index.php/FontInfo/index/id/151 免费商用
% FZXBSK 方正小标宋(简繁扩展) http://www.foundertype.com/index.php/FontInfo/index/id/164 设计师非商免费
% FZKTK 方正楷体(简繁扩展) http://www.foundertype.com/index.php/FontInfo/index/id/137 免费商用
\setCJKmainfont
{
FZSSK
}
[
\setCJKmainfont
{
FZSSK
}
[
Extension=.ttf,
Extension=.ttf,
BoldFont=FZXBSK,
BoldFont=FZXBSK,
...
@@ -486,8 +487,10 @@
...
@@ -486,8 +487,10 @@
ibidtracker=context,
ibidtracker=context,
autopunct=true,
autopunct=true,
autocite=plain,
autocite=plain,
% gbpub=false, % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47)
% gbpub=false, % Uncomment if you do NOT want '[S.l. : s.n.]'
% gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23)
% in reference entries, GitHub Issue (#47)
% gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author
% names in reference entries, GitHub Issue (#23)
]
{
biblatex
}
]
{
biblatex
}
\AtEveryBibitem
{
\AtEveryBibitem
{
\clearfield
{
abstract
}
\clearfield
{
abstract
}
...
@@ -904,7 +907,6 @@ numberwithin=section,
...
@@ -904,7 +907,6 @@ numberwithin=section,
\cleardoublepage
\cleardoublepage
}
}
}
}
\tl
_
set:Nn
\nju
_
printcover
_
ug
\tl
_
set:Nn
\nju
_
printcover
_
ug
{
{
\thispagestyle
{
empty
}
\thispagestyle
{
empty
}
...
@@ -934,7 +936,6 @@ numberwithin=section,
...
@@ -934,7 +936,6 @@ numberwithin=section,
% \vfill
% \vfill
% \newpage
% \newpage
}
}
\tl
_
set:Nn
\nju
_
printcover
_
g
\tl
_
set:Nn
\nju
_
printcover
_
g
{
{
\thispagestyle
{
empty
}
\thispagestyle
{
empty
}
...
@@ -985,7 +986,6 @@ numberwithin=section,
...
@@ -985,7 +986,6 @@ numberwithin=section,
\end{spacing}
\end{spacing}
\cleardoublepage
\cleardoublepage
}
}
\tl
_
set:Nn
\maketitle
\tl
_
set:Nn
\maketitle
{
%
{
%
\str
_
if
_
eq:NNTF
{
\nju
_
degree
}
{
ug
}
\str
_
if
_
eq:NNTF
{
\nju
_
degree
}
{
ug
}
...
@@ -1008,7 +1008,8 @@ numberwithin=section,
...
@@ -1008,7 +1008,8 @@ numberwithin=section,
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark
[0]
{
中文摘要
}{
中文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\pdfbookmark
[0]
{
中文摘要
}{
中文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\begin{center}
\begin{center}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学本科生毕业论文(设计、作品)中文摘要
}}}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学本科生毕业论文(设计、作品)中文摘要
}}}
\end{center}
\end{center}
{
\bgroup
{
\bgroup
\kaishu\zihao
{
-4
}
\kaishu\zihao
{
-4
}
...
@@ -1041,7 +1042,8 @@ numberwithin=section,
...
@@ -1041,7 +1042,8 @@ numberwithin=section,
% \phantomsection\addcontentsline{toc}{chapter}{英文摘要} % 将摘要插入目录和pdf书签
% \phantomsection\addcontentsline{toc}{chapter}{英文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark
[0]
{
英文摘要
}{
英文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\pdfbookmark
[0]
{
英文摘要
}{
英文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\begin{center}
\begin{center}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学本科生毕业论文(设计、作品)英文摘要
}}}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学本科生毕业论文(设计、作品)英文摘要
}}}
\end{center}
\end{center}
{
{
\bgroup
\bgroup
...
@@ -1074,7 +1076,8 @@ numberwithin=section,
...
@@ -1074,7 +1076,8 @@ numberwithin=section,
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark
[0]
{
中文摘要
}{
中文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\pdfbookmark
[0]
{
中文摘要
}{
中文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\begin{center}
\begin{center}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学研究生毕业论文中文摘要首页用纸
}}}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学研究生毕业论文中文摘要首页用纸
}}}
\end{center}
\end{center}
\bgroup
\bgroup
...
@@ -1107,7 +1110,8 @@ numberwithin=section,
...
@@ -1107,7 +1110,8 @@ numberwithin=section,
% \phantomsection\addcontentsline{toc}{chapter}{英文摘要} % 将摘要插入目录和pdf书签
% \phantomsection\addcontentsline{toc}{chapter}{英文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark
[0]
{
英文摘要
}{
英文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\pdfbookmark
[0]
{
英文摘要
}{
英文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\begin{center}
\begin{center}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学研究生毕业论文英文摘要首页用纸
}}}
\kaishu\zihao
{
-2
}{
\textbf
{
\uuline
{
南京大学研究生毕业论文英文摘要首页用纸
}}}
\end{center}
\end{center}
{
{
\bgroup
\bgroup
...
...
This diff is collapsed.
Click to expand it.
njuthesis.dtx
+
4
−
2
View file @
f4397a95
...
@@ -1249,8 +1249,10 @@ through XeTeX.
...
@@ -1249,8 +1249,10 @@ through XeTeX.
ibidtracker=context,
ibidtracker=context,
autopunct=true,
autopunct=true,
autocite=plain,
autocite=plain,
% gbpub=false, % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47)
% gbpub=false, % Uncomment if you do NOT want '[S.l. : s.n.]'
% gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23)
% in reference entries, GitHub Issue (#47)
% gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author
% names in reference entries, GitHub Issue (#23)
]{biblatex}
]{biblatex}
% \end{macrocode}
% \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