diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-27 21:42:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-27 21:42:56 +0000 |
commit | ec57b56f13d726a0523bb046f02ff02b81f2d130 (patch) | |
tree | 7dcc8eedc38849d54b339e22f42e5d112dec690a /Master/texmf-dist/tex/latex | |
parent | 43a904f78e24d09df247be00194cbd0578a05fe0 (diff) |
easybook (27feb21)
git-svn-id: svn://tug.org/texlive/trunk@57980 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 470d7ae4951..47a3778ff12 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -9,7 +9,7 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e} \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/02/23}{1.23g}{} +\ProvidesExplClass{easybook}{2021/02/27}{1.23h}{} \cs_generate_variant:Nn \keys_define:nn {nx} \cs_generate_variant:Nn \int_to_arabic:n {v} @@ -91,6 +91,7 @@ \bool_new:N \l__foot_perpart_bool \bool_new:N \l__foot_perpage_bool \bool_new:N \l__notomath_bool +\bool_new:N \l__uppercase_bool \tl_new:N \g__config_tl \ctex_define:n @@ -128,7 +129,10 @@ notomath .default:n = true, notomath .initial:n = true, rulewidth .dim_set:N = \l__rule_width_dim, - rulewidth .initial:n = 0.75pt + rulewidth .initial:n = 0.75pt, + uppercase .bool_set:N = \l__uppercase_bool, + uppercase .default:n = true, + uppercase .initial:n = true } \clist_map_inline:nn @@ -338,7 +342,7 @@ { \markboth { - \MakeUppercase + \bool_if:NT \l__uppercase_bool{\MakeUppercase} { \ifnum\c@secnumdepth>\m@ne \if@mainmatter @@ -349,7 +353,7 @@ \fi#1 } }{ - \MakeUppercase + \bool_if:NT \l__uppercase_bool{\MakeUppercase} { \ifnum\c@secnumdepth>\m@ne \if@mainmatter @@ -368,7 +372,7 @@ { \markboth { - \MakeUppercase + \bool_if:NT \l__uppercase_bool{\MakeUppercase} { \ifnum\c@secnumdepth>\m@ne \if@mainmatter @@ -387,11 +391,14 @@ { \markright { - \ifnum\c@secnumdepth>\z@ - \ifodd\CTEX@section@numbering - \CTEXthesection\hspace{0.5\ccwd} - \fi - \fi#1 + \bool_if:NT \l__uppercase_bool{\MakeUppercase} + { + \ifnum\c@secnumdepth>\z@ + \ifodd\CTEX@section@numbering + \CTEXthesection\hspace{0.5\ccwd} + \fi + \fi#1 + } } } \cs_gset:Npn \headrule @@ -989,7 +996,7 @@ \refstepcounter{section} \markright{\CTEXthesection\hspace{0.5\ccwd}#4} \CTEX@addtocline{section}{#4} - }, + } ]{\IfBooleanF{#1}{\CTEXthesection\hspace{0.5\ccwd}}#4} }{ \sffamily\Large @@ -1167,7 +1174,7 @@ { language = [LaTeX]TeX, texcsstyle = - *\lst@ifdisplaystyle\bfseries\color{ctex@emph}\else\color{ctex@verb}\fi, + *\lst@ifdisplaystyle\bfseries\color{ctex@verb}\else\color{ctex@verb}\fi, basicstyle = \ttfamily\lst@ifdisplaystyle\small\else\color{ctex@verb}\fi, framexleftmargin = 0pt, @@ -1182,7 +1189,7 @@ emphstyle = \color{ctex@emph}, emph = {caption,makecell,subcaption,tabularx}, keywordstyle = - \lst@ifdisplaystyle\bfseries\color{ctex@emph}\else\color{ctex@verb}\fi, + \lst@ifdisplaystyle\bfseries\color{ctex@verb}\else\color{ctex@verb}\fi, morekeywords = { includegraphics,setmainfont,setsansfont,setmonofont,setCJKmainfont,setCJKsansfont,setCJKmonofont,setCJKfamilyfont,RequirePackage @@ -1284,7 +1291,7 @@ \clist_map_function:nN { {none, 000000,000000,000000}, - {seaside, 1381b2,004986,a40000}, + {seaside, 4682B4,004986,a40000}, {energy, f39800,00a0e9,893895}, {cyberpunk, 601986,eb6877,a4005b} } |