diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-13 21:21:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-13 21:21:15 +0000 |
commit | 75816c020e1f38943ef999ae828aba7471298d39 (patch) | |
tree | a7732d7e7c0b765aa4f6fa3d30cbc70c8d9c5c88 /Master/texmf-dist/source | |
parent | 440a2e4722c327705e6d74e181547d6951dd045f (diff) |
easybook (13aug21)
git-svn-id: svn://tug.org/texlive/trunk@60235 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index 39acbc59f9f..d114859b141 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -8,7 +8,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/08/11}{1.28L} +\ProvidesExplClass{easybook}{2021/08/13}{1.28N} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -292,7 +292,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/08/11}{1.28L} +\ProvidesExplPackage{easybase}{2021/08/13}{1.28N} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_add:Nn { NV,Nv } @@ -363,13 +363,13 @@ } { \IfFileExists{#1.sty}{\RequirePackage{#1}}{} } } -\cs_new_protected:Npn \eb_if_package_reload:nF #1#2 +\cs_new_protected:Npn \eb_if_package_loaded:nF #1#2 { \@ifpackageloaded{#1} - {\msg_warning:nnn { easybase } { package-reload } {#1}} + {\msg_warning:nnn { easybase } { package-loaded } {#1}} {#2\disable@package@load{#1}{}} } -\msg_new:nnn { easybase } { package-reload } +\msg_new:nnn { easybase } { package-loaded } { The~macro~package~#1~has~been~reloaded. \\ Please~pass~the~arguments~by \\ @@ -381,7 +381,7 @@ \PassOptionsToPackage{#1}{#2} \eb_clist_map_inline:nn {#2} { - \eb_if_package_reload:nF {##1} + \eb_if_package_loaded:nF {##1} { \eb@usepackage@save{##1} } } } @@ -2068,16 +2068,16 @@ numsep .initial:n = 0.5em, label .tl_set:N = \eb@tc@exercise@label, enumitem .code:n = \setexerlist{#1}, - tcolorbox .code:n = \tcbappstyle{exercise}{#1} + tcolorbox .code:n = \addtcbstyle{exercise}{#1} } \cs_new_protected:Npn \setexercise #1 { \keys_set:nn { eb/exercise } {#1} } -\NewDocumentCommand{\tcbappstyle}{smm} - { - \IfBooleanTF{#1} - {\tcbset{tc-#2/.style = {#3}}} - {\tcbset{tc-#2/.append~style = {#3}}} - } +\cs_new_protected:Npn \addtcbstyle #1#2 + { \tcbset{tc-#1/.append~style = {#2}} } +\cs_new_protected:Npn \newtcbstyle #1#2 + { \tcbset{tc-#1/.style = {#2}} } +\cs_new_protected:Npn \tcbappstyle + { \@ifstar{\newtcbstyle}{\addtcbstyle} } \ctex_at_end_package:nn { tcolorbox } { \eb_package_date_check:nn { tcolorbox } { 2020/10/09 } @@ -2396,11 +2396,11 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/11}{1.28L} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/13}{1.28N} {Customization of tcolorbox for easybook} \tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip } -\tcbappstyle*{theorem} +\newtcbstyle{theorem} { enhanced~jigsaw,pad~at~break* = 3pt, opacityback = 0, @@ -2411,7 +2411,7 @@ top = \eb@tc@line@skip,bottom = \eb@tc@line@skip, middle = \eb@tc@line@skip } -\tcbappstyle*{outline} +\newtcbstyle{outline} { enhanced,nofloat, tikznode~boxed~title, @@ -2424,14 +2424,14 @@ arc = 3pt, left = 2pc,right = 2pc,top = 1.5pc,bottom = 1pc } -\tcbappstyle*{exercise} +\newtcbstyle{exercise} { blank,on~line,center, sharpish~corners, fontupper = \Large\sffamily, beforeafter~skip = 3.75ex plus .2ex minus .1ex } -\tcbappstyle*{easybox} +\newtcbstyle{easybox} { enhanced~jigsaw,pad~at~break* = 3pt, center~title, @@ -2445,7 +2445,7 @@ titlerule = 0pt, beforeafter~skip = 1.75ex plus .2ex minus .1ex } -\tcbappstyle*{ebparbox} +\newtcbstyle{ebparbox} { frame~hidden, enhanced~jigsaw,pad~at~break* = 3pt, @@ -2455,15 +2455,15 @@ middle = \eb@tc@line@skip,bottomtitle = \eb@tc@line@skip, beforeafter~skip = 1.75ex plus .2ex minus .1ex } -\tcbappstyle*{ebemph}{on~line,blank} -\tcbappstyle*{eblink} +\newtcbstyle{ebemph}{on~line,blank} +\newtcbstyle{eblink} { standard~jigsaw,on~line, top = 1.5pt,bottom = 1.5pt,left = 1.5pt,right = 1.5pt, boxrule = 0.75pt,arc = 1pt, opacityback = 0.2 } -\tcbappstyle*{ebfbox} +\newtcbstyle{ebfbox} { on~line,sharpish~corners, top = 2pt,bottom = 2pt,left = 1pt,right = 1pt, |