summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'pdf')
-rw-r--r--pdf/template.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/pdf/template.tex b/pdf/template.tex
index cd77fa2..f119676 100644
--- a/pdf/template.tex
+++ b/pdf/template.tex
@@ -71,7 +71,7 @@ framexleftmargin=20pt
\definecolor{shadecolor}{gray}{0.90}
-% 修改字体,粗体为文泉驿微米黑,普通文字为方正宋体(非开源,包含在WPS包内)
+% 修改字体,粗体为 Noto Sans CJK,普通文字 FandolSong 宋体(GPLv3)
% 字体选择: AR PL UMing 文鼎PL细上海宋 - 会出现问号在中间的错误
% AR PL SungtiL GB 文鼎PL简报宋 - 英文字体不好看
% Adobe Song Std L Adobe宋体 - item的·号无法显示
@@ -92,7 +92,6 @@ framexleftmargin=20pt
BoldItalicFont = *-Italic,
]
{Liberation Serif}
-% {Bitstream Charter} % uncomment for release build
% 设置中文字体
\setCJKmainfont
@@ -104,9 +103,10 @@ framexleftmargin=20pt
]
%{AR PL SungtiL GB}
{FandolSong}
+
\setCJKsansfont{Noto Sans CJK SC}
%\setCJKsansfont{WenQuanYi Micro Hei}
-\setCJKmonofont{WenQuanYi Micro Hei}
+\setCJKmonofont{WenQuanYi Micro Hei Mono}
%\setCJKmonofont{Noto Sans Mono CJK SC} % uncomment for release build
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -149,7 +149,7 @@ framexleftmargin=20pt
\author{\textbf{[美] Richard M. Stallman 著}\\
\textbf{北京 GNU/Linux 用户组 译}\thanks{本书基于 GNU 自由文档协议 1.3 版 (GNU Free Documentation License 1.3) 授权发布,可自由复制和分发,和/或基于 GNU 自由文档协议 1.3 版或自由软件基金会发布的更高版本,做出修改。本书使用 Markdown 书写,源码地址:\url{https://github.com/beijinglug/fsfs-zh/}。}}
-\def\w3cdtfymd{\the\year-\ifnum\month<10 0\fi\the\month}
+\def\w3cdtfymd{\the\year 年 \ifnum\month<10 0\fi\the\month 月}
\date{\w3cdtfymd}
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
@@ -218,7 +218,7 @@ framexleftmargin=20pt
\newcommand{\prechap}{第}
\newcommand{\postchap}{部分}
\newcommand{\presect}{}
-\newcommand{\postsect}{节}
+\newcommand{\postsect}{}
\renewcommand{\chaptermark}[1]{\markboth{\textbf{\prechap \thechapter \postchap}\hspace*{1ex}#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\textbf{\presect \thesection \postsect}\hspace*{1ex}#1}}
\newcommand{\chap}[1]{\newpage\thispagestyle{empty}\chapter{#1}\label{chap:\thechapter}}