-
Notifications
You must be signed in to change notification settings - Fork 320
Expand file tree
/
Copy pathnsfc.sty
More file actions
executable file
·506 lines (462 loc) · 17.6 KB
/
Copy pathnsfc.sty
File metadata and controls
executable file
·506 lines (462 loc) · 17.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nsfc}[2026/01/22 NSFC 面青地]
\makeatletter
%选项选择:kai输出正文MS楷体;song输出正文MS宋体
\newif\ifMS@kai
\newif\ifMS@song
\MS@kaitrue%默认正文楷体
%选项选择:on输出正文MS文字;off不输出正文MS文字
\newif\ifMS@on
\newif\ifMS@off
\MS@kaitrue%默认正文楷体
%------------------------
%xcolor命令
%------------------------
%颜色
\usepackage{xcolor}
\definecolor{NSFblue}{RGB}{0, 112, 192}
\definecolor{NSFred}{RGB}{255, 0, 0}
%\definecolor{NSFblue}{RGB}{0,0,0}
\definecolor{HighLight}{RGB}{0,31,141}
%========导入用户的自定义设置========
\IfFileExists{sections/个性化设置.sty}{
\usepackage{sections/个性化设置}
}{
%【1】标题颜色
\definecolor{HighLight}{RGB}{0,0,0}
%【2】正文字体设置
\global\MS@kaitrue\global\MS@songfalse%楷体正文
%\global\MS@kaifalse\global\MS@songtrue%宋体正文
%【3】是否屏蔽正文
\global\MS@offtrue\global\MS@onfalse%屏蔽正文
%\global\MS@ontrue\global\MS@offfalse%不屏蔽正文
%【4】设置数学字体
\global\def\selectedmathfont{latinmodern-math}
}
\ifMS@kai%处理用户字体
\def\MSzh{\zhkai}
\def\MSen{\ensong}
\else
\ifMS@song
\def\MSzh{\zhsong}
\def\MSen{\ensong}
\else
\def\MSzh{\zhkai} % fallback
\def\MSen{\ensong}
\fi
\fi
\ifMS@off%处理用户输出
\AtBeginDocument{%
\renewcommand{\input}[1]{\vspace{0.9\baselineskip}}%
}
\fi
%------------------------
%xeCJK包的命令;要放到最前
%------------------------
\usepackage{xeCJK}
\defaultfontfeatures{Mapping=tex-text}%连字符
%特殊符号的宽度
\xeCJKsetwidth{、,。;()}{1.18em}%符号宽度,可添加‘’“”
\xeCJKsetup{CJKecglue = \hspace{0.3em}}%中英文间空格的宽度
%\xeCJKsetup{CJKglue = \hspace{0.3em}}%微调中文内部间距【但是ctex完全禁用了
%------------------------
%字体设置
%------------------------
\usepackage{fontspec}
%注意,只有字体本身有粗斜体,或都是粗体斜体都是fake的,才能输出粗斜体
\DeclareOption{windows}{%windows
%微软楷体字
\setCJKfamilyfont{WINkai}[%中文
Path=./fonts/,
AutoFakeSlant=0.3,
AutoFakeBold=3,
Scale = 0.98%微调字体胖瘦
]{simkai.ttf}
%]{HYKaiTiJ.ttf}
\newfontfamily{\WINkai}[%英文
Path=./fonts/,
AutoFakeSlant=0.3,
AutoFakeBold=3,
]{simkai.ttf}
%微软宋体
\setCJKfamilyfont{WINsong}[%中文
Path=./fonts/,
AutoFakeSlant=0.3,
AutoFakeBold=3,
]{simsun.ttc}
%\newfontfamily{\WINsong}[%英文
%Path = ./fonts/,
%UprightFont = TimesNewRoman.ttf,
%BoldFont = TimesNewRomanBold.ttf,
%ItalicFont = TimesNewRomanItalic.ttf,
%BoldItalicFont = TimesNewRomanBoldItalic.ttf
%]{Times New Roman}
\newfontfamily{\WINsong}[%英文
Path=./fonts/,
AutoFakeSlant=0.3,
AutoFakeBold=3,
]{TimesNewRoman.ttf}
\newfontfamily\wingdingsfont[Path=./fonts/]{Wingdings.ttf}
%设置模版字体
\newcommand{\zhkai}{\CJKfamily{WINkai}}
\newcommand{\enkai}{\WINkai}
%
\newcommand{\zhsong}{\CJKfamily{WINsong}}
\newcommand{\ensong}{\WINsong}
}
\DeclareOption{macos}{%macos
%本机楷体
\setCJKfamilyfont{MACkai}[%中文
BoldFont = * Black,%
AutoFakeSlant=0.3,
Scale = 0.97%微调字体胖瘦
]{Kaiti SC}
\newfontfamily{\MACkai}[%英文
]{Cambria}
%本机宋体
\setCJKfamilyfont{MACsong}[%中文
UprightFont = * Light,
BoldFont = * Bold,
AutoFakeSlant=0.3,
]{Songti SC}
\newfontfamily{\MACsong}[%英文
]{Cambria}%Times New Roman
\font\symWingdings = "Wingdings"%
%本机指开发者自己的macOS电脑
%- [ ] 系统自带字体:
%/System/Library/Fonts/
%/Library/Fonts/
%- [ ] 随系统更新会更换的字体:
%/System/Library/Assets类似/com_apple_MobileAsset_Font5类似
%-若要使用这个字体,需要及时更新MiKTeX字体配置文件~/Library/Application Support/MiKTeX/texmfs/config/fontconfig/config/localfonts2.conf文件内容
%设置模版字体
% 默认是macOS系统,使用本机自带字体
\newcommand{\zhkai}{\CJKfamily{MACkai}}
\newcommand{\enkai}{\MACkai}
%
\newcommand{\zhsong}{\CJKfamily{MACsong}}
\newcommand{\ensong}{\MACsong}
}
\ProcessOptions\relax
%查看本机字体的方式
%打开程序“字体册.app”,看看本机都有什么字体,修改成对应的字体名称即可。
%\setCJKsansfont[BoldFont=* Medium]{Heiti SC}
%\setCJKfamilyfont{zhsong}[
% UprightFont = * Light,
% BoldFont = * Bold,
%]{Songti SC}
%\setCJKfamilyfont{zhhei}[BoldFont=* Medium]{Heiti SC}
%\setCJKmainfont[
% Path=./fonts/,%系统自带Songti SC
% UprightFont = * Light,
% BoldFont = * Bold,
% AutoFakeSlant=0.3,
% BoldItalicFont = Kaiti SC Bold,
%]{Songti SC}
%字号
%初号42pt,小初36pt,一号26pt,小一24pt,二号22pt,小二18pt
%三号16pt,小三15pt,四号14pt,小四号 12pt,五号 10.5pt
%小五9pt,六号 7.5pt ,小六6.5pt,七号 5.5pt ,八号5pt
%------------------------
%模版部分
%------------------------
% For the chapter name like (一)立项依据与研究内容(4000-8000字)
\let\origchapter\chapter
\renewcommand\chapter{\@ifstar{\starchapter}{\nostarchapter}}
\newcommand\nostarchapter[2][0pt]{%
\refstepcounter{chapter}\begingroup
%\vspace{5pt}
\color{NSFblue}\zhkai\enkai\fontsize{14.2pt}{22pt}\selectfont%
\setlength{\baselineskip}{22pt}%最后设置,防止被fontsize中的覆盖
\par\noindent\textbf{\hspace{28pt}\hspace*{#1}(\chinese{chapter})}#2\par
\vspace{0pt}
\endgroup}
\newcommand\starchapter[1]{\vspace{-1em}\origchapter*{#1}\vspace{-0em}}
%根据是否在MS环境中切换section颜色,防止专家以为还是采用的旧模版
\newif\ifinMS
\inMSfalse
% For the section name like 2.项目的研究内容、研究目标,以及拟解决的关键科学问题(此部分为重点阐述内容);
\let\origsection\section
\renewcommand\section{%
\@ifstar{\origsection*}%
{\@ifnextchar[{\sectionwithopt}{\sectiondefault}}%
}
\def\sectionwithopt[#1]#2{%
\sectiondo{#1}{#2}%
}
\def\sectiondefault#1{%
\sectiondo{h}{#1}%默认 h = half(半角点)
}
\def\sectiondo#1#2{%
\refstepcounter{section}%
\begingroup
\ifinMS%判断是否在MS中
\color{HighLight}\MSzh\MSen\fontsize{14.2pt}{22pt}\selectfont%
\else
\color{NSFblue}\zhkai\enkai\fontsize{14.2pt}{22pt}\selectfont%
\fi
\setlength{\baselineskip}{22pt}%最后设置,防止被fontsize中的覆盖
\par\indent
\arabic{section}%
\ifx#1f.\else.\fi#2\par
\endgroup
}
%\let\origsection\section%26年,只有面上这里是全角点,其他都是半角点,所以需要重新定义,引入一个可选参数。参见上述部分。
%\renewcommand\section{\@ifstar{\starsection}{\nostarsection}}
%\newcommand\nostarsection[1]{%
% \refstepcounter{section}\begingroup
% \ifinMS%判断是否在MS中
% \color{HighLight}
% \MSzh\MSen\fontsize{14.2pt}{22pt}\selectfont%
% \else
% \color{NSFblue}
% \zhkai\enkai\fontsize{14.2pt}{22pt}\selectfont%
% \fi%
% \setlength{\baselineskip}{22pt}%最后设置,防止被fontsize中的覆盖
% \par\indent\arabic{section}.#1\par%24年全角点;25年半角点;
% % \vspace{11pt}
% \endgroup}
%\newcommand\starsection[1]{%
% \begingroup
% \ifinMS\color{HighLight}\else\color{NSFblue}\fi%
% \origsection*{#1}%
% \endgroup
%}
%------------------------
%正文部分的标题
%------------------------
\let\origsubsection\subsection
\renewcommand\subsection{\@ifstar{\starsubsection}{\nostarsubsection}}
\newcommand\nostarsubsection[1]{%
\refstepcounter{subsection}\begingroup\color{HighLight}
\vspace{6pt}
\MSzh\MSen\fontsize{13pt}{22pt}\selectfont%\bfseries%
\setlength{\baselineskip}{22pt}%最后设置,防止被fontsize中的覆盖
\par\indent\hspace{3pt}\arabic{section}.\arabic{subsection}#1\par
\vspace{2pt}
\endgroup}
%\newcommand\nostarsubsection[1]{\vspace{-1em}\origsubsection*{#1}\vspace{-0em}}
\newcommand\starsubsection[1]{%
\begingroup\color{HighLight}
\vspace{6pt}
%\stepcounter{subsection}
\MSzh\MSen\fontsize{13pt}{22pt}\selectfont\bfseries%
\setlength{\baselineskip}{22pt}%最后设置,防止被fontsize中的覆盖
% \par\noindent\arabic{section}.\arabic{subsection}#1\par
\par\noindent#1\par
\vspace{2pt}
\endgroup}
\let\origsubsubsection\subsubsection
\renewcommand\subsubsection{\@ifstar{\starsubsubsection}{\nostarsubsubsection}}
\newcommand\nostarsubsubsection[1]{%
\refstepcounter{subsubsection}\begingroup\color{HighLight}
\MSzh\MSen\fontsize{13pt}{22pt}\selectfont%
\setlength{\baselineskip}{22pt}%最后设置,防止被fontsize中的覆盖
\par\indent\hspace{0.1pt}(\arabic{subsubsection})#1\par%1.1下(1)样式三级标题
% \par\noindent\arabic{section}.\arabic{subsection}.\arabic{subsubsection}#1\par%1.1.1样式三级标题
% \vspace{11pt}
\endgroup}
\newcommand\starsubsubsection[1]{%
\refstepcounter{subsubsection}\begingroup\color{HighLight}
\vspace{2pt}
\MSzh\MSen\fontsize{12.5pt}{22pt}\selectfont%
\setlength{\baselineskip}{20pt}%最后设置,防止被fontsize中的覆盖
\par\indent#1\par
%\vspace{-1pt}
\endgroup}
%章节引用格式
\renewcommand\thesection{\arabic{section}.}%节样式:1.
\renewcommand\thesubsection{\arabic{section}.\arabic{subsection}}%小节样式:1.1
\renewcommand\thesubsubsection{\arabic{section}.\arabic{subsection} (\arabic{subsubsection})}%小小节样式:1.1(1)
%\renewcommand\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}%小小节样式:1.1.1样式
%------------------------
%正文段落
%------------------------
\newenvironment{MS}%
{\begingroup\MSzh\ensong\fontsize{12.5pt}{23pt}\selectfont%段落:中文楷体/宋体,英文宋体
\setlength{\baselineskip}{23pt}
\everydisplay=\expandafter{\the\everydisplay\setstretch{1}%重置正文行间距对数学公式行间距影响
%公式上下间距,不需要设置,想设置可以设置
\fontsize{12.5pt}{23pt}\selectfont%根据第一个参数选择DeclareMathSizes的后三个参数字体
\setlength{\abovedisplayskip}{10pt}
\setlength{\belowdisplayskip}{7pt}%
\setlength{\abovedisplayshortskip}{0pt}%对于上一行半行文本的情况
\setlength{\belowdisplayshortskip}{5pt}%%对于下一行半行文本的情况
}\inMStrue}
{\inMSfalse\endgroup}
%CTEX包自动引用xeCJK包,文档查看xeCJK
%------------------------
%文字标注
%------------------------
%CJKunderdot,CJKunderline,CJKunderdblline,CJKunderwave
\usepackage{xeCJKfntef} %可自动换行的文字下划线
\newcommand{\textul}[1]{\CJKunderline[skip=false]{#1}}%下划线
\newcommand{\textull}[1]{\CJKunderdblline[skip=false]{#1}}%下划线
\newcommand{\textuw}[1]{\CJKunderwave[format=\color{blue},depth=0.35em]{#1}}%下弯线
\newcommand{\textud}[1]{\CJKunderdot[format=\color{blue},depth=0.35em]{#1}}%下点线
%在Word中我们只要选中孤行控制,Word就不会将一段的第一行或者最后一行放在不同的页面。Latex中好像没有相应的命令。Latex只是尽量防止孤行,当避免孤行会导致大量的页面空白的时候,Latex会放弃避免孤行。我们可以改变孤行的惩罚权重来告诉Latex我们更在乎孤行。有两个参数控制这些:
%\widowpenalty=4000
%\clubpenalty=4000
%其中\widowpentalty是出现尾行分页所产生的惩罚值,\clubpenalty是出现首行分页的惩罚值。默认是150。我把他们都设成4000,就是告诉latex要更努力的减少孤行。如果设定惩罚为10000,就会完全的避免孤行,但是排版会很难看,因为latex会放弃一切的去排除孤行。
%\widowpenalty=8000
%\clubpenalty=8000
%------------------------
%公式、图、表
%------------------------
\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage{bm}
%\usepackage{newtxmath}
\usepackage{unicode-math}
% 根据 \selectedmathfont 的值设置字体
\def\cambrianame{cambria-math}
\ifdefined\selectedmathfont
\ifx\selectedmathfont\cambrianame
\setmathfont[Path=./fonts/math/, Extension=.ttf]{cambria-math}%处理 cambria 特例,其余用 .otf
\else
\setmathfont[Path=./fonts/math/, Extension=.otf]{\selectedmathfont}
\fi
\else
\setmathfont[Path=./fonts/math/, Extension=.otf]{latinmodern-math}
\fi
% Size of the math equations
%\DeclareMathSizes{<正文大小>}{<display style 大小>}{<script style 大小>}{<scriptscript style 大小>}根据正文中设置的第一个参数,设定对应的后边几个参数字体大小
\DeclareMathSizes{10}{10}{7}{5}
\DeclareMathSizes{11}{11}{7.7}{5.5}
\DeclareMathSizes{12.5}{12.5}{8.4}{6}
\DeclareMathSizes{13}{13}{9.1}{6.5}
\DeclareMathSizes{14}{14}{9.8}{7}
\usepackage{graphicx}
\usepackage[subrefformat=parens,labelformat=parens]{subfig} %
\usepackage{booktabs}
% \usepackage[citebordercolor = white]{hyperref}
\usepackage[hidelinks]{hyperref}
%\hypersetup{colorlinks,linkcolor=black}%引用超链接颜色,可用NSFblue
\usepackage{cleveref}%须在hyperref后边
\crefformat{table}{表~#2#1#3}
\crefformat{figure}{图~#2#1#3}
\crefformat{equation}{式~(#2#1#3)}
\usepackage[figurewithin=none]{caption}
%图题、表头;若想取消加粗,去掉\bfseries
\DeclareCaptionFont{capfont}{\MSzh\ensong\fontsize{11pt}{22pt}\selectfont\bfseries} % Caption font
\DeclareCaptionFont{subfont}{\MSzh\ensong\fontsize{11pt}{22pt}\selectfont\bfseries} % Sub-caption font
\captionsetup{font = capfont}
\captionsetup[subfigure]{font = subfont}
\captionsetup[figure]{labelsep=period}
\captionsetup[table]{labelsep=period}
%图标标题的上下间距
\setlength{\abovecaptionskip}{0pt} % 修改 caption 与图表上方的距离
\setlength{\belowcaptionskip}{-10pt} % 修改 caption 与正文的距离
%全局:跨越多个Chapter的图/表/公式的计数
\def\cl@chapter{%
\@elt{footnote}%
\@elt{section}%
\@elt{subsection}%
\@elt{subsubsection}%
\@elt{paragraph}%
\@elt{subparagraph}%% 注意:没有 figure, table, equation
}
\renewcommand {\thefigure}{\arabic{figure}}%图1
\renewcommand {\thetable}{\arabic{table}}%表1
\renewcommand{\theequation}{\arabic{equation}}%样式:(1)
%{\thesection{}-\arabic{figure}}%样式:(1.1-1)
%{\thechapter{}-\arabic{figure}}%样式:(1-1),注意(一)立项依据里的所有节都是第一章
%局部:按照Chapter清零重新开始的图/表/公式的计数
%\numberwithin{figure}{section}%关联图号和章节,应该是每一个section重置一下图号计数器
%\renewcommand {\thefigure}{\thesection{}-\arabic{figure}}%图1.1-1
%如果想修改图中的数字字体,就在对应部分添加\ensong\selectfont\arabic{figure},或者\enkai\selectfont\arabic{figure}。
%表和公式类似
%------------------------
%定义定理等
%------------------------
\let\openbox\relax % 解决 newtxmath 与 amsthm 的 \openbox 冲突
\usepackage{amsthm}
% 定义新的 theorem 样式
\newtheoremstyle{NSFthm}% 名称
{3pt}% 上间距
{3pt}% 下间距
{\MSzh\MSen\selectfont}% 正文样式
{}% 缩进
{\bfseries\MSzh\MSen\selectfont}% 标题字体(加粗宋体)
{.}% 标题后标点
{0.5em}% 标题与正文间距
{}% 自定义标题格式(可选)
% 应用该样式
\theoremstyle{NSFthm}
\newtheorem{definition}{定义}%[chapter] % 或 [section],根据文档类调整
\newtheorem{theorem}{定理}
%------------------------
%列表
%------------------------
%带圈数字
%latex自带\textcircled,但是效果很差
%\usepackage{tikz}
%\usepackage{etoolbox}
%\newcommand*{\circled}[1]{\lower.7ex\hbox{\tikz\draw (0pt, 0pt)%
% circle (.5em) node {\makebox[1em][c]{\small #1}};}}
%\robustify{\circled}
%\begin{enumerate}[label=\circled{\arabic*}]
%\end{enumerate}
%\renewcommand{\labelitemi}{\color{HighLight}\symWingdings\XeTeXglyph153}%第一层
\usepackage{enumitem}%有序列表
\setenumerate[1]{itemsep = 0pt, parsep = 0pt, topsep = 2bp}
\setitemize[1]{itemsep = -2pt, parsep = 0pt, topsep = 2bp}
%------------------------
%程序代码
%------------------------
\usepackage{listings}
%------------------------
%脚注
%------------------------
%脚注分割横线
\newskip\@footindent
\@footindent=1em
\renewcommand\footnoterule{\vspace{6pt}\kern-3\p@ \hrule height 0.8pt width 0.4\columnwidth \kern 2.6\p@\vspace{2pt}}
%脚注引用数字
\renewcommand\thefootnote{\textcircled{\enkai\fontsize{7pt}{15pt}\selectfont\arabic{footnote}}}
%脚注字体
\let\oldfootnotesize\footnotesize
\renewcommand*{\footnotesize}{\oldfootnotesize\MSzh\ensong\fontsize{11pt}{15pt}\selectfont}
%------------------------
%高亮、参考文献
%------------------------
\newcommand{\highlight}[1]{
\textcolor{HighLight}{{\bfseries#1}}}
\usepackage[square,numbers,sort&compress]{natbib}%数字引用[1]
\bibliographystyle{bibs/gbt7714-numerical}
%\usepackage[round,sort]{natbib}%作者年引用Author(2022)
%\bibliographystyle{bibs/gbt7714-author-year}
%bst定制方法:修改对应.bst文件的FUNCTION {load.config}部分设置
\newcommand{\citess}[1]{\textsuperscript{\cite{#1}}}%上标引用
\setlength{\bibsep}{5pt plus 0.3ex}%bib条目间距
\renewcommand\bibsection{\section*{%
{\MSzh\ensong\fontsize{12pt}{22pt}\selectfont%
\setlength{\baselineskip}{20pt}}}}%参考文献}}}
\newenvironment{REF}%
{\begingroup
\MSzh\ensong\fontsize{12pt}{22pt}\selectfont
\setlength{\baselineskip}{15pt}}
{\endgroup}
\renewcommand{\bibfont}{%
\MSzh\ensong\fontsize{11.5pt}{18pt}\selectfont%
\setlength{\baselineskip}{15pt}}
\renewcommand{\ttfamily}{\ensong\selectfont}%参考文献中的链接字体用的是texttt
%------------------------
%一些排版的间距
%------------------------
%段间距
\setlength{\parskip}{0.1\baselineskip}
%自动段落的行间距微调
\usepackage{setspace}
\setstretch{1.6} % 22 bp / 14 pt = 1.571
%------------------------
%微调部分文字中字体的胖瘦
%------------------------
\newcommand{\ps}[2][0.95]{\scalebox{#1}[1]{#2}}%#1默认取0.95等
\newcommand{\kg}[1]{\kern#1}%-0.1em;空格
%查看命令的定义
%\meaning\cite等
\makeatother
%TODO 2027年升级计划
%自定义路径:\newcommand{\MSsections}{sections/},\input{\MSsections 一1依据},包括sections,figures,ref.bib
%正文和小标题字体进一步区分