diff options
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.cls')
-rw-r--r-- | macros/latex/contrib/easybook/easybook.cls | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/macros/latex/contrib/easybook/easybook.cls b/macros/latex/contrib/easybook/easybook.cls index 4405556f09..f639eeb570 100644 --- a/macros/latex/contrib/easybook/easybook.cls +++ b/macros/latex/contrib/easybook/easybook.cls @@ -9,7 +9,7 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e} \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/03/11}{1.23n}{} +\ProvidesExplClass{easybook}{2021/03/12}{1.23o}{} \cs_generate_variant:Nn \keys_define:nn {nx} \cs_generate_variant:Nn \int_to_arabic:n {v} @@ -81,8 +81,19 @@ {\__put_ctexbook:n {scheme = chinese}} {\__put_ctexbook:n {scheme = plain}} +\clist_map_inline:nn + { + {svgnames}{xcolor}, + {hang,stable}{footmisc}, + {normalem}{ulem}, + {protrusion = false}{microtype}, + {shortlabels,inline}{enumitem}, + {most}{tcolorbox}, + {xindy}{imakeidx}, + {CJKmath = true}{xeCJK}, + {no-math}{fontspec} + }{\PassOptionsToPackage#1} \__put_ctexbook:n {\g__options_clist} -\PassOptionsToPackage{CJKmath = true}{xeCJK} \LoadClass[UTF8]{ctexbook} \bool_new:N \l__capdash_bool @@ -136,23 +147,13 @@ uppercase .initial:n = true } -\clist_map_inline:nn - { - {svgnames}{xcolor}, - {hang,stable}{footmisc}, - {normalem}{ulem}, - {protrusion = false}{microtype}, - {shortlabels,inline}{enumitem}, - {most}{tcolorbox}, - {xindy}{imakeidx} - }{\PassOptionsToPackage#1} \RequirePackage { xcolor, pdfpages, footmisc,setspace, amsmath,amsthm,thmtools,cases, - chemformula,chemfig,siunitx,ulem, + chemformula,siunitx,ulem, geometry,marginnote,nccfoots, rotfloat,graphicx, fancyhdr,titletoc, @@ -395,7 +396,7 @@ } \cs_gset:Npn \headrule { - \color{ctex@frame}\vspace{2.5pt} + \color{ctex@frame}\vspace{1.5pt} \hrule width\textwidth height \l__rule_width_dim } \bool_if:NT \l__draft_bool @@ -792,6 +793,8 @@ \tl_new:N \l__thm_spaceabove_tl \tl_new:N \l__thm_spacebelow_tl +\RenewDocumentCommand{\newtheorem}{O{}m} + {\AfterPreamble{\declaretheorem[#1]{#2}}} \__ctex_define:nn {thmset} { thmbox .bool_set:N = \l__thmbox_bool, |