summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/easybook.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.dtx')
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx18
1 files changed, 8 insertions, 10 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 15185e97b7..698244b85f 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -15,7 +15,7 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2022/03/11}{1.645}
+\ProvidesExplClass{easybook}{2022/03/12}{1.646}
{Easily typesetting Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -303,7 +303,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2022/03/11}{1.645}
+\ProvidesExplPackage{easybase}{2022/03/12}{1.646}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -430,7 +430,6 @@
}
\PassOptionsToPackage{list = off}{bicaption}
-\PassOptionsToPackage{nonewpage}{imakeidx}
\PassOptionsToPackage{upint}{newtxmath}
\PassOptionsToPackage{svgnames}{xcolor}
\PassOptionsToPackage{many}{tcolorbox}
@@ -474,6 +473,7 @@
\newcounter{chapter}
\providebool{@mainmatter}
\bool_set_false:N \l__eb_class_mode_book_bool
+ \ctex_define:n { chapter .meta:nn = { ctex/chapter } {#1} }
\ctex_define:n { chapter/tocline .code:n = { } }
}
\bool_if:NF \l__eb_class_mode_book_bool
@@ -633,8 +633,6 @@
{ \use:c { eb@mark@#1@label@layout }{##1} }
}
}
-\cs_gset_eq:NN \easyhead \fancyhead
-\cs_gset_eq:NN \easyfoot \fancyfoot
\NewDocumentCommand{\markrule}
{O{\textwidth}D(){ctex@frame}m>{\SplitArgument{1}{|}}O{}}
{\eb_draw_markrule:nnnnn {#1} {#2} {#3} #4}
@@ -888,6 +886,7 @@
{ plain,hang,bottom,para,flush }
{ \eb_footnote_value_handle:n {#1} },
footnotetype .value_required:n = true,
+ footnotetype/default .meta:n = footnotetype/plain,
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 },
@@ -1222,13 +1221,13 @@
\NewDocumentCommand{\counteruse}{sO{arabic}D(){.}mod()}
{
\IfBooleanF{#1}{\stepcounter{#4}}
- \tl_set:cn { theeb@#4 }
+ \tl_set:cn { theeb-#4 }
{
\IfValueT{#5}{\use:c { the#5 }#3}
\use:c {#2}{#4}
}
- \tl_use:c { theeb@#4 }
- \eb_current_label:n { eb@#4 }
+ \tl_use:c { theeb-#4 }
+ \eb_current_label:n { eb-#4 }
}
\cs_new:Npn \eb_section_counter_prefix:n #1
{
@@ -2323,7 +2322,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2022/03/11}{1.645}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2022/03/12}{1.646}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2
@@ -2332,7 +2331,6 @@
{ \tcbset{#1/.style = {#2}} }
\cs_new_protected:Npn \tcbappstyle
{ \@ifstar{\deftcbstyle}{\addtotcbstyle} }
-\cs_set_eq:NN \newtcbstyle \deftcbstyle
\deftcbstyle{tc-easybox}
{