diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xduts/xdufont.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls | 53 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls | 53 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls | 10 |
4 files changed, 108 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty b/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty index f01ba66cd95..6dc7d34d368 100644 --- a/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty +++ b/Master/texmf-dist/tex/xelatex/xduts/xdufont.sty @@ -29,7 +29,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{xdufont} - {2023/03/03}{6.0.1.0} + {2023/03/05}{6.1.0.1} {Xidian University Font package} \RequirePackage { xparse, l3keys2e } \PassOptionsToPackage { no-math } { fontspec } diff --git a/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls b/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls index 31288ef0b54..90fdda39819 100644 --- a/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls +++ b/Master/texmf-dist/tex/xelatex/xduts/xdupgthesis.cls @@ -29,7 +29,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{xdupgthesis} - {2023/03/03}{6.0.1.0} + {2023/03/05}{6.1.0.1} {Xidian University Postgraduate Thesis document class} \RequirePackage { xparse, l3keys2e } \PassOptionsToPackage { no-math } { fontspec } @@ -795,6 +795,8 @@ \tl_new:N \l__xdu_alg_cap_align_tl \bool_new:N \l__xdu_add_alg_rule_vspace_bool \bool_new:N \l__xdu_tab_small_bool +\tl_new:N \l__xdu_figure_align_tl +\tl_new:N \l__xdu_table_align_tl \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 @@ -832,6 +834,10 @@ { \tl_set_eq:NN \l__xdu_alg_cap_align_tl \l_keys_choice_tl }, add-alg-rule-vspace .bool_set:N = \l__xdu_add_alg_rule_vspace_bool, table-small-font .bool_set:N = \l__xdu_tab_small_bool, + figure-align .choices:nn = { left, centering, right } + { \tl_set_eq:NN \l__xdu_figure_align_tl \l_keys_choice_tl }, + table-align .choices:nn = { left, centering, right } + { \tl_set_eq:NN \l__xdu_table_align_tl \l_keys_choice_tl }, alg-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool, algorithm-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool, alg-small-font .bool_set:N = \l__xdu_alg_small_bool, @@ -866,6 +872,8 @@ style / alg-caption-align = left, style / add-alg-rule-vspace = false, style / table-small-font = true, + style / figure-align = centering, + style / table-align = centering, style / alg-small-caption = true, style / algorithm-small-caption = true, style / alg-small-font = true, @@ -1589,6 +1597,25 @@ } { } } +\ctex_at_end_preamble:n + { + \tl_if_eq:NnTF \l__xdu_figure_align_tl { left } + { + \AtBeginEnvironment { figure } + { \g@addto@macro { \@floatboxreset } { \raggedright } } + } + { + \tl_if_eq:NnTF \l__xdu_figure_align_tl { centering } + { + \AtBeginEnvironment { figure } + { \g@addto@macro { \@floatboxreset } { \centering } } + } + { + \AtBeginEnvironment { figure } + { \g@addto@macro { \@floatboxreset } { \raggedleft } } + } + } + } \PassOptionsToPackage { font = small } { subfig } \captionsetup* [ sub ] { font = customfont } \ctex_at_end_preamble:n @@ -1609,11 +1636,29 @@ } \ctex_at_end_preamble:n { + \tl_if_eq:NnTF \l__xdu_table_align_tl { left } + { + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \raggedright } } + } + { + \tl_if_eq:NnTF \l__xdu_table_align_tl { centering } + { + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \centering } } + } + { + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \raggedleft } } + } + } + } +\ctex_at_end_preamble:n + { \bool_if:NT \l__xdu_tab_small_bool { - \renewenvironment { table } - { \def\@floatboxreset { \reset@font\small\@setminipage } \@float { table } } - { \end@float } + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \small } } } } \ctex_at_end_preamble:n diff --git a/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls b/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls index 8f0e12e4c56..871d843377c 100644 --- a/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls +++ b/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls @@ -29,7 +29,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{xduugthesis} - {2023/03/03}{6.0.1.0} + {2023/03/05}{6.1.0.1} {Xidian University Undergraduate Thesis document class} \RequirePackage { xparse, l3keys2e } \PassOptionsToPackage { no-math } { fontspec } @@ -620,6 +620,8 @@ \tl_new:N \l__xdu_alg_cap_align_tl \bool_new:N \l__xdu_add_alg_rule_vspace_bool \bool_new:N \l__xdu_tab_small_bool +\tl_new:N \l__xdu_figure_align_tl +\tl_new:N \l__xdu_table_align_tl \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 @@ -657,6 +659,10 @@ { \tl_set_eq:NN \l__xdu_alg_cap_align_tl \l_keys_choice_tl }, add-alg-rule-vspace .bool_set:N = \l__xdu_add_alg_rule_vspace_bool, table-small-font .bool_set:N = \l__xdu_tab_small_bool, + figure-align .choices:nn = { left, centering, right } + { \tl_set_eq:NN \l__xdu_figure_align_tl \l_keys_choice_tl }, + table-align .choices:nn = { left, centering, right } + { \tl_set_eq:NN \l__xdu_table_align_tl \l_keys_choice_tl }, alg-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool, algorithm-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool, alg-small-font .bool_set:N = \l__xdu_alg_small_bool, @@ -691,6 +697,8 @@ style / alg-caption-align = left, style / add-alg-rule-vspace = false, style / table-small-font = true, + style / figure-align = centering, + style / table-align = centering, style / alg-small-caption = true, style / algorithm-small-caption = true, style / alg-small-font = true, @@ -1356,6 +1364,25 @@ } { } } +\ctex_at_end_preamble:n + { + \tl_if_eq:NnTF \l__xdu_figure_align_tl { left } + { + \AtBeginEnvironment { figure } + { \g@addto@macro { \@floatboxreset } { \raggedright } } + } + { + \tl_if_eq:NnTF \l__xdu_figure_align_tl { centering } + { + \AtBeginEnvironment { figure } + { \g@addto@macro { \@floatboxreset } { \centering } } + } + { + \AtBeginEnvironment { figure } + { \g@addto@macro { \@floatboxreset } { \raggedleft } } + } + } + } \PassOptionsToPackage { font = small } { subfig } \captionsetup* [ sub ] { font = customfont } \ctex_at_end_preamble:n @@ -1376,11 +1403,29 @@ } \ctex_at_end_preamble:n { + \tl_if_eq:NnTF \l__xdu_table_align_tl { left } + { + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \raggedright } } + } + { + \tl_if_eq:NnTF \l__xdu_table_align_tl { centering } + { + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \centering } } + } + { + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \raggedleft } } + } + } + } +\ctex_at_end_preamble:n + { \bool_if:NT \l__xdu_tab_small_bool { - \renewenvironment { table } - { \def\@floatboxreset { \reset@font\small\@setminipage } \@float { table } } - { \end@float } + \AtBeginEnvironment { table } + { \g@addto@macro { \@floatboxreset } { \small } } } } \ctex_at_end_preamble:n diff --git a/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls b/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls index e5ed4a7fc94..7dcb04b5738 100644 --- a/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls +++ b/Master/texmf-dist/tex/xelatex/xduts/xduugtp.cls @@ -29,7 +29,7 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplClass{xduugtp} - {2023/03/03}{6.0.1.0} + {2023/03/05}{6.1.0.1} {Xidian University Undergraduate Thesis Proposal class} \RequirePackage { xparse, l3keys2e } \PassOptionsToPackage { no-math } { fontspec } @@ -615,6 +615,8 @@ \tl_new:N \l__xdu_alg_cap_align_tl \bool_new:N \l__xdu_add_alg_rule_vspace_bool \bool_new:N \l__xdu_tab_small_bool +\tl_new:N \l__xdu_figure_align_tl +\tl_new:N \l__xdu_table_align_tl \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 @@ -652,6 +654,10 @@ { \tl_set_eq:NN \l__xdu_alg_cap_align_tl \l_keys_choice_tl }, add-alg-rule-vspace .bool_set:N = \l__xdu_add_alg_rule_vspace_bool, table-small-font .bool_set:N = \l__xdu_tab_small_bool, + figure-align .choices:nn = { left, centering, right } + { \tl_set_eq:NN \l__xdu_figure_align_tl \l_keys_choice_tl }, + table-align .choices:nn = { left, centering, right } + { \tl_set_eq:NN \l__xdu_table_align_tl \l_keys_choice_tl }, alg-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool, algorithm-small-caption .bool_set:N = \l__xdu_alg_small_cap_bool, alg-small-font .bool_set:N = \l__xdu_alg_small_bool, @@ -686,6 +692,8 @@ style / alg-caption-align = left, style / add-alg-rule-vspace = false, style / table-small-font = true, + style / figure-align = centering, + style / table-align = centering, style / alg-small-caption = true, style / algorithm-small-caption = true, style / alg-small-font = true, |