From f16c8c03d0b1c12846b3924c765ec75f74642b75 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 8 Mar 2022 21:24:56 +0000 Subject: easybook (8mar22) git-svn-id: svn://tug.org/texlive/trunk@62522 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/latex/easybook/easybook.dtx | 96 ++++++++++++---------- 1 file changed, 53 insertions(+), 43 deletions(-) (limited to 'Master/texmf-dist/source/latex/easybook/easybook.dtx') diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index c7a2ae35605..54cc9221758 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -15,7 +15,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2022/03/06}{1.641} +\ProvidesExplClass{easybook}{2022/03/08}{1.642} {Easily typesetting Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -76,22 +76,22 @@ \cs_new_eq:NN \eb_switch_family:n \ctex_ltj_switch_family:n } \cs_new_protected:Npn \eb_setmainfont:nn #1#2 - { \__fontspec_main_setmainfont:nn {#1} {#2} } + { \__fontspec_main_setmainfont:nn {#2} {#1} } \cs_new_protected:Npn \eb_setsansfont:nn #1#2 - { \__fontspec_main_setsansfont:nn {#1} {#2} } + { \__fontspec_main_setsansfont:nn {#2} {#1} } \cs_new_protected:Npn \eb_setmonofont:nn #1#2 - { \__fontspec_main_setmonofont:nn {#1} {#2} } + { \__fontspec_main_setmonofont:nn {#2} {#1} } \cs_new_protected:Npn \eb_setCJKmainfont:nn #1#2 - { \eb_set_family:nnn { \CJKrmdefault } {#1} {#2} } + { \eb_set_family:nnn { \CJKrmdefault } {#2} {#1} } \cs_new_protected:Npn \eb_setCJKsansfont:nn #1#2 - { \eb_set_family:nnn { \CJKsfdefault } {#1} {#2} } + { \eb_set_family:nnn { \CJKsfdefault } {#2} {#1} } \cs_new_protected:Npn \eb_setCJKmonofont:nn #1#2 - { \eb_set_family:nnn { \CJKttdefault } {#1} {#2} } + { \eb_set_family:nnn { \CJKttdefault } {#2} {#1} } \eb_seq_map_inline:nn { main,sans,mono,CJKmain,CJKsans,CJKmono } { \exp_args:Nc \RenewDocumentCommand { set#1font }{O{}mO{}} - {\use:c { eb_set#1font:nn } {##1,##3} {##2}} + {\use:c { eb_set#1font:nn } {##2} {##1,##3}} } \RenewDocumentCommand{\newCJKfontfamily}{omO{}mO{}} { @@ -303,7 +303,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2022/03/06}{1.641} +\ProvidesExplPackage{easybase}{2022/03/08}{1.642} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -451,7 +451,7 @@ { style,subfont,spread, refset,bibset,thmset, - geoset,hdrset,tocset + geoset,hdrset,tocset,list } { \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} } @@ -873,11 +873,10 @@ fnindent .dim_set:N = \footindent, fnindent .initial:n = 0.8em, fnparskip .skip_set:N = \footparskip, - fnparskip .initial:n = 0ex, + fnparskip .initial:n = 0ex plus .1ex, fnparindent .tl_set:N = \footparindent, fnparindent .initial:n = 2em, fnpara-form .tl_set:N = \l__eb_fnpara_format_tl, - fntext-pos .tl_set:N = \l__eb_fntext_position_tl, fntext-pos .initial:n = super, fntext-code .code:n = \eb_assign_fntext_code:n {#1}, @@ -885,20 +884,17 @@ fnmate-form .code:n = \eb_fnboth_format_set:nn {#1} { mate }, fncust-form .code:n = \eb_fnboth_format_set:nn {#1} { cust }, fnboth-form .meta:n = { fnmate-form = #1,fncust-form = #1 }, - footnotetype .multichoices:nn = { default,hang,bottom,para,flush } { \eb_footnote_value_handle:n {#1} }, footnotetype .value_required:n = true, footnotetype .initial:n = hang, - fnmark-vmove .code:n = \eb_fnmate_move_set:nnn {#1} { mark } { v }, fnmark-hmove .code:n = \eb_fnmate_move_set:nnn {#1} { mark } { h }, fntext-vmove .code:n = \eb_fnmate_move_set:nnn {#1} { text } { v }, fnmark-vmove .initial:n = 0pt, fnmark-hmove .initial:n = 0pt, fntext-vmove .initial:n = 0pt, - fnmark-num .choices:nn = { plain,pifont,pifont*,pifont-sans,pifont-sans* } { \eb_fnmate_normal_label_set:Nn \theupfootnote {#1} }, @@ -1261,7 +1257,7 @@ { \ctex_define:n { - list/#1 .meta:n = + list/#1 .meta:n = { figure/#1 = ##1,table/#1 = ##1, lstlisting/#1 = ##1 @@ -1273,7 +1269,7 @@ { \ctex_define:nn { tocset } { - #1-every .code:n = + #1-every .code:n = { \ctex_set:n { @@ -1325,32 +1321,47 @@ { \p@numberline{\use:c { #1name }~\use:c { the#1 }} } \ctex_set:n { - part/tocformat = \addvspace{1pc}\sffamily\large, - part/tocindent = 0em, - part/tocrule = \tocrule{}[\bfseries], - part/tocline = \CTEXnumberline{#1}#2, - chapter/tocformat = \addvspace{1pc}\sffamily, - chapter/tocindent = 0em, - chapter/tocrule = \tocrule{$\cdot$}[\bfseries], - chapter/tocline = \CTEXnumberline{#1}#2, - section/tocformat = \bool_if:NF \l__eb_class_mode_book_bool { \sffamily }, - section/tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 1.5em } { 0em }, - section/tocrule = + part = { - \bool_if:NTF \l__eb_class_mode_book_bool - { \tocrule{$\cdot$} } - { \tocrule{$\cdot$}[\bfseries] } + tocformat = \addvspace{1pc}\sffamily\large, + tocindent = 0em, + tocrule = \tocrule{}[\bfseries], + tocline = \CTEXnumberline{#1}#2 + }, + chapter = + { + tocformat = \addvspace{1pc}\sffamily, + tocindent = 0em, + tocrule = \tocrule{$\cdot$}[\bfseries], + tocline = \CTEXnumberline{#1}#2 + }, + section = + { + tocformat = \bool_if:NF \l__eb_class_mode_book_bool { \sffamily }, + tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 1.5em } { 0em }, + tocrule = + { + \bool_if:NTF \l__eb_class_mode_book_bool + { \tocrule{$\cdot$} } + { \tocrule{$\cdot$}[\bfseries] } + } + }, + subsection = + { + tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 3.8em } { 1.4em }, + tocrule = \tocrule{$\cdot$} + }, + list = + { + tocindent = 0em, + tocrule = \tocrule{$\cdot$}, + between = \bool_if:NT \l__eb_class_mode_book_bool { \vspace*{-10pt} } }, - subsection/tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 3.8em } { 1.4em }, - subsection/tocrule = \tocrule{$\cdot$}, - list/tocindent = 0em, - list/tocrule = \tocrule{$\cdot$}, - list/between = \bool_if:NT \l__eb_class_mode_book_bool { \vspace*{-10pt} }, table/tocline = \listnumberline{table}#2, figure/tocline = \listnumberline{figure}#2, - lstlisting/tocline = \listnumberline{lstlisting}#2 + lstlisting/tocline = \listnumberline{lstlisting}#2, + tocset/tocafter-every = \hspace{1em} } -\ctex_set:nn { tocset } { tocafter-every = \hspace{1em} } \prop_new:N \l__eb_list_label_entry_prop \prop_set_from_keyval:Nn \l__eb_list_label_entry_prop { @@ -1784,9 +1795,8 @@ \tl_gset:Nn \dblfloatpagefraction { 0.9 } } \dim_zero_new:N \mathindent -\skip_set:Nn \parskip { 0pt plus 2pt minus 1pt } -\skip_set:Nn \textfloatsep { 12pt plus 2pt minus 4pt } -\skip_set:Nn \dbltextfloatsep { 12pt plus 2pt minus 4pt } +\skip_set:Nn \textfloatsep { 12pt plus 4pt minus 3pt } +\skip_set:Nn \dbltextfloatsep { 12pt plus 4pt minus 3pt } \skip_set:Nn \multicolsep { 12pt plus 4pt minus 3pt } %% \int_gset:Nn \vbadness { 10000 } %% \int_gset:Nn \hbadness { 10000 } @@ -2217,7 +2227,6 @@ linktype/colors .code:n = \eb_link_colors_set:, linktype/various .meta:n = linktype/colors, linktype .initial:n = edge, - linktoc .choice:, linktoc/unknown .code:n = \eb_link_toc_put:n {#1}, linktoc .default:n = all, @@ -2257,6 +2266,7 @@ urlcolor = ctex@url,urlbordercolor = ctex@url, citecolor = ctex@cite,citebordercolor = ctex@cite } + \hypersetup{bookmarksnumbered = true} \exp_args:NV \hypersetup \l__eb_hyperref_clist } @@ -2307,7 +2317,7 @@ } % %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2022/03/06}{1.641} +\ProvidesExplFile{eb-tcolorbox.cfg}{2022/03/08}{1.642} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 -- cgit v1.2.3