summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/easybook/easybook.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook/easybook.cls')
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybook.cls54
1 files changed, 38 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls
index 3248671e735..017b9de9b81 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}{2021/09/28}{1.3F}
+\ProvidesExplClass{easybook}{2021/10/06}{1.3G}
{Typeset Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -38,32 +38,40 @@
scheme .code:n = \eb_put_ctexbook:n { scheme = #1 },
enmode .meta:n = { newline,scheme = plain },
- font .choices:nn =
+ font .choices:nn =
{ noto,garamond,times,libertine,palatino,auto }
{ \tl_set:Nn \l__eb_font_choice_tl {#1} },
- font .value_required:n = true,
- font .initial:n = auto,
- cjkfont .code:n = \eb_put_ctexbook:n { fontset = #1 },
+ font .value_required:n = true,
+ font .initial:n = auto,
+ cjkfont .code:n = \eb_put_ctexbook:n { fontset = #1 },
+ mathfont .choices:nn =
+ {
+ noto,notosans,times,libertine,
+ charter,garamond,none,nc,stix
+ }
+ { \tl_set:Nn \l__eb_mathfont_choice_tl {#1} },
+ mathfont .value_required:n = true,
+ mathfont .initial:n = times,
paper .choice:,
- paper .value_required:n = true,
- paper/unknown .code:n = \PassOptionsToPackage{#1}{geometry},
+ paper .value_required:n = true,
+ paper/unknown .code:n = \PassOptionsToPackage{#1}{geometry},
class .choice:,
- class .value_required:n = true,
- class/book .code:n = { },
- class/article .code:n =
+ class .value_required:n = true,
+ class/book .code:n = { },
+ class/article .code:n =
{
\bool_set_false:N \l__eb_class_book_bool
\eb_put_ctexbook:n { oneside }
},
- book .meta:n = { class = book },
- article .meta:n = { class = article },
+ book .meta:n = { class = book },
+ article .meta:n = { class = article },
- config .tl_set:N = \g__eb_config_tl,
- floatpage .bool_set:N = \l__eb_float_page_bool,
- floatpage .default:n = true,
- unknown .code:n =
+ config .tl_set:N = \g__eb_config_tl,
+ floatpage .bool_set:N = \l__eb_float_page_bool,
+ floatpage .default:n = true,
+ unknown .code:n =
{ \clist_gput_right:NV \g__eb_options_clist \CurrentOption }
}
@@ -226,6 +234,20 @@
\eb_font_load_libertinus_sans:
\eb_font_load_lmmonolt_mono:
}
+\cs_new_protected:Npn \eb_put_newtxmath:n #1
+ { \PassOptionsToPackage{#1}{newtxmath} }
+\str_case:VnT \l__eb_mathfont_choice_tl
+ {
+ { times } { }
+ { nc } { \eb_put_newtxmath:n { nc } }
+ { noto } { \eb_put_newtxmath:n { noto } }
+ { stix } { \eb_put_newtxmath:n { stix2 } }
+ { charter } { \eb_put_newtxmath:n { charter } }
+ { notosans } { \eb_put_newtxmath:n { notosans } }
+ { garamond } { \eb_put_newtxmath:n { ebgaramond } }
+ { libertine } { \eb_put_newtxmath:n { libertine } }
+ }
+ { \LoadPackage{newtxmath+bm} }
\ctex_set:n
{