diff --git a/njuthesis-doc.dtx b/njuthesis-doc.dtx index 562794727d0ad2499e3b94b1d3cb6a8b3fa9dd0f..233da24e79cd4da02edb8405e4b72fbe50951fd6 100644 --- a/njuthesis-doc.dtx +++ b/njuthesis-doc.dtx @@ -1,9 +1,9 @@ -% \iffalse -% -%% File l3dosctrip.dtx -% -% Copyright (C) 2012,2014-2021 The LaTeX Project +% \iffalse meta-comment +% !TeX program = XeLaTeX +% !TeX encoding = UTF-8 % +% Copyright (C) 2021 by Nanjing University Linux User Group <my@yaoge123.com> +% % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this % license or (at your option) any later version. The latest version @@ -11,68 +11,17 @@ % % https://www.latex-project.org/lppl.txt % -% This file is part of the "l3kernel bundle" (The Work in LPPL) -% and all files in that bundle must be distributed together. -% % ----------------------------------------------------------------------- % -% The development version of the bundle can be found at +% The development version of the template can be found at % -% https://github.com/latex3/latex3 +% https://github.com/nju-lug/NJUThesis % % for those people who are interested. % -%<*driver|program> -%</driver|program> -%<*driver> -% The same approach as used in \textsf{DocStrip}: if \cs{documentclass} -% is undefined then skip the driver, allowing the file to be used to extract -% \texttt{l3docstrip.tex} from \texttt{l3docstrip.dtx} directly. This works -% as the \cs{fi} is only seen if \LaTeX{} is not in use. The odd \cs{jobname} -% business allows the extraction to work with \LaTeX{} provided an appropriate -% \texttt{.ins} file is set up. -%<*gobble> -\ifx\jobname\relax\let\documentclass\undefined\fi -\ifx\documentclass\undefined -\else \csname fi\endcsname -%</gobble> - \def\filename{docstrip.dtx} - \documentclass[full,kernel]{l3doc} - \ExplSyntaxOn - \cs_set_eq:NN \__codedoc_replace_at_at:N \use_none:n - \ExplSyntaxOff - \begin{document} - \DocInput{\jobname.dtx} - \end{document} -%<*gobble> -\fi -%</gobble> -%</driver> % \fi % -% \title{^^A -% The \pkg{l3docstrip} package\\ Code extraction and manipulation^^A -% } -% -% \author{^^A -% The \LaTeX{} Project\thanks -% {^^A -% E-mail: -% \href{mailto:latex-team@latex-project.org} -% {latex-team@latex-project.org}^^A -% }^^A -% } -% -% \date{Released 2021-08-27} -% -% \maketitle -% -% \begin{documentation} -% -% This is a stub file to allow extraction of \texttt{l3docstrip}: all -% functionality has been moved to the main DocStrip program. -% -% \end{documentation} +% \EnableImplementation % % \begin{implementation} % diff --git a/njuthesis-sample.tex b/njuthesis-sample.tex index ad2a9c31cd74be2fc7f02dbfe1b1554c9876735a..56f6ba9619e2046848a56529131d12457dde21d0 100644 --- a/njuthesis-sample.tex +++ b/njuthesis-sample.tex @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % NJU Thesis % 鍗椾含澶у姣曚笟璁烘枃LaTeX妯℃澘 -% Version 0.8.3 (2021-09-12) +% Version 0.9.0 (2021-09-14) % % 璇峰叧娉ㄩ」鐩湴鍧€浠ヨ幏鍙栨渶鏂板彉鍖� % https://github.com/nju-lug/NJUThesis diff --git a/njuthesis.cls b/njuthesis.cls index 3d8121a1e0fa6c65bd93c7bf624704fdcac334f3..182e29cd5a4e2966839e0591c0e57c90b7ba407c 100644 --- a/njuthesis.cls +++ b/njuthesis.cls @@ -21,11 +21,13 @@ %% To produce the documentation run the original source files ending with `.dtx' %% through XeTeX. %% +\NeedsTeXFormat{LaTeX2e} +\RequirePackage{expl3} \def\ExplFileName{njuthesis} \def\ExplFileDescription{Nanjing University thesis template class} \def\ExplFileDate{2021-09-14} -\def\ExplFileVersion{v0.9.0} -\ProvidesExplClass{\ExplFileName}{\ExplFileDate}\ExplFileVersion}{\ExplFileDescription} +\def\ExplFileVersion{0.9.0} +\ProvidesExplClass{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} \LoadClass[ a4paper, twoside, diff --git a/njuthesis.dtx b/njuthesis.dtx index 164df9f6598258627ae02382a4c318f91181f704..6eb0899ea09aae30d223adbdec7f7f15f693ac7c 100644 --- a/njuthesis.dtx +++ b/njuthesis.dtx @@ -175,7 +175,7 @@ through XeTeX. \usedir{doc/latex/njuthesis} \nopreamble\nopostamble \file{README.md} {\from{\jobname.dtx}{readme}} - \file{README_EN.md} {\from{\jobname.dtx}{readme-en}} + \file{README_EN.md} {\from{\jobname.dtx}{readme-en}} } \obeyspaces @@ -188,7 +188,8 @@ through XeTeX. \Msg{* *} \Msg{* njuthesis.cls *} \Msg{* njuthesis.ins *} -\Msg{* README_EN.md *} +\Msg{* README.md *} +\Msg{* README_EN.md *} \Msg{* *} \Msg{* To produce the documentation, run the file njuthesis.dtx *} \Msg{* through XeLaTeX. *} @@ -204,18 +205,15 @@ through XeTeX. \fi %</internal> % -% -%<*class> -%\NeedsTeXFormat{LaTeX2e} -%\RequirePackage{expl3} -%</class> +%<class>\NeedsTeXFormat{LaTeX2e} +%<class>\RequirePackage{expl3} %<*driver|class> \def\ExplFileName{njuthesis} \def\ExplFileDescription{Nanjing University thesis template class} \def\ExplFileDate{2021-09-14} -\def\ExplFileVersion{v0.9.0} +\def\ExplFileVersion{0.9.0} %</driver|class> -%<class>\ProvidesExplClass{\ExplFileName}{\ExplFileDate}\ExplFileVersion}{\ExplFileDescription} +%<class>\ProvidesExplClass{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} % %<*driver> \ProvidesFile{\ExplFileName.dtx}