You are on page 1of 1

Library

LIB

10

skins

The library is loaded by a package option or inside the preamble by:


\tcbuselibrary{skins}

This also loads the package tikz [20]. Typically but not necessarily, the following skins use
tikz instead of pgf.

10.1

Style Option Keys

The following style options are applicable for all skins which use engines of type path, pathfirst,
pathmiddle, or pathlast. Especially, the skin enhanced P. 196 supports all of them and
standard P. 194 none.
/tcb/frame style=htikz keysi
(style, no default)
The htikz keysi are used inside the tikz path command for drawing the frame of the box.
This option is available if the /tcb/frame engine P. 127 is set to path, pathfirst,
pathmiddle, or pathlast. It is not available for standard.
\tcbset{colback=red!5!white,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
frame style={left color=red!75!black,
right color=blue!75!black}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

My title
This is a tcolorbox.
This is the lower part.

/tcb/frame style image=hfile namei


(no default, initially unset)
Fills the frame with an external image referenced by hfile namei. For advanced features like blending of a picture with the background, use /tcb/frame style together with
/tikz/fill stretch image P. 246 .
\tcbset{colback=red!5!white,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
frame style image=blueshade.png]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

140

My title
This is a tcolorbox.
This is the lower part.

You might also like