summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/easybook.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-02 03:04:35 +0000
committerNorbert Preining <norbert@preining.info>2021-02-02 03:04:35 +0000
commite2e61931409be2a7142b4d0f4b59a275b7f59e2a (patch)
tree988e94078700911f445ae43cb3518ba2c21a198f /macros/latex/contrib/easybook/easybook.cls
parent87c74b3292e1c3efc4427ae0536a1d30a0dc8e4b (diff)
CTAN sync 202102020304
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.cls')
-rw-r--r--macros/latex/contrib/easybook/easybook.cls31
1 files changed, 18 insertions, 13 deletions
diff --git a/macros/latex/contrib/easybook/easybook.cls b/macros/latex/contrib/easybook/easybook.cls
index 85a5dda53a..c89eaa7325 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/01/31}{1.21k}{}
+\ProvidesExplClass{easybook}{2021/02/01}{1.22}{}
\cs_generate_variant:Nn \keys_define:nn {nx}
\cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -26,7 +26,7 @@
\bool_set_false:N \l__draft_bool
\bool_set_false:N \l__newline_bool
\bool_set_false:N \l__enstyle_bool
-\bool_set_false:N \l__myfont_bool
+\bool_set_false:N \l__font_noto_bool
\bool_set_true:N \l__zhtitle_bool
\bool_set_true:N \l__lang_chinese_bool
\bool_set_true:N \l__page_twoside_bool
@@ -55,9 +55,9 @@
{\__put_ctexbook:n {fontset = ubuntu}},
font/none .code:n =
{\__put_ctexbook:n {fontset = #1}},
- font/myfont .code:n =
+ font/noto .code:n =
{
- \bool_set_true:N \l__myfont_bool
+ \bool_set_true:N \l__font_noto_bool
\__put_ctexbook:n {fontset = none}
},
font .initial:n = overleaf,
@@ -98,6 +98,7 @@
\bool_new:N \l__chap_withpart_bool
\bool_new:N \l__foot_perpart_bool
\bool_new:N \l__foot_perpage_bool
+\bool_new:N \l__notomath_bool
\tl_new:N \g__config_tl
\ctex_define:n
@@ -130,7 +131,10 @@
perpart .initial:n = false,
perpage .bool_set:N = \l__foot_perpage_bool,
perpage .default:n = true,
- perpage .initial:n = false
+ perpage .initial:n = false,
+ notomath .bool_set:N = \l__notomath_bool,
+ notomath .default:n = true,
+ notomath .initial:n = true
}
\RequirePackage[svgnames]{xcolor}
@@ -139,18 +143,14 @@
\RequirePackage[hang,stable]{footmisc}
\RequirePackage{setspace,zhlineskip}
\RequirePackage{amsthm,thmtools,cases}
-\RequirePackage[noto,upint]{newtxmath}
-\RequirePackage{chemformula}
-\RequirePackage{chemfig}
-\RequirePackage{siunitx,bm}
+\RequirePackage{chemformula,chemfig,siunitx}
\RequirePackage[normalem]{ulem}
\RequirePackage[protrusion = false]{microtype}
-\RequirePackage{rotfloat}
\RequirePackage{geometry,marginnote}
+\RequirePackage{rotfloat,graphicx}
\RequirePackage{nccfoots,tablefootnote}
\RequirePackage{fancyhdr,titletoc}
\RequirePackage{caption,bicaption,subcaption}
-\RequirePackage{graphicx}
\RequirePackage{zhlipsum,fontawesome,pifont}
\RequirePackage{tabularx,multirow,makecell,booktabs}
\RequirePackage{paralist,tasks}
@@ -168,6 +168,11 @@
\cs_new:Npn \edge{\textcolor[HTML]{00c2ff}{\faEdge}}
\ctex_at_end_preamble:n
{
+ \bool_if:NT \l__notomath_bool
+ {
+ \RequirePackage[noto,upint]{newtxmath}
+ \RequirePackage{bm}
+ }
\tl_if_empty:NF \g__config_tl
{\file_input:n {\g__config_tl}}
}
@@ -219,7 +224,7 @@
\cs_new_protected:Npx \__set_zhfont_fangsong:n #1
{\__set_zhfont_fangsong:nn {#1}{\__option_zhfont:}}
-\bool_if:NT \l__myfont_bool
+\bool_if:NT \l__font_noto_bool
{
\__setmainfont:nn {NotoSerif}
{
@@ -749,7 +754,7 @@
{font = \color{ctex@emph}\sf,labelwidth = *,leftmargin = 2\ccwd}
\newlist{outlinelist}{itemize}{1}
\setlist[outlinelist]
- {label = \color{ctex@emph}\upshape\ding{112},itemsep = .5ex plus .1ex,leftmargin = *}
+ {label = \color{ctex@emph}\upshape\ding{111},itemsep = .5ex plus .1ex,leftmargin = *}
\skip_set:Nn \pltopsep{.75ex plus .1ex}
\skip_set:Nn \plpartopsep{0ex}
\skip_set:Nn \plitemsep{.75ex plus .1ex}