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.sty23
1 files changed, 21 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 0481881cd92..90885ad6168 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
+++ b/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
@@ -21,8 +21,18 @@
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%%
-\RequirePackage{ifxetex}
-\RequireXeTeX
+\newcommand\thu@error[1]{%
+ \ClassError{thuthesis}{#1}{}%
+}
+\@ifl@t@r\fmtversion{2017/04/15}{}{
+ \thu@error{%
+ TeX Live 2017 or later version is required to compile this document%
+ }
+}
+\RequirePackage{iftex}
+\ifXeTeX\else
+ \thu@error{XeLaTeX is required to compile this document}
+\fi
\ProvidesPackage{dtx-style}
\RequirePackage{hypdoc}
\RequirePackage{ifthen}
@@ -42,6 +52,13 @@
\RequirePackage{enumitem}
\RequirePackage{etoolbox}
\RequirePackage{metalogo}
+\RequirePackage[tightLists=false]{markdown}
+
+\markdownSetup{
+ renderers = {
+ link = {\href{#2}{#1}},
+ }
+}
\ifthenelse{\equal{\@nameuse{g__ctex_fontset_tl}}{mac}}{
\setmainfont{Palatino}
@@ -182,6 +199,8 @@
\newcommand{\note}[2][Note]{{%
\color{magenta}{\bfseries #1}\emph{#2}}}
+\DeclareDocumentCommand{\githubuser}{m}{\href{https://github.com/#1}{@#1}}
+
\def\thuthesis{\textsc{Thu}\-\textsc{Thesis}}
\endinput
%%