From 96aba8642f7d9714816519a8e36e37d74b126d59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=AD=E4=BF=8A=E4=BD=99?= <hagbgreen@yahoo.com>
Date: Mon, 11 Jun 2018 22:32:32 +0800
Subject: =?UTF-8?q?=E9=99=84=E5=BD=95B=E7=9A=84=E6=8E=92=E7=89=88=20(#190)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* 简化了用于字符串替换的字符串（(used-by-pdf)改为(pdf))
* 附录B所有语言改为字符串形式
---
 pdf/template.tex | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

(limited to 'pdf/template.tex')

diff --git a/pdf/template.tex b/pdf/template.tex
index e2b0a95..a5e1b2a 100644
--- a/pdf/template.tex
+++ b/pdf/template.tex
@@ -67,6 +67,8 @@ frame=tb,
 framexleftmargin=20pt
 }
 
+
+
 \titleformat{\section}
 {\color{colorsection}\normalfont\Large\bfseries}
 {\color{colorsection}\thesection}{1em}{}
@@ -117,7 +119,29 @@ framexleftmargin=20pt
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % 使用 DejaVu Sans 显示 ⚠ ☢ ☠ ✔ 这四个 dingbats 字符
 % http://tex.stackexchange.com/questions/23049/font-substitution-with-xelatex
+
+\newcommand\la[1]{{#1}}
 \newfontfamily{\DingbatSubstFont}{DejaVu Sans}
+\newfontfamily{\ar}[Script=Arabic]{Noto Naskh Arabic}
+%\newfontfamily{\ar}{DejaVu Sans}
+\newfontfamily{\bg}{Noto Sans CJK SC}
+\newfontfamily{\bn}{Noto Sans Bengali}
+%\newfontfamily{\fa}{Noto Kufi Arabic}
+\newfontfamily{\fa}{DejaVu Sans}
+\newfontfamily{\he}{Noto Sans Hebrew}
+\newfontfamily{\hi}{Noto Sans Devanagari}
+\newfontfamily{\hy}{Noto Sans Armenian}
+\newCJKfontfamily{\ja}{Noto Sans CJK JP}
+\newfontfamily{\ka}{Noto Sans Georgian}
+\newCJKfontfamily{\ko}{Noto Sans CJK KR}
+%\newcommand\ko[0]{}
+\newfontfamily{\ml}{Noto Sans Malayalam}
+\newfontfamily{\si}{Noto Sans Sinhala}
+\newfontfamily{\ta}{Noto Sans Tamil}
+\newfontfamily{\th}{Noto Sans Thai}
+\newfontfamily{\ur}[Script=Arabic,Language=Urdu]{Noto Nastaliq Urdu}
+\newCJKfontfamily{\zhtw}{Noto Sans CJK TC}
+
 \XeTeXinterchartokenstate=1
 \newXeTeXintercharclass\DingbatSubst
 \XeTeXcharclass"26A0=\DingbatSubst	% ⚠
-- 
cgit v1.2.3

