summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty')
-rw-r--r--Master/texmf-dist/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty35
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty b/Master/texmf-dist/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty
new file mode 100644
index 00000000000..cf6d597105a
--- /dev/null
+++ b/Master/texmf-dist/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty
@@ -0,0 +1,35 @@
+% Import the original tex-live.sty from texlive-en
+\def\Status{1}
+
+% Chinese support (with XeTeX 0.9995+)
+\RequirePackage{xeCJK}
+\parindent=20pt
+\defaultfontfeatures{Mapping=tex-text}
+\setCJKmainfont[BoldFont=Droid Sans Fallback, ItalicFont=AR PL UKai CN]{AR PL UMing CN}
+\setCJKmonofont[Scale=0.9]{AR PL UKai CN}
+\setCJKfamilyfont{song}[BoldFont=Droid Sans Fallback]{AR PL UMing CN}
+\setCJKfamilyfont{sf}[BoldFont=Droid Sans Fallback]{Droid Sans Fallback}
+
+\RequirePackage{tex-live}
+
+\renewcommand\contentsname{目录}
+\renewcommand\listfigurename{插图列表}
+\renewcommand\listtablename{表格列表}
+\renewcommand\refname{参考文献}
+\renewcommand\indexname{索引}
+\renewcommand\figurename{图}
+\renewcommand\tablename{表}
+\renewcommand\partname{部分}
+\renewcommand\appendixname{附录}
+\renewcommand\abstractname{摘要}
+\setlength{\parskip}{5pt}
+
+% Fix for xeCJK: xeCJK will remove all spaces after Chinese,
+% but it cannot add spaces between Chinese and \Url, that's
+% why we need to add them here
+% \renewcommand\path{ \begingroup \urlstyle{tt}\Url}
+% \def\OnCD#1{ \href{../../../../#1}{\path{#1}}}
+% \def\email#1{ \href{mailto:#1}{\path{#1}}} % \path comes from url
+% \renewcommand\url{ \begingroup \Url}
+
+\endinput