diff options
author | Karl Berry <karl@freefriends.org> | 2021-11-20 20:53:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-11-20 20:53:31 +0000 |
commit | e46f68801d28bebdbc42a47eb4411b330a7fe2ff (patch) | |
tree | 0cab5b4ca9cb35c9a1afee3343abbe82a46b7190 /Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | |
parent | 4ede05846cf39da0bbfd0484928394f414addc6a (diff) |
easybook (20nov21)
git-svn-id: svn://tug.org/texlive/trunk@61098 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg index 91063fd4eca..e2584309959 100644 --- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg +++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg @@ -18,9 +18,34 @@ %% LaTeX version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/16}{1.40R} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/20}{1.40T} {Customization of tcolorbox for easybook} +\cs_set_protected:Npn \setexercise #1 + { \keys_set:nn { eb/exercise } {#1} } +\cs_set_protected:Npn \addtcbstyle #1#2 + { \tcbset{#1/.append~style = {#2}} } +\cs_set_protected:Npn \newtcbstyle #1#2 + { \tcbset{#1/.style = {#2}} } +\cs_new_protected:Npn \tcbappstyle + { \@ifstar{\newtcbstyle}{\addtcbstyle} } +\keys_define:nn { eb/exercise } + { + color .tl_set:N = \eb@tc@background@color, + color .initial:n = DeepSkyBlue, + number .tl_set:N = \eb@tc@list@number, + number .initial:n = 1., + title .tl_set:N = \eb@tc@exercise@title, + title .initial:n = \c__eb_name_exercise_tl, + numsep .dim_set:N = \eb@toc@exercise@numsep, + numsep .initial:n = 0.5em, + tocnumsep .dim_set:N = \eb@toc@exertoc@numsep, + tocnumsep .initial:n = 1em, + label .tl_set:N = \eb@tc@exercise@label, + enumitem .code:n = \setexerlist{#1}, + tcolorbox .code:n = \addtcbstyle{exercise}{#1} + } + \tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip } \newtcbstyle{tc-theorem} { @@ -82,14 +107,14 @@ { standard~jigsaw,on~line, top = 1.5pt,bottom = 1.5pt,left = 1.5pt,right = 1.5pt, - boxrule = 0.75pt,arc = 1pt, + boxrule = 0.5pt,arc = 1pt, opacityback = 0.2 } \newtcbstyle{tc-ebfbox} { on~line,sharpish~corners, top = 2pt,bottom = 2pt,left = 1pt,right = 1pt, - leftrule = 0pt,rightrule = 0pt + boxrule = 0.5pt,leftrule = 0pt,rightrule = 0pt } \tcbset { @@ -107,6 +132,7 @@ \tl_gset:Nn \eb@tc@exercise@ifnametrue {#1} \tl_gset:Nn \eb@tc@exercise@ifnamefalse {#2} } +\eb_thm_name_set:nnn { exercise } { Exercise } { 练习 } \tcphantomifname { \markright |