summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/easybook.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-03 03:00:54 +0000
committerNorbert Preining <norbert@preining.info>2021-02-03 03:00:54 +0000
commit9de8091bfb3391699d0b900932b91525a86d490e (patch)
treebeb932e2b0e5eb8dea7a1e68c6615ffd154b8d7c /macros/latex/contrib/easybook/easybook.cls
parente2e61931409be2a7142b4d0f4b59a275b7f59e2a (diff)
CTAN sync 202102030300
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.cls')
-rw-r--r--macros/latex/contrib/easybook/easybook.cls88
1 files changed, 48 insertions, 40 deletions
diff --git a/macros/latex/contrib/easybook/easybook.cls b/macros/latex/contrib/easybook/easybook.cls
index c89eaa7325..3460278512 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/02/01}{1.22}{}
+\ProvidesExplClass{easybook}{2021/02/02}{1.23}{}
\cs_generate_variant:Nn \keys_define:nn {nx}
\cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -137,26 +137,36 @@
notomath .initial:n = true
}
-\RequirePackage[svgnames]{xcolor}
-\RequirePackage{pdfpages,subfiles}
-\includepdfset{fitpaper = true}
-\RequirePackage[hang,stable]{footmisc}
-\RequirePackage{setspace,zhlineskip}
-\RequirePackage{amsthm,thmtools,cases}
-\RequirePackage{chemformula,chemfig,siunitx}
-\RequirePackage[normalem]{ulem}
-\RequirePackage[protrusion = false]{microtype}
-\RequirePackage{geometry,marginnote}
-\RequirePackage{rotfloat,graphicx}
-\RequirePackage{nccfoots,tablefootnote}
-\RequirePackage{fancyhdr,titletoc}
-\RequirePackage{caption,bicaption,subcaption}
-\RequirePackage{zhlipsum,fontawesome,pifont}
-\RequirePackage{tabularx,multirow,makecell,booktabs}
-\RequirePackage{paralist,tasks}
-\RequirePackage[shortlabels,inline]{enumitem}
-\RequirePackage[most]{tcolorbox}
-\RequirePackage[xindy]{imakeidx}
+\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,subfiles,
+ footmisc,
+ setspace,zhlineskip,
+ amsthm,thmtools,cases,
+ chemformula,chemfig,siunitx,ulem,
+ microtype,
+ geometry,marginnote,
+ rotfloat,graphicx,
+ nccfoots,tablefootnote,
+ fancyhdr,titletoc,
+ caption,bicaption,subcaption,
+ zhlipsum,fontawesome,pifont,
+ tabularx,multirow,makecell,booktabs,
+ paralist,tasks,enumitem,
+ tcolorbox,
+ imakeidx
+ }
\RequirePackage[
lang = {chinese-utf8},
type = {CC},
@@ -265,18 +275,7 @@
}
\cs_if_exist:NF \kaishu{\cs_gset_eq:NN \kaishu\normalfont}
-\clist_new:N \g__geometry_clist
-\__ctex_define:nn {geoset}
- {
- unknown .code:n =
- {
- \clist_gput_right:Nx \g__geometry_clist
- {
- \l_keys_key_str
- \tl_if_empty:NF \l_keys_value_tl{ = {#1}}
- }
- }
- }
+\includepdfset{fitpaper = true}
\geometry
{
vmargin = 2.54cm,
@@ -289,6 +288,18 @@
marginparsep = 8pt,
marginparwidth = 2.54cm
}
+\clist_new:N \g__geometry_clist
+\__ctex_define:nn {geoset}
+ {
+ unknown .code:n =
+ {
+ \clist_gput_right:Nx \g__geometry_clist
+ {
+ \l_keys_key_str
+ \tl_if_empty:NF \l_keys_value_tl{ = {#1}}
+ }
+ }
+ }
\cs_gset:Npn \cleardoublepage
{
@@ -1148,10 +1159,7 @@
rulecolor = \color{ctex@frame},
commentstyle = \color{gray},
emphstyle = \color{ctex@emph},
- emph =
- {
- bibset,bibtex,biber,caption,config,easybook,elfont,linktopage,subcaption,tabularx,thmtools
- },
+ emph = {caption,subcaption,tabularx},
keywordstyle = \lst@ifdisplaystyle\bfseries\color{ctex@emph}\else\color{ctex@verb}\fi,
morekeywords =
{
@@ -1232,14 +1240,14 @@
linkcolor .choice:,
\clist_map_function:nN
{
- {graphite, 626262,0000B2,005752},
+ {fresh, 62d71f,0000B2,005752},
{cutepink, ff69b4,9d5196,57b5e5},
{skyblue, 0000ff,004986,eb6877},
{crimson, dc143c,00c1c9,afcd20}
}
\__linkcolor_set:n,
- linkcolor .default:n = graphite,
- linkcolor .initial:n = graphite,
+ linkcolor .default:n = fresh,
+ linkcolor .initial:n = fresh,
linktopage .choice:,
linktopage/true .code:n = {\__put_hyperref:n {linktocpage}},