File tree 8 files changed +69
-24
lines changed
8 files changed +69
-24
lines changed Original file line number Diff line number Diff line change 754
754
mathFont .initial:n = {cm},
755
755
% Options that will be pass to `unicode-math` pkgs.
756
756
unicodeMathOptions .tl_set:N = \l _@@_unicode_math_options_tl,
757
+ % Windows 平台开启宋体伪粗体。
758
+ windowsSimSunFakeBold .bool_set:N = \l _@@_style_windows_simsum_fake_bold,
759
+ windowsSimSunFakeBold .initial:n = {false},
757
760
}
758
761
% \end{macrocode}
759
762
%
883
886
\RequirePackage {listings}
884
887
\RequirePackage {enumitem}
885
888
\RequirePackage {fmtcount}
886
- \RequirePackage {ifplatform}
887
889
% \end{macrocode}
888
890
%
889
891
% 抑制 \pkg{hyperref} 中对 |\hskip| 的 warning 信息。
1042
1044
% \begin{macrocode}
1043
1045
\ctex _at_end_preamble:n {
1044
1046
% 针对 Windows 字体采用 Fake Bold 宋体
1045
- \ifwindows
1046
- \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
1047
- \fi
1047
+ \bool _if:NT \l _@@_style_windows_simsum_fake_bold
1048
+ {
1049
+ \RequirePackage {ifplatform}
1050
+ \ifwindows
1051
+ \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
1052
+ \fi
1053
+ }
1048
1054
1049
1055
% 在导言区末尾加载数学字体。
1050
1056
\@@ _load_font:
Original file line number Diff line number Diff line change 502
502
mathFont .initial:n = {cm},
503
503
% Options that will be pass to `unicode-math` pkgs.
504
504
unicodeMathOptions .tl_set:N = \l __bithesis_unicode_math_options_tl,
505
+ % Windows 平台开启宋体伪粗体。
506
+ windowsSimSunFakeBold .bool_set:N = \l __bithesis_style_windows_simsum_fake_bold,
507
+ windowsSimSunFakeBold .initial:n = {false},
505
508
}
506
509
\keys _define:nn { bithesis / TOC }
507
510
{
579
582
\RequirePackage {listings}
580
583
\RequirePackage {enumitem}
581
584
\RequirePackage {fmtcount}
582
- \RequirePackage {ifplatform}
583
585
\pdfstringdefDisableCommands {%
584
586
\let\quad\empty
585
587
}
668
670
}
669
671
\ctex _at_end_preamble:n {
670
672
% 针对 Windows 字体采用 Fake Bold 宋体
671
- \ifwindows
672
- \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
673
- \fi
673
+ \bool _if:NT \l __bithesis_style_windows_simsum_fake_bold
674
+ {
675
+ \RequirePackage {ifplatform}
676
+ \ifwindows
677
+ \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
678
+ \fi
679
+ }
674
680
675
681
% 在导言区末尾加载数学字体。
676
682
\_ _bithesis_load_font:
Original file line number Diff line number Diff line change 81
81
},
82
82
style = {
83
83
pageVerticalAlign = scattered,
84
+ % 开启 Windows 平台下的中易宋体伪粗体。
85
+ % windowsSimSunFakeBold = true,
84
86
},
85
87
publications = {
86
88
% 以下两个选项将影响「攻读学位期间发表论文与研究成果清单」中名称列表的省略阈值。
Original file line number Diff line number Diff line change 502
502
mathFont .initial:n = {cm},
503
503
% Options that will be pass to `unicode-math` pkgs.
504
504
unicodeMathOptions .tl_set:N = \l __bithesis_unicode_math_options_tl,
505
+ % Windows 平台开启宋体伪粗体。
506
+ windowsSimSunFakeBold .bool_set:N = \l __bithesis_style_windows_simsum_fake_bold,
507
+ windowsSimSunFakeBold .initial:n = {false},
505
508
}
506
509
\keys _define:nn { bithesis / TOC }
507
510
{
579
582
\RequirePackage {listings}
580
583
\RequirePackage {enumitem}
581
584
\RequirePackage {fmtcount}
582
- \RequirePackage {ifplatform}
583
585
\pdfstringdefDisableCommands {%
584
586
\let\quad\empty
585
587
}
668
670
}
669
671
\ctex _at_end_preamble:n {
670
672
% 针对 Windows 字体采用 Fake Bold 宋体
671
- \ifwindows
672
- \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
673
- \fi
673
+ \bool _if:NT \l __bithesis_style_windows_simsum_fake_bold
674
+ {
675
+ \RequirePackage {ifplatform}
676
+ \ifwindows
677
+ \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
678
+ \fi
679
+ }
674
680
675
681
% 在导言区末尾加载数学字体。
676
682
\_ _bithesis_load_font:
Original file line number Diff line number Diff line change 502
502
mathFont .initial:n = {cm},
503
503
% Options that will be pass to `unicode-math` pkgs.
504
504
unicodeMathOptions .tl_set:N = \l __bithesis_unicode_math_options_tl,
505
+ % Windows 平台开启宋体伪粗体。
506
+ windowsSimSunFakeBold .bool_set:N = \l __bithesis_style_windows_simsum_fake_bold,
507
+ windowsSimSunFakeBold .initial:n = {false},
505
508
}
506
509
\keys _define:nn { bithesis / TOC }
507
510
{
579
582
\RequirePackage {listings}
580
583
\RequirePackage {enumitem}
581
584
\RequirePackage {fmtcount}
582
- \RequirePackage {ifplatform}
583
585
\pdfstringdefDisableCommands {%
584
586
\let\quad\empty
585
587
}
668
670
}
669
671
\ctex _at_end_preamble:n {
670
672
% 针对 Windows 字体采用 Fake Bold 宋体
671
- \ifwindows
672
- \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
673
- \fi
673
+ \bool _if:NT \l __bithesis_style_windows_simsum_fake_bold
674
+ {
675
+ \RequirePackage {ifplatform}
676
+ \ifwindows
677
+ \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
678
+ \fi
679
+ }
674
680
675
681
% 在导言区末尾加载数学字体。
676
682
\_ _bithesis_load_font:
Original file line number Diff line number Diff line change 502
502
mathFont .initial:n = {cm},
503
503
% Options that will be pass to `unicode-math` pkgs.
504
504
unicodeMathOptions .tl_set:N = \l __bithesis_unicode_math_options_tl,
505
+ % Windows 平台开启宋体伪粗体。
506
+ windowsSimSunFakeBold .bool_set:N = \l __bithesis_style_windows_simsum_fake_bold,
507
+ windowsSimSunFakeBold .initial:n = {false},
505
508
}
506
509
\keys _define:nn { bithesis / TOC }
507
510
{
579
582
\RequirePackage {listings}
580
583
\RequirePackage {enumitem}
581
584
\RequirePackage {fmtcount}
582
- \RequirePackage {ifplatform}
583
585
\pdfstringdefDisableCommands {%
584
586
\let\quad\empty
585
587
}
668
670
}
669
671
\ctex _at_end_preamble:n {
670
672
% 针对 Windows 字体采用 Fake Bold 宋体
671
- \ifwindows
672
- \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
673
- \fi
673
+ \bool _if:NT \l __bithesis_style_windows_simsum_fake_bold
674
+ {
675
+ \RequirePackage {ifplatform}
676
+ \ifwindows
677
+ \setCJKmainfont {SimSun}[AutoFakeBold,AutoFakeSlant]
678
+ \fi
679
+ }
674
680
675
681
% 在导言区末尾加载数学字体。
676
682
\_ _bithesis_load_font:
Original file line number Diff line number Diff line change @@ -84,15 +84,25 @@ \section{字体效果表格}
84
84
% 行:宋体、黑体、楷体、Serif、Sans Serif、Typewriter、Math
85
85
86
86
\begin {table }[htb]
87
+ \linespread {1.5}
88
+ \zihao {5}
89
+ \centering
90
+ \caption {字体效果表格}
87
91
\begin {tabular }{@{}lllll@{}}
88
92
\toprule
89
93
& Regular & Bold & Italic & Bold Italic \\ \midrule
90
- 宋体 & 宋体 & \textbf {宋体粗体 } & \textit {楷体 } & \ textbf {\textit {楷书粗体 } } \\
91
- 黑体 & {\heiti {}黑体} & \textbf {\heiti {}黑体粗体 } & \textit {\heiti {}黑体斜体 } & \ textit {\textbf {\heiti {}黑体粗体 } } \\
92
- 楷体 & {\kaishu {}楷书} & \textbf {\kaishu {}楷书粗体 } & \textit {\kaishu {}斜体楷体 } & \cellcolor [HTML]{FFCB2F} \textbf {\textit {\kaishu {}楷书粗斜体 } } \\
94
+ 宋体 & 宋体 & \cellcolor {orange} \ textbf {宋体粗体 } & \textit {楷体 } & \cellcolor {gray} \ textbf {\textit {楷书粗斜体 } } \\
95
+ 黑体 & {\heiti {}黑体} & \textbf {\heiti {}黑体粗体 } & \textit {\heiti {}黑体斜体 } & \cellcolor {gray} \ textit {\textbf {\heiti {}黑体粗斜体 } } \\
96
+ 楷体 & {\kaishu {}楷书} & \textbf {\kaishu {}楷书粗体 } & \textit {\kaishu {}斜体楷体 } & \cellcolor {gray} \textbf {\textit {\kaishu {}楷书粗斜体 } } \\
93
97
Serif(Roman/Normal) & Regular & \textbf {Bold } & \textit {Italic } & \textbf {\textit {Bold Italic } } \\
94
98
Sans Serif & \textsf {Regular} & \textbf {\textsf {Bold} } & \textit {\textsf {Bold} } & \textbf {\textit {\textsf {Bold} } } \\
95
99
Typewriter & \texttt {Regular } & \textbf {\texttt {Bold } } & \textit {\texttt {Bold } } & \textbf {\textit {\texttt {Bold } } } \\
96
100
Math & $ \mathnormal {Regular} \mathrm {Roman}$ & $ \mathbf {Bold}$ & $ \mathit {Italic}$ & $ \mathbf {\mathit {Bold Italic}}$ \\ \bottomrule
97
101
\end {tabular }
98
102
\end {table }
103
+
104
+ \begin {itemize }[nosep]
105
+ \item \colorbox {orange}{宋体粗体}在 Windows 下会成为黑体。这是因为 Windows 的中易宋体没有粗体字重而进行的妥协。
106
+ 如果想要获得宋体粗体的样式,请在配置中开启伪粗体选项。
107
+ \item \colorbox {gray}{粗斜体}的效果是因操作系统字体而定的,中文写作中不会使用这种字形,可以忽略。
108
+ \end {itemize }
Original file line number Diff line number Diff line change 57
57
% externalSupervisor = 左偏树,
58
58
},
59
59
style = {
60
- % 保持参考文献的缩进样式与 Word 模板一致。
60
+ % 学校提供的 Word 模板没有使用悬挂缩进。
61
+ % 因此通过关闭这个选项保持参考文献的缩进样式与 Word 模板一致。
61
62
% 如果你不需要此样式,请将此行注释掉。
62
63
bibliographyIndent = false,
64
+ % 开启 Windows 平台下的中易宋体伪粗体。
65
+ % windowsSimSunFakeBold = true,
63
66
}
64
67
}
65
68
You can’t perform that action at this time.
0 commit comments