summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/easybook
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-01-31 21:00:20 +0000
committerKarl Berry <karl@freefriends.org>2024-01-31 21:00:20 +0000
commita8a0be2f83ea2814ce65cd82e36d41eb489698c8 (patch)
treedea2d828af02dc8432d8ad05809fcfc6699520bf /Master/texmf-dist/tex/latex/easybook
parentf119a6e4c937ca79a300b024433ccf4af2592d87 (diff)
easybook (31jan24)
git-svn-id: svn://tug.org/texlive/trunk@69650 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook')
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybase.sty36
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybook.cls17
-rw-r--r--Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg2
3 files changed, 21 insertions, 34 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty
index 502ce59b0ff..edc5e4cb725 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}{2024/01/28}{2024P}
+\ProvidesExplPackage{easybase}{2024/01/31}{2024S}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -107,7 +107,6 @@
\seq_map_function:NN
\l_tmpb_seq \eb_match_load_package:n
}
-\msg_redirect_module:nnn { hooks } { warning } { info }
\bool_set_true:N \l__eb_class_mode_book_bool
\bool_set_false:N \l__eb_compile_draft_bool
@@ -115,7 +114,11 @@
\keys_define:nn { easybase }
{
- draft .code:n = \bool_set_true:N \l__eb_compile_draft_bool,
+ draft .code:n =
+ {
+ \bool_set_true:N \l__eb_compile_draft_bool
+ \PassOptionsToPackage{draft}{hyperref}
+ },
floatpage .bool_set:N = \l__eb_float_page_bool,
floatpage .default:n = true,
floatpage .initial:n = false,
@@ -1135,6 +1138,7 @@
{
#1 .meta:nn = { ctex/#1 } {##1},
#1/between .tl_set:c = l__eb_toc_#1_between_hook_tl,
+ #1/between .initial:n = \bool_if:NT \l__eb_class_mode_book_bool { \vspace*{-10pt} },
#1/tocline .cs_set:cp = { eb@tocline@#1 } ##1##2,
#1/tocline .initial:n = \listnumberline{##1}##2
}
@@ -1206,6 +1210,7 @@
{
\ctex_define:n
{
+ #1 .meta:nn = { ctex/#1 } {##1},
#1/tocformat .tl_set:c = l__eb_toc_#1_format_tl,
#1/tocformat+ .code:n = \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1},
#1/tocformat~+ .code:n = \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1},
@@ -1223,6 +1228,12 @@
{\eb_toc_entry_if_hang:n {#1}}{}
{\tl_use:c { l__eb_toc_#1_rule_tl }}
[\tl_use:c { l__eb_toc_#1_below_tl }]
+ \ctex_set:nn {#1}
+ {
+ tocindent = 0em,
+ tocrule = \tocrule{$\cdot$},
+ tocafter = \hspace{1em}
+ }
}
\cs_new_protected:Npn \RegisterTocName #1
{
@@ -1231,13 +1242,6 @@
}
\seq_map_function:NN
\c__ctex_headings_seq \RegisterTocName
-\seq_remove_all:Nn \c__ctex_headings_seq { table }
-\seq_remove_all:Nn \c__ctex_headings_seq { figure }
-\seq_remove_all:Nn \c__ctex_headings_seq { lstlisting }
-\cs_new_protected:Npn \eb@key@path@meta@define #1
- { \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} } }
-\seq_map_function:NN
-\c__ctex_headings_seq \eb@key@path@meta@define
\eb_seq_map_inline:nn
{
tocformat,tocformat+,tocformat~+,
@@ -1346,17 +1350,7 @@
}
},
subsection =
- {
- tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 3.8em } { 1.4em },
- tocrule = \tocrule{$\cdot$}
- },
- float =
- {
- tocindent = 0em,
- tocrule = \tocrule{$\cdot$},
- between = \bool_if:NT \l__eb_class_mode_book_bool { \vspace*{-10pt} }
- },
- tocset/tocafter-every = \hspace{1em}
+ { tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 3.8em } { 1.4em } }
}
\ctex_at_end_package:nn { imakeidx }
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls
index 74d314ba2a4..5bc7e0fae12 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}{2024/01/28}{2024P}
+\ProvidesExplClass{easybook}{2024/01/31}{2024S}
{Easily typesetting Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -44,18 +44,11 @@
cjkfont .code:n = \eb_put_ctexbook:n { fontset = #1 },
mathfont .tl_set:N = \l__eb_mathfont_value_tl,
mathfont .initial:n = times,
- paper .code:n = \PassOptionsToPackage{#1}{geometry},
- class .choice:,
- class .value_required:n = true,
- class/book .code:n = { },
- class/article .code:n =
- {
- \bool_set_false:N \l__eb_class_mode_book_bool
- \eb_put_ctexbook:n { oneside }
- },
config .clist_gset:N = \g__eb_config_file_clist,
- floatpage .bool_set:N = \l__eb_float_page_bool,
- theorem .bool_set:N = \l__eb_theorem_support_bool,
+ paper .code:n = { },
+ class.code:n = { },
+ floatpage.code:n = { },
+ theorem .code:n = { },
unknown .code:n = \clist_gput_right:NV \g__eb_doc_options_clist \CurrentOption
}
diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
index f9ad1524266..61feafb7b06 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}{2024/01/28}{2024P}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/31}{2024S}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2