summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/texlive/texlive-zh-cn/tex-live-zh-cn.sty
blob: e91cd9be66296927a8a15cbab5a7b33da428928d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Import the original tex-live.sty from texlive-en
\def\Status{1}
\RequirePackage{tex-live}

% Chinese support (with XeTeX 0.9995+)
\RequirePackage{xeCJK}
\parindent=20pt 
\defaultfontfeatures{Mapping=tex-text}
\setCJKmainfont[BoldFont=Adobe Heiti Std, ItalicFont=Adobe Kaiti Std]{Adobe Song Std}
\setCJKmonofont[Scale=0.9]{Adobe Kaiti Std}
\setCJKfamilyfont{song}[BoldFont=Adobe Heiti Std]{Adobe Song Std}
\setCJKfamilyfont{sf}[BoldFont=Adobe Heiti Std]{Adobe Heiti Std}

\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