Anda di halaman 1dari 3

9

Technical Overview and Customization

The following explanations also cover options and settings from the
tion 10 on page 139.

9.1

LIB

This section provides a technical overview of the skin concept of tcolorbox. For most applications of tcolorbox, one will not need to know the bells and whistles described herein. You
may proceed to Section 10 on page 139 where the customization options for most users are
documented.
skins library, see Sec-

Skins and Drawing Engines

LIB

From a technical point of view, a skin is a style definition for the appearance of a tcolorbox.
The core package provides some additional option keys for skins but only two skins called
standard P. 193 and standard jigsaw P. 194 . The
skins library adds several more skins. To
change to a skin, only one option from the core package has to be set.
/tcb/skin=hnamei
(style, no default, initially standard)
Sets the current skin to hnamei. This is a style definition which sets all the following keys,
i. e. for many use cases there is nothing more to do.
\tcbset{colback=Salmon!50!white,colframe=FireBrick!75!black,
width=(\linewidth-8mm)/2,before=,after=\hfill,equal height group=ske}
\begin{tcolorbox}[adjusted title=My title]
This is my content.
\end{tcolorbox}
\begin{tcolorbox}[skin=beamer,beamer,adjusted title=My title]
This is my content.
\end{tcolorbox}
My title

My title

This is my content.

This is my content.

/tcb/skin first=hnamei
(style, no default, initially standard)

P.
351
If the box is set to be /tcb/breakable
and is broken actually, then the skin for the
first part of the break sequence is set to hnamei, see Subsection 17.7 on page 362. Typically,
this key is set by a /tcb/skin.
/tcb/skin middle=hnamei
(style, no default, initially standard)
If the box is set to be /tcb/breakable P. 351 and is broken actually, then the skin for the
middle parts (if any) of the break sequence is set to hnamei, see Subsection 17.7 on page
362. Typically, this key is set by a /tcb/skin.
/tcb/skin last=hnamei
(style, no default, initially standard)
If the box is set to be /tcb/breakable P. 351 and is broken actually, then the skin for the
last part of the break sequence is set to hnamei, see Subsection 17.7 on page 362. Typically,
this key is set by a /tcb/skin.
/tcb/graphical environment=hnamei
(no default, initially pgfpicture)
Sets the graphical environment for the tcolorbox to hnamei. Feasible values are
pgfpicture and tikzpicture or environments which inherit from one of these two. This
key is set by a /tcb/skin and may seldom be used directly.

125

The skin of a tcolorbox is drawn by up to four engines. Afterwards, the text content is drawn
which is not part of a skin. The four steps are:
1. The frame of the box, drawn by /tcb/frame engine.
2. The interior of the box. The interior of a box with title is drawn differently from a box
without title. /tcb/interior titled engine or /tcb/interior engine P. 127 is used
to draw the interior.
3. The segmentation (line) of the box, if there is a lower part; drawn by /tcb/segmentation
engine P. 127 .
4. The title area of the box, if there is a title and /tcb/title filled P. 27 is set to true;
drawn by /tcb/title engine P. 127 .
/tcb/frame engine=hnamei
(no default, initially standard)
Sets the frame drawing engine for a box to hnamei. Typically, this key is set by a
/tcb/skin P. 125 . Feasible values for hnamei are:
standard: the original code from the core package,
path: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathjigsaw: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathfirst: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathfirstjigsaw: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathmiddle: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathmiddlejigsaw: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathlast: a tikz path which is controlled by /tcb/frame style P. 139 ,
pathlastjigsaw: a tikz path which is controlled by /tcb/frame style P. 139 ,
freelance: deprecated.
spartan: a quite spartan code.
empty: draw nothing.
/tcb/interior titled engine=hnamei
(no default, initially standard)
Sets the interior drawing engine for a titled box to hnamei. Typically, this key is set by a
/tcb/skin P. 125 . Feasible values for hnamei are:
standard: the original code from the core package,
path: a tikz path which is controlled by /tcb/interior style P. 140 ,
pathfirst: a tikz path which is controlled by /tcb/interior style P. 140 ,
pathmiddle: a tikz path which is controlled by /tcb/interior style P. 140 ,
pathlast: a tikz path which is controlled by /tcb/interior style P. 140 ,
freelance: deprecated.
spartan: a quite spartan code.
empty: draw nothing.

126

/tcb/interior engine=hnamei
(no default, initially standard)
Sets the interior drawing engine for an untitled box to hnamei. Typically, this key is set
by a /tcb/skin P. 125 . Feasible values for hnamei are:
standard: the original code from the core package,
path: a tikz path which is controlled by /tcb/interior style P. 140 ,
pathfirst: a tikz path which is controlled by /tcb/interior style P. 140 ,
pathmiddle: a tikz path which is controlled by /tcb/interior style P. 140 ,
pathlast: a tikz path which is controlled by /tcb/interior style P. 140 ,
freelance: deprecated.
spartan: a quite spartan code.
empty: draw nothing.
/tcb/segmentation engine=hnamei
(no default, initially standard)
Sets the segmentation (line) drawing engine for a box to hnamei. Typically, this key is set
by a /tcb/skin P. 125 . Feasible values for hnamei are:
standard: the original code from the core package,
path: a tikz path which is controlled by /tcb/segmentation style P. 142 ,
freelance: deprecated.
spartan: a quite spartan code.
empty: draw nothing.
/tcb/title engine=hnamei
(no default, initially standard)
Sets the title area drawing engine for a titled box to hnamei. Typically, this key is set by a
/tcb/skin P. 125 . Feasible values for hnamei are:
standard: the original code from the core package,
path: a tikz path which is controlled by /tcb/title style P. 142 ,
pathfirst: a tikz path which is controlled by /tcb/title style P. 142 ,
pathmiddle: a tikz path which is controlled by /tcb/title style P. 142 ,
pathlast: a tikz path which is controlled by /tcb/title style P. 142 ,
freelance: deprecated.
spartan: a quite spartan code.
empty: draw nothing.

! using code option keys, see Section 9.2 on page 129.

After an engine is set to an initializing value, the resulting graphical code can be changed

127

Anda mungkin juga menyukai