Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJUThesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU LUG
NJU LaTeX Templates
NJUThesis
Commits
2321c887
Commit
2321c887
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
refactor: 隐式加载xparse包
parent
e710b6c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
njuthesis.dtx
+5
-6
5 additions, 6 deletions
njuthesis.dtx
with
5 additions
and
6 deletions
njuthesis.dtx
+
5
−
6
View file @
2321c887
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
%</internal>
%</internal>
%
%
%<*install>
%<*install>
\input
l3
docstrip.tex
\input docstrip.tex
\keepsilent
\keepsilent
\askforoverwritefalse
\askforoverwritefalse
...
@@ -97,8 +97,7 @@ through XeTeX.
...
@@ -97,8 +97,7 @@ through XeTeX.
\fi
\fi
%</internal>
%</internal>
%
%
%<class|visual>\NeedsTeXFormat{LaTeX2e}
%<class|visual>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
%<class|visual>\RequirePackage{expl3}
%<class|visual>\GetIdInfo $Id: njuthesis.dtx 0.11.3 2021-11-23 14:30:00 +0800 NJU LUG <nju.lug@yaoge123.cn> $
%<class|visual>\GetIdInfo $Id: njuthesis.dtx 0.11.3 2021-11-23 14:30:00 +0800 NJU LUG <nju.lug@yaoge123.cn> $
%<class> { Thesis template for Nanjing University }
%<class> { Thesis template for Nanjing University }
%<class>\ProvidesExplClass{njuthesis}
%<class>\ProvidesExplClass{njuthesis}
...
@@ -109,7 +108,7 @@ through XeTeX.
...
@@ -109,7 +108,7 @@ through XeTeX.
%<*driver>
%<*driver>
\ProvidesFile{njuthesis.dtx}
\ProvidesFile{njuthesis.dtx}
\documentclass{ctxdoc}
\documentclass{ctxdoc}
\usepackage{floatrow,
listings,xcolor,
tabularray}
\usepackage{floatrow,tabularray}
\setlist[1]{labelindent=0.5em}
\setlist[1]{labelindent=0.5em}
\UseTblrLibrary{booktabs,siunitx,diagbox}
\UseTblrLibrary{booktabs,siunitx,diagbox}
\DefTblrTemplate{caption-tag}{default}{表\hspace{0.25em}\thetable}
\DefTblrTemplate{caption-tag}{default}{表\hspace{0.25em}\thetable}
...
@@ -1154,7 +1153,7 @@ through XeTeX.
...
@@ -1154,7 +1153,7 @@ through XeTeX.
% \changes{v0.11}{2021/10/23}{添加了若干环境检查与警告信息。}
% \changes{v0.11}{2021/10/23}{添加了若干环境检查与警告信息。}
% 检查 \hologo{LaTeX3} 编程环境。
% 检查 \hologo{LaTeX3} 编程环境。
% \begin{macrocode}
% \begin{macrocode}
\RequirePackage {
xparse,
xtemplate, l3keys2e }
\RequirePackage { xtemplate, l3keys2e }
\msg_new:nnn { njuthesis } { l3-too-old }
\msg_new:nnn { njuthesis } { l3-too-old }
{
{
Package~ "#1"~ is~ too~ old. \\\\
Package~ "#1"~ is~ too~ old. \\\\
...
@@ -1163,7 +1162,7 @@ through XeTeX.
...
@@ -1163,7 +1162,7 @@ through XeTeX.
using~ your~ TeX~ package manager~ or~ from~ \\
using~ your~ TeX~ package manager~ or~ from~ \\
CTAN.
CTAN.
}
}
\clist_map_inline:nn {
expl3, xparse,
xtemplate, l3keys2e }
\clist_map_inline:nn { xtemplate, l3keys2e }
{
{
\@ifpackagelater {#1} { 2021/08/27 }
\@ifpackagelater {#1} { 2021/08/27 }
{ } { \msg_error:nnn { njuthesis } { l3-too-old } {#1} }
{ } { \msg_error:nnn { njuthesis } { l3-too-old } {#1} }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment