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
Danson Liao
NJUThesis
Commits
b52b4743
Commit
b52b4743
authored
3 years ago
by
Koishi Jinguji
Browse files
Options
Downloads
Patches
Plain Diff
fix:更新字体配置
parent
c174f0c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
profile/font.sty
+15
-11
15 additions, 11 deletions
profile/font.sty
with
15 additions
and
11 deletions
profile/font.sty
+
15
−
11
View file @
b52b4743
...
@@ -151,32 +151,36 @@
...
@@ -151,32 +151,36 @@
\setCJKfamilyfont
{
zhkai
}{
方正楷体简体
}
[AutoFakeBold=2.17]
\setCJKfamilyfont
{
zhkai
}{
方正楷体简体
}
[AutoFakeBold=2.17]
}
}
% 根据操作系统选择相应字体
% 检测是否是 Windows
% 检测是否是 Windows
\sys
_
if
_
platform
_
windows:TF
\sys
_
if
_
platform
_
windows:TF
{
{
\set
_
latin
_
fontset
_
windows
\set
_
latin
_
fontset
_
windows
\set
_
chinese
_
fontset
_
windows
\set
_
chinese
_
fontset
_
windows
}
}
% 检测是否是 macOS
\ctex
_
if
_
platform
_
macos:TF
{
{
% 检测是否是 MacOS
\set
_
latin
_
fontset
_
macos
\ctex
_
if
_
platform
_
macos:TF
\set
_
chinese
_
fontset
_
macos
{
}
\set
_
latin
_
fontset
_
macos
% 其余系统一律使用自由字体
\set
_
chinese
_
fontset
_
macos
{
}
\set
_
latin
_
fontset
_
gyre
% 其余系统一律使用自由字体
\set
_
chinese
_
fontset
_
fandol
{
\set
_
latin
_
fontset
_
gyre
\set
_
chinese
_
fontset
_
fandol
}
}
}
% 选择其他字体,请确保相应字体已安装并自行取消注释
% 使用方正字体
% 使用方正字体
% \set_chinese_fontset_founder
% \set_chinese_fontset_founder
% 使用思源宋体+思源黑体
% 使用思源宋体+思源黑体
% \set_chinese_fontset_noto
% \set_chinese_fontset_noto
% 我是 Linux 用户,但我用 Windows 字体(请您赶快坐到主席台上来)
% \set_latin_fontset_windows
% \set_chinese_fontset_windows
\NewDocumentCommand\songti
{}{
\CJKfamily
{
zhsong
}}
\NewDocumentCommand\songti
{}{
\CJKfamily
{
zhsong
}}
\NewDocumentCommand\heiti
{}{
\CJKfamily
{
zhhei
}}
\NewDocumentCommand\heiti
{}{
\CJKfamily
{
zhhei
}}
\NewDocumentCommand\fangsong
{}{
\CJKfamily
{
zhfs
}}
\NewDocumentCommand\fangsong
{}{
\CJKfamily
{
zhfs
}}
...
...
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