diff --git a/chapters/Environments.tex b/chapters/Environments.tex index 64178d1128176cc5281550a49ecce182895f638d..c532bd5a7cda82cce6f4103df7b8a9665645e4fb 100644 --- a/chapters/Environments.tex +++ b/chapters/Environments.tex @@ -138,7 +138,10 @@ sudo apt install ttf-mscorefonts-installer \subsection{淇敼瀛椾綋閰嶇疆} -濡傛灉甯屾湜瑕嗙洊妫€娴嬬郴缁熷瓧浣撶殑鍛戒护锛堣濡傚湪Linux缂栬瘧鏃朵娇鐢╓indows瀛椾綋鏍峰紡锛夛紝鍦╘texttt{profile/font.sty}涓敞閲婃帀鎿嶄綔绯荤粺鍒ゆ柇璇彞锛屽苟淇濈暀甯屾湜浣跨敤鐨勫瓧绗﹂泦鍗冲彲銆傚叏閮ㄥ瓧绗﹂泦鍛戒护濡備笅鎵€绀恒€� +鏈ā鏉挎彁渚涗簡鑻ュ共涓瓧浣撶浉鍏崇殑鎺у埗閫夐」锛屽凡浜嶾cref{sec:classoptions}鍒濇杩涜浠嬬粛銆傚鏋滃笇鏈涜鐩栨娴嬬郴缁熷瓧浣撶殑鍛戒护锛堣濡傚湪Linux缂栬瘧鏃朵娇鐢╓indows瀛椾綋鏍峰紡锛夛紝璇峰皢 +UseSysFont璁剧疆涓篺alse锛屽苟閫氳繃CustomEnFont鍜孋ustomZhFont杩涜閫夋嫨銆� + +鍏ㄩ儴瀛楃闆嗗懡浠ゅ涓嬫墍绀恒€� \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} + +瀵逛簬闇€瑕佽繘涓€姝ヨ嚜瀹氫箟鐨勫悓瀛︼紝鍙互灏咰ustomEnFont鍜孋ustomZhFont璁剧疆涓簄ull锛岃嚜琛屽湪瀵艰█鍖鸿缃瓧浣撱€� diff --git a/chapters/Introduction.tex b/chapters/Introduction.tex index 40643ce05be5737b2bf947edfc2725c49fca012a..685877d5879639530399de0d36b4401f4687a2f9 100644 --- a/chapters/Introduction.tex +++ b/chapters/Introduction.tex @@ -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}] 瀛︿綅绫诲瀷锛屾湰绉戠敓涓篣G锛屽嵆Undergraduate鐨勭缉鍐欍€� - \item[\texttt{Type}] 鐢ㄤ簬閫夋嫨鏂囨。绫诲瀷骞跺皢鐩稿叧瀛楁杈撳嚭鍦ㄥ皝闈㈠拰鎽樿椤点€傚彲閫夊€煎寘鎷瑃hesis锛堣〃绀烘瘯涓氳鏂囷級鍜宒esign锛堣〃绀烘瘯涓氳璁★級锛岀己鐪佸€间负thesis銆� + \item[\texttt{Type}] 鐢ㄤ簬閫夋嫨鏂囨。绫诲瀷骞跺皢鐩稿叧瀛楁杈撳嚭鍦ㄥ皝闈㈠拰鎽樿椤点€傚彲閫夊€煎寘鎷瑃hesis锛堣〃绀烘瘯涓氳鏂囷級鍜宒esign锛堣〃绀烘瘯涓氳璁★級锛岀己鐪佸€间负thesis銆� \item[\texttt{UseSysFont}] Bool绫诲瀷锛岀敤浜庨€夋嫨鏄惁浣跨敤绯荤粺棰勮瀛椾綋锛岀己鐪佸€间负true銆� + \item[\texttt{CustomEnFont}] 鐢ㄤ簬閫夋嫨鑷畾涔夎嫳鏂囧瓧绗﹂泦銆傚彲閫夊€煎寘鎷瑆indows, macos, gyre, null锛岀己鐪佸€间负windows銆� + \item[\texttt{CustomZhFont}] 鐢ㄤ簬閫夋嫨鑷畾涔変腑鏂囧瓧绗﹂泦銆傚彲閫夊€煎寘鎷瑆indows, macos, fandol, founder, noto, null锛岀己鐪佸€间负windows銆� \end{description} diff --git a/profile/font.sty b/profile/font.sty index a614d30c4a6c89eb9e743d8861bed47e7fcbeb29..efc1577129a486d0339d58126d773e404783900a 100644 --- a/profile/font.sty +++ b/profile/font.sty @@ -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 % 閫夋嫨鍏朵粬瀛椾綋锛岃纭繚鐩稿簲瀛椾綋宸插畨瑁�