summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls')
-rw-r--r--Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls79
1 files changed, 54 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls b/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
index f4b9664ab22..37f26c0881e 100644
--- a/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
+++ b/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
@@ -28,7 +28,7 @@
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplClass{xduugthesis}
- {2022/06/21}{2.0.0.0}
+ {2022/06/28}{2.10.3.0}
{Xidian University Undergraduate Thesis document class}
\RequirePackage { xparse, l3keys2e }
\PassOptionsToPackage { quiet } { xeCJK }
@@ -535,6 +535,7 @@
\tl_new:N \l__xdu_ref_add_space
\tl_new:N \l__xdu_cap_label_sep_tl
\bool_new:N \l__xdu_tab_small_bool
+\bool_new:N \l__xdu_alg_small_cap_bool
\bool_new:N \l__xdu_alg_small_bool
\clist_new:N \l__xdu_before_skip_clist
\clist_new:N \l__xdu_after_skip_clist
@@ -557,6 +558,7 @@
ref-add-space .bool_set:N = \l__xdu_ref_add_space,
caption-label-sep .tl_set:N = \l__xdu_cap_label_sep_tl,
table-small-font .bool_set:N = \l__xdu_tab_small_bool,
+ algorithm-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool,
algorithm-small-font .bool_set:N = \l__xdu_alg_small_bool,
before-skip .clist_set:N = \l__xdu_before_skip_clist,
after-skip .clist_set:N = \l__xdu_after_skip_clist,
@@ -571,18 +573,19 @@
}
\keys_set:nn { xdu }
{
- style / en-cjk-font = false,
- style / language = zh,
- style / bib-backend = biblatex,
- style / biblatex-option = { },
- style / ref-add-space = false,
- style / caption-label-sep = { 0.75em },
- style / table-small-font = true,
- style / algorithm-small-font = true,
- style / before-skip = { 24pt, 18pt, 12pt, 12pt, 12pt, 12pt },
- style / after-skip = { 18pt, 12pt, 6pt, 6pt, 6pt, 6pt },
- style / symmetric-margin = false,
- style / page-vertical-align = { 顶部对齐 }
+ style / en-cjk-font = false,
+ style / language = zh,
+ style / bib-backend = biblatex,
+ style / biblatex-option = { },
+ style / ref-add-space = false,
+ style / caption-label-sep = { 0.75em },
+ style / table-small-font = true,
+ style / algorithm-small-caption = true,
+ style / algorithm-small-font = true,
+ style / before-skip = { 24pt, 18pt, 12pt, 12pt, 12pt, 12pt },
+ style / after-skip = { 18pt, 12pt, 6pt, 6pt, 6pt, 6pt },
+ style / symmetric-margin = false,
+ style / page-vertical-align = { 顶部对齐 }
}
\NewDocumentCommand \xdusetup { m }
{ \keys_set:nn { xdu } { #1 } }
@@ -999,7 +1002,14 @@
}
\RequirePackage { caption }
\DeclareCaptionLabelSeparator { customskip } { \hskip \l__xdu_cap_label_sep_tl }
-\DeclareCaptionFont { customfont } { \__xdu_rm_family: \zihao { 5 } }
+\DeclareCaptionFont { customfont } { \__xdu_rm_family: \zihao { 5 } }
+\DeclareCaptionFont { algcustomfont }
+ {
+ \__xdu_rm_family:
+ \bool_if:NTF \l__xdu_alg_small_cap_bool
+ { \zihao { 5 } }
+ { \zihao { -4 } }
+ }
\captionsetup
{
labelsep = customskip,
@@ -1008,16 +1018,23 @@
\captionsetup [ algorithm ]
{
labelsep = customskip,
- labelfont = customfont,
- font = customfont
+ labelfont = algcustomfont,
+ font = algcustomfont
}
\ctex_at_end_preamble:n
{
\cs_if_exist:NT \thealgocf
{
\SetAlgoCaptionSeparator { \hbox_to_wd:nn { \l__xdu_cap_label_sep_tl } { } }
- \SetAlCapNameFnt { \__xdu_rm_family: \zihao { 5 } }
- \SetAlCapFnt { \__xdu_rm_family: \zihao { 5 } }
+ \bool_if:NTF \l__xdu_alg_small_cap_bool
+ {
+ \SetAlCapNameFnt { \__xdu_rm_family: \zihao { 5 } }
+ \SetAlCapFnt { \__xdu_rm_family: \zihao { 5 } }
+ }
+ {
+ \SetAlCapNameFnt { \__xdu_rm_family: \zihao { -4 } }
+ \SetAlCapFnt { \__xdu_rm_family: \zihao { -4 } }
+ }
\SetAlCapSty { }
}
}
@@ -1135,6 +1152,9 @@
{
\RequirePackage { gbt7714 }
\bibliographystyle { gbt7714-numerical }
+ \cs_set:Npn \@biblabel #1 { \hfill [ #1 ] }
+ \cs_set:Npn \bibsection { }
+ \dim_set:Nn \bibsep { 0pt }
\NewDocumentCommand \parencite { m }
{ \group_begin: \citestyle { numbers } \cite { #1 } \group_end: }
}
@@ -1142,6 +1162,20 @@
\PassOptionsToPackage { \l__xdu_biblatex_option_tl } { biblatex }
\RequirePackage { biblatex }
\clist_map_inline:Nn \l__xdu_bib_file_clist { \addbibresource { #1 } }
+ \defbibheading { bibliography } [ ] { }
+ \dim_set:Nn \biblabelsep { 1ex }
+ \dim_set:Nn \bibitemsep { 0pt }
+ \cs_set_eq:NN \SlashFont \rmfamily
+ }
+\ctex_at_end_preamble:n
+ {
+ \bool_if:NT \l__xdu_rm_ref_bool
+ { \RequirePackage { bibentry } }
+ }
+ \cs_set:Npn \bibfont
+ {
+ \__xdu_rm_family:
+ \zihao { 5 }
}
}
\RequirePackage { environ }
@@ -1345,15 +1379,10 @@
\group_begin:
\tl_if_eq:NnTF \l__xdu_bib_tool_tl { bibtex }
{
- \cs_set:Npn \bibsection { }
- \__xdu_rm_family: \zihao { 5 }
+ \dim_set:Nn \labelsep { 1ex }
\bibliography { \l__xdu_bib_file_clist }
}
- {
- \defbibheading { bibliography } [ ] { }
- \cs_set:Npn \bibfont { \__xdu_rm_family: \zihao { 5 } }
- \printbibliography
- }
+ { \printbibliography }
\group_end:
}
%%