From 23f4fcfc826c8c74bc6ebe20440f6595c50819ec Mon Sep 17 00:00:00 2001 From: Tong Hui Date: Mon, 10 Oct 2016 01:06:26 +0800 Subject: [PATCH] change fonts --- install.latex.ubuntu.sh | 2 +- pdf/template.tex | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/install.latex.ubuntu.sh b/install.latex.ubuntu.sh index 6a05fdd..3e24bb3 100755 --- a/install.latex.ubuntu.sh +++ b/install.latex.ubuntu.sh @@ -5,5 +5,5 @@ sudo apt-get -y install ttf-wqy-microhei ttf-wqy-zenhei # from WenQuanYi sudo apt-get -y install texlive-fonts-recommended sudo apt-get -y install latex-cjk-all fonts-liberation ttf-liberation latex-cjk-chinese sudo apt-get -y install fonts-arphic-gkai00mp fonts-arphic-ukai latex-cjk-chinese-arphic-gkai00mp #install Kaiti font -sudo apt-get -y install fonts-arphic-gbsn00lp latex-cjk-chinese-arphic-gbsn00lp +sudo apt-get -y install fonts-arphic-gbsn00lp latex-cjk-chinese-arphic-gbsn00lp fonts-noto-cjk sudo fc-cache diff --git a/pdf/template.tex b/pdf/template.tex index ced5b0b..8d1688b 100644 --- a/pdf/template.tex +++ b/pdf/template.tex @@ -97,14 +97,14 @@ % 设置中文字体 \setCJKmainfont [ - BoldFont = WenQuanYi Micro Hei, - % BoldFont = Noto Sans CJK SC, % uncomment for release build + %BoldFont = WenQuanYi Micro Hei, + BoldFont = Noto Sans CJK SC, % uncomment for release build ItalicFont = AR PL KaitiM GB, ] {AR PL SungtiL GB} -%\setCJKsansfont{Noto Sans CJK SC} % uncomment for release build -\setCJKsansfont{WenQuanYi Micro Hei} -\setCJKmonofont{WenQuanYi Micro Hei Mono} +\setCJKsansfont{Noto Sans CJK SC} % uncomment for release build +%\setCJKsansfont{WenQuanYi Micro Hei} +\setCJKmonofont{Noto Sans Mono CJK SC} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 使用 DejaVu Sans 显示 ⚠ ☢ ☠ ✔ 这四个 dingbats 字符 @@ -146,7 +146,7 @@ \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-\ifnum\day<10 0\fi\the\day} +\def\w3cdtfymd{\the\year-\ifnum\month<10 0\fi\the\month} \date{\w3cdtfymd} \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}