diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-27 20:34:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-27 20:34:47 +0000 |
commit | ae40aec23d57900866b0c268f18ef716f372947d (patch) | |
tree | 1355bf454f12a6156b56645d9152219edaa7e688 /Master/texmf-dist/tex | |
parent | a30b486ea04192786a22645b5f1224a47a156b0f (diff) |
easybook (27jul21)
git-svn-id: svn://tug.org/texlive/trunk@60091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 85 |
3 files changed, 47 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index becaa53ed44..615f1acd16a 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -13,7 +13,7 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/07/25}{1.27q} +\ProvidesExplPackage{easybase}{2021/07/26}{1.27R} {Typeset Chinese theses or books} \cs_generate_variant:Nn \int_to_arabic:n { v } diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 2f8cf5eb6dc..59cc0f5bcfe 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -13,7 +13,7 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/07/25}{1.27q} +\ProvidesExplClass{easybook}{2021/07/26}{1.27R} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool 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'. |