diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 85 |
1 files changed, 45 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg index e7ee22cc0fe..e36bdd4d127 100644 --- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg +++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg @@ -11,7 +11,7 @@ %% conditions of the CC-BY 4.0 License. %% The latest version of this license is in %% https://creativecommons.org/licenses/by/4.0/legalcode -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/25}{1.27q} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/26}{1.27R} {Customization of tcolorbox for easybook} \tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip } @@ -46,8 +46,44 @@ fontupper = \Large\sffamily, beforeafter~skip = 3.75ex plus .2ex minus .1ex } -\tcbappstyle*{easybox}{} -\tcbappstyle*{ebparbox}{} +\tcbappstyle*{easybox} + { + enhanced~jigsaw,pad~at~break* = 3pt, + center~title, + sharpish~corners, + left = 8pt,right = 8pt, + opacityback = 0.2,opacitybacktitle = 0.2, + coltitle = black,colframe = black, + top = \eb@tc@line@skip,bottom = \eb@tc@line@skip, + middle = \eb@tc@line@skip, + toptitle = \eb@tc@line@skip, + titlerule = 0pt, + beforeafter~skip = 1.75ex plus .2ex minus .1ex + } +\tcbappstyle*{ebparbox} + { + frame~hidden, + enhanced~jigsaw,pad~at~break* = 3pt, + boxrule = 0pt, + sharpish~corners, + left = 8pt, + 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} + { + 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} + { + on~line,sharpish~corners, + top = 2pt,bottom = 2pt,left = 1pt,right = 1pt, + leftrule = 0pt,rightrule = 0pt + } \tcbset { breakable, @@ -130,30 +166,13 @@ }{} \DeclareTColorBox{easybox}{sO{Khaki}d()O{}} { - enhanced~jigsaw,pad~at~break* = 3pt, - IfBooleanTF = {#1} - {toptitle = \eb@tc@line@skip,top = \eb@tc@line@skip} - { - frame~hidden,boxrule = 0pt, - toptitle = \eb@tc@line@skip,top = 0pt - }, + IfBooleanF = {#1}{frame~hidden,boxrule = 0pt}, IfValueT = {#3}{title = #3}, colback = #2,colbacktitle = #2, - opacityback = 0.2,opacitybacktitle = 0.2, - coltitle = black,colframe = black, - sharpish~corners, - left = 8pt,right = 8pt, - bottom = \eb@tc@line@skip,middle = \eb@tc@line@skip, - bottomtitle = \eb@tc@line@skip, - beforeafter~skip = 1.75ex plus .2ex minus .1ex, - halign~upper = left,halign~lower = left, - center~title,tc-easybox,#4 + tc-easybox,#4 } \DeclareTColorBox{ebparbox}{sO{DarkSlateBlue}d()O{}} { - frame~hidden, - enhanced~jigsaw,pad~at~break* = 3pt, - boxrule = 0pt, borderline~west = {3pt}{0pt}{#2}, IfBooleanTF = {#1} { @@ -167,28 +186,14 @@ IfValueT = {#3}{title = #3}, top = 0pt,bottom = 0pt,right = 0pt,toptitle = 0pt }, - sharpish~corners, - left = 8pt, - middle = \eb@tc@line@skip,bottomtitle = \eb@tc@line@skip, - beforeafter~skip = 1.75ex plus .2ex minus .1ex, colframe = #2,coltitle = #2,tc-ebparbox,#4 } +\DeclareTotalTCBox{\ebfbox}{O{Lime}vO{}} + {colback = #1!10!white,colframe = #1!50!black,tc-ebfbox,#3}{#2} \DeclareTotalTCBox{\ebemph}{O{DarkSeaGreen}vO{}} - {on~line,blank,fuzzy~halo = 2pt~with~#1,#3}{#2} + {fuzzy~halo = 2pt~with~#1,tc-ebemph,#3}{#2} \DeclareTotalTCBox{\eblink}{O{Aqua}vO{}} - { - standard~jigsaw,on~line, - top = 1.5pt,bottom = 1.5pt,left = 1.5pt,right = 1.5pt, - boxrule = 0.75pt,arc = 1pt, - colback = #1,opacityback = 0.2,colframe = #1,#3 - }{#2} -\DeclareTotalTCBox{\ebfbox}{O{Lime}vO{}} - { - on~line,sharpish~corners, - top = 2pt,bottom = 2pt,left = 1pt,right = 1pt, - leftrule = 0pt,rightrule = 0pt, - colback = #1!10!white,colframe = #1!50!black,#3 - }{#2} + {colback = #1,colframe = #1,tc-eblink,#3}{#2} \endinput %% %% End of file `eb-tcolorbox.cfg'. |