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.cls57
1 files changed, 49 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls b/Master/texmf-dist/tex/xelatex/xduts/xduugthesis.cls
index 37f26c0881e..073561e9f74 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/28}{2.10.3.0}
+ {2022/07/28}{2.12.1.1}
{Xidian University Undergraduate Thesis document class}
\RequirePackage { xparse, l3keys2e }
\PassOptionsToPackage { quiet } { xeCJK }
@@ -436,11 +436,8 @@
{
\__xdu_load_unicode_math_pkg:
\__xdu_if_platform_macos:FT
+ { \setmathfont { XITS~Math } }
{
- \setmathfont { XITS~Math }
- }
- {
- \__xdu_load_unicode_math_pkg:
\setmathfont { XITSMath-Regular.otf }
\setmathfont { XITSMath-Bold.otf }
[ range= { bfup -> up, bfit -> it } ]
@@ -532,7 +529,11 @@
\tl_new:N \l__xdu_lang_tl
\tl_new:N \l__xdu_bib_tool_tl
\tl_new:N \l__xdu_biblatex_option_tl
-\tl_new:N \l__xdu_ref_add_space
+\clist_new:N \l__xdu_search_path_clist
+\bool_new:N \l__xdu_fix_input_bool
+\bool_new:N \l__xdu_fix_include_bool
+\bool_new:N \l__xdu_fix_graphics_bool
+\tl_new:N \l__xdu_ref_add_space_bool
\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
@@ -555,7 +556,11 @@
bib-backend .choices:nn = { bibtex, biblatex }
{ \tl_set_eq:NN \l__xdu_bib_tool_tl \l_keys_choice_tl },
biblatex-option .tl_set:N = \l__xdu_biblatex_option_tl,
- ref-add-space .bool_set:N = \l__xdu_ref_add_space,
+ file-search-path .clist_set:N = \l__xdu_search_path_clist,
+ fix-input .bool_set:N = \l__xdu_fix_input_bool,
+ fix-include .bool_set:N = \l__xdu_fix_include_bool,
+ fix-includegraphics .bool_set:N = \l__xdu_fix_graphics_bool,
+ ref-add-space .bool_set:N = \l__xdu_ref_add_space_bool,
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,
@@ -577,6 +582,10 @@
style / language = zh,
style / bib-backend = biblatex,
style / biblatex-option = { },
+ style / file-search-path = { },
+ style / fix-input = false,
+ style / fix-include = false,
+ style / fix-includegraphics = false,
style / ref-add-space = false,
style / caption-label-sep = { 0.75em },
style / table-small-font = true,
@@ -941,7 +950,39 @@
\cftsubparapagefont
}
{ \renewcommand { #1 } { \__xdu_rm_family: \zihao { -4 } } }
+\ctex_at_end_preamble:n
+ {
+ \seq_if_empty:NF \l__xdu_search_path_clist
+ {
+ \clist_map_inline:Nn \l__xdu_search_path_clist
+ { \seq_put_right:Nn \l_file_search_path_seq { #1 } }
+ }
+ \bool_if:NT \l__xdu_fix_input_bool
+ {
+ \cs_new_eq:NN \__xdu_org_input:n \input
+ \RenewDocumentCommand { \input } { m }
+ { \__xdu_org_input:n { ./ #1 } }
+ }
+ \bool_if:NT \l__xdu_fix_include_bool
+ {
+ \cs_new_eq:NN \__xdu_org_include:n \include
+ \RenewDocumentCommand { \include } { m }
+ { \__xdu_org_include:n { ./ #1 } }
+ }
+ \bool_if:NT \l__xdu_fix_graphics_bool
+ {
+ \cs_new_eq:NN \__xdu_org_includegraphics:n \includegraphics
+ \RenewDocumentCommand { \includegraphics } { o m }
+ {
+ \IfNoValueTF { #1 }
+ { \__xdu_org_includegraphics:n { ./ #2 } }
+ { \__xdu_org_includegraphics:n [ #1 ] { ./ #2 } }
+ }
+ }
+ }
\renewcommand { \theequation } { \thechapter - \arabic { equation } }
+\cs_set:Npn \topfraction { .8 }
+\cs_set:Npn \floatpagefraction { .8 }
\ctex_at_end_preamble:n
{
\clist_map_inline:nn
@@ -1119,7 +1160,7 @@
}
\ctex_at_end_preamble:n
{
- \bool_if:NT \l__xdu_ref_add_space
+ \bool_if:NT \l__xdu_ref_add_space_bool
{
\str_if_eq:NNT { \l__xdu_lang_tl } { zh }
{