diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-08 21:25:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-08 21:25:06 +0000 |
commit | 9dc2bd4e59906fc0b4f24a6d2c4e5accb80c9649 (patch) | |
tree | 522d194b16efdad6a74827d28dd9966fca8cd75c /Master/texmf-dist/tex/latex | |
parent | aecbe5cbb468abe71b5ee7698b3bb4e931e40853 (diff) |
easybook (8mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62523 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 78 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 16 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 2 |
3 files changed, 53 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index 678873a9439..9c405313159 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \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 } @@ -168,7 +168,7 @@ { style,subfont,spread, refset,bibset,thmset, - geoset,hdrset,tocset + geoset,hdrset,tocset,list } { \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} } @@ -590,11 +590,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}, @@ -602,20 +601,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} }, @@ -978,7 +974,7 @@ { \ctex_define:n { - list/#1 .meta:n = + list/#1 .meta:n = { figure/#1 = ##1,table/#1 = ##1, lstlisting/#1 = ##1 @@ -990,7 +986,7 @@ { \ctex_define:nn { tocset } { - #1-every .code:n = + #1-every .code:n = { \ctex_set:n { @@ -1042,32 +1038,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 { @@ -1501,9 +1512,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 } @@ -1934,7 +1944,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, @@ -1974,6 +1983,7 @@ urlcolor = ctex@url,urlbordercolor = ctex@url, citecolor = ctex@cite,citebordercolor = ctex@cite } + \hypersetup{bookmarksnumbered = true} \exp_args:NV \hypersetup \l__eb_hyperref_clist } diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 3752602a4b1..ec137f0e3af 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \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 @@ -81,22 +81,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{}} { diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg index 7ca9c8d55d5..668d515e9fc 100644 --- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg +++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg @@ -18,7 +18,7 @@ %% LaTeX version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. -\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 |