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
7bfaafc5
Unverified
Commit
7bfaafc5
authored
3 years ago
by
Jinguji
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'nju-lug:master' into master
parents
4c89856d
c1cd3bdb
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
chapters/Environments.tex
+6
-1
6 additions, 1 deletion
chapters/Environments.tex
chapters/Introduction.tex
+5
-3
5 additions, 3 deletions
chapters/Introduction.tex
profile/font.sty
+3
-0
3 additions, 0 deletions
profile/font.sty
with
14 additions
and
4 deletions
chapters/Environments.tex
+
6
−
1
View file @
7bfaafc5
...
...
@@ -138,7 +138,10 @@ sudo apt install ttf-mscorefonts-installer
\subsection
{
修改字体配置
}
如果希望覆盖检测系统字体的命令(譬如在Linux编译时使用Windows字体样式),在
\texttt
{
profile/font.sty
}
中注释掉操作系统判断语句,并保留希望使用的字符集即可。全部字符集命令如下所示。
本模板提供了若干个字体相关的控制选项,已于
\cref
{
sec:classoptions
}
初步进行介绍。如果希望覆盖检测系统字体的命令(譬如在Linux编译时使用Windows字体样式),请将
UseSysFont设置为false,并通过CustomEnFont和CustomZhFont进行选择。
全部字符集命令如下所示。
\begin{description}
\item
[\texttt{\textbackslash set\textunderscore latin\textunderscore fontset\textunderscore windows}]
Windows英文字符集
...
...
@@ -150,3 +153,5 @@ sudo apt install ttf-mscorefonts-installer
\item
[\texttt{\textbackslash set\textunderscore chinese\textunderscore fontset\textunderscore founder}]
方正中文字符集
\item
[\texttt{\textbackslash set\textunderscore chinese\textunderscore fontset\textunderscore noto}]
思源中文字符集
\end{description}
对于需要进一步自定义的同学,可以将CustomEnFont和CustomZhFont设置为null,自行在导言区设置字体。
This diff is collapsed.
Click to expand it.
chapters/Introduction.tex
+
5
−
3
View file @
7bfaafc5
...
...
@@ -13,7 +13,7 @@
\label
{
sec:directory
}
\begin{lstlisting}
[language=bash]
│ coverinfo.
sty
│ coverinfo.
tex
│ njuthesis.bib
│ njuthesis.cls
│ njuthesis.tex
...
...
@@ -46,10 +46,12 @@
\section
{
自定义选项
}
\label
{
sec:classoptions
}
njuthesis类提供了
三
个可以自定义的选项,如下所示。
njuthesis类提供了
5
个可以自定义的选项,如下所示。
\begin{description}
\item
[\texttt{TitleLength}]
标题长度,用于控制封面标题的行数。可选值为1、2、3,缺省值为1。
\item
[\texttt{Degree}]
学位类型,本科生为UG,即Undergraduate的缩写。
\item
[\texttt{Type}]
用于选择文档类型并将相关字段输出在封面和摘要页。可选值包括thesis(表示毕业论文)和design(表示毕业设计),缺省值为thesis。
\item
[\texttt{Type}]
用于选择文档类型并将相关字段输出在封面和摘要页。可选值包括thesis(表示毕业论文)和design(表示毕业设计),缺省值为thesis。
\item
[\texttt{UseSysFont}]
Bool类型,用于选择是否使用系统预装字体,缺省值为true。
\item
[\texttt{CustomEnFont}]
用于选择自定义英文字符集。可选值包括windows, macos, gyre, null,缺省值为windows。
\item
[\texttt{CustomZhFont}]
用于选择自定义中文字符集。可选值包括windows, macos, fandol, founder, noto, null,缺省值为windows。
\end{description}
This diff is collapsed.
Click to expand it.
profile/font.sty
+
3
−
0
View file @
7bfaafc5
...
...
@@ -189,11 +189,13 @@
\tl
_
const:Nn
\usinggyre
{
gyre
}
\tl
_
const:Nn
\usingfounder
{
founder
}
\tl
_
const:Nn
\usingnoto
{
noto
}
\tl
_
const:Nn
\usingnull
{
null
}
\tl
_
case:Nn
{
\CustomEnFont
}
{
\usingwindows
{
\set
_
latin
_
fontset
_
windows
}
\usingmacos
{
\set
_
latin
_
fontset
_
macos
}
\usinggyre
{
\set
_
latin
_
fontset
_
gyre
}
\usingnull
{}
}
\tl
_
case:Nn
{
\CustomZhFont
}
{
...
...
@@ -202,6 +204,7 @@
\usingfandol
{
\set
_
chinese
_
fontset
_
fandol
}
\usingfounder
{
\set
_
chinese
_
fontset
_
founder
}
% 使用方正字体
\usingnoto
{
\set
_
chinese
_
fontset
_
noto
}
% 使用思源宋体+思源黑体
\usingnull
{}
}
\fi
% 选择其他字体,请确保相应字体已安装
...
...
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