summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty')
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty13
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty b/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
index f31ec6d6c5e..0a193c42672 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
+++ b/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2005-2018 by Ruini Xue <xueruini@gmail.com>
+%% Copyright (C) 2005-2019 by Ruini Xue <xueruini@gmail.com>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -21,9 +21,14 @@
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%%
-
+\RequirePackage{ifxetex}
+\ifxetex\else
+ \ClassError{thuthesis}{You should use XeLaTeX}{}
+ \end{document}
+\fi
\ProvidesPackage{dtx-style}
\RequirePackage{hypdoc}
+\RequirePackage{ifthen}
\RequirePackage[UTF8,scheme=chinese]{ctex}
\RequirePackage{newpxtext}
\RequirePackage{newpxmath}
@@ -39,6 +44,10 @@
\RequirePackage{etoolbox}
\RequirePackage{metalogo}
+\ifthenelse{\equal{\@nameuse{g__ctex_fontset_tl}}{mac}}{%
+ \xeCJKsetwidth{‘’“”}{1em}
+}{}
+
\colorlet{thu@macro}{blue!60!black}
\colorlet{thu@env}{blue!70!black}
\colorlet{thu@option}{purple}