Skip to content
Snippets Groups Projects
Unverified Commit 7bfaafc5 authored by Jinguji's avatar Jinguji Committed by GitHub
Browse files

Merge branch 'nju-lug:master' into master

parents 4c89856d c1cd3bdb
No related branches found
No related tags found
No related merge requests found
......@@ -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,自行在导言区设置字体。
......@@ -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}
......@@ -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
% 选择其他字体,请确保相应字体已安装
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment