summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg')
-rw-r--r--Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg27
1 files changed, 12 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
index 35f5b4ff422..e7ee22cc0fe 100644
--- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
+++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
@@ -11,17 +11,11 @@
%% 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.27p}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/25}{1.27q}
{Customization of tcolorbox for easybook}
-\cs_new_protected:Npn \eb_tcb_theorem_set:n #1
- { \tcbset{tc-theorem/.style = {#1}} }
-\cs_new_protected:Npn \eb_tcb_outline_set:n #1
- { \tcbset{tc-outline/.style = {#1}} }
-\cs_new_protected:Npn \eb_tcb_exercise_set:n #1
- { \tcbset{tc-exercise/.style = {#1}} }
\tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip }
-\eb_tcb_theorem_set:n
+\tcbappstyle*{theorem}
{
enhanced~jigsaw,pad~at~break* = 3pt,
opacityback = 0,
@@ -32,7 +26,7 @@
top = \eb@tc@line@skip,bottom = \eb@tc@line@skip,
middle = \eb@tc@line@skip
}
-\eb_tcb_outline_set:n
+\tcbappstyle*{outline}
{
enhanced,nofloat,
tikznode~boxed~title,
@@ -45,13 +39,15 @@
arc = 3pt,
left = 2pc,right = 2pc,top = 1.5pc,bottom = 1pc
}
-\eb_tcb_exercise_set:n
+\tcbappstyle*{exercise}
{
blank,on~line,center,
sharpish~corners,
fontupper = \Large\sffamily,
beforeafter~skip = 3.75ex plus .2ex minus .1ex
}
+\tcbappstyle*{easybox}{}
+\tcbappstyle*{ebparbox}{}
\tcbset
{
breakable,
@@ -60,7 +56,6 @@
boxrule = \l__eb_rule_width_dim
}
-\newtcbox[auto~counter]{\eb@tc@exercise@box}[1]{tc-exercise,#1}
\tl_new:N \p@eb@exercise
\tl_new:N \eb@tc@list@prologue
\cs_new:Npn \exerprologue #1 { \tl_gset:Nn \eb@tc@list@prologue {#1} }
@@ -94,13 +89,15 @@
\hspace{\use:c { eb@toc@#1@numsep }}
}
+\newtcbox[auto~counter]{\eb@tc@exercise@box}[1]{tc-exercise,#1}
+\newtcolorbox{eb@tc@outline@box}[2]{title = #1,tc-outline,#2}
\NewDocumentEnvironment{outline}{O{}D(){\abstractname}o+b}
{
- \begin{tcolorbox}[tc-outline,title = #2,IfValueT = {#3}{#3}]
+ \begin{eb@tc@outline@box}{#2}{IfValueT = {#3}{#3}}
\begin{eb@outline@list}[#1]
#4
\end{eb@outline@list}
- \end{tcolorbox}
+ \end{eb@tc@outline@box}
}{}
\NewDocumentEnvironment{exercise}{st+od()O{}+b}
{
@@ -150,7 +147,7 @@
bottomtitle = \eb@tc@line@skip,
beforeafter~skip = 1.75ex plus .2ex minus .1ex,
halign~upper = left,halign~lower = left,
- center~title,#4
+ center~title,tc-easybox,#4
}
\DeclareTColorBox{ebparbox}{sO{DarkSlateBlue}d()O{}}
{
@@ -174,7 +171,7 @@
left = 8pt,
middle = \eb@tc@line@skip,bottomtitle = \eb@tc@line@skip,
beforeafter~skip = 1.75ex plus .2ex minus .1ex,
- colframe = #2,coltitle = #2,#4
+ colframe = #2,coltitle = #2,tc-ebparbox,#4
}
\DeclareTotalTCBox{\ebemph}{O{DarkSeaGreen}vO{}}
{on~line,blank,fuzzy~halo = 2pt~with~#1,#3}{#2}