Você está na página 1de 1

13 Library vignette

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

\tcbuselibrary{vignette}

This also loads the LIB skins library, see Section 10 on page 148, and the fadings library of tikz
[22].

13.1 Vignette Drawing

N 2016-04-22 \tcbvignette{hoptionsi}
In this context, a vignette is a four part rectangular frame. It is constructed as several
TikZ paths and, therefore, can only be used inside a tikzpicture environment or inside
tcolorboxÕ P. 12 options.
The hoptionsi control position, size and style settings of the vignette. Theses options have
the common key path /tcb/vig/ and are described in the following.
The next examples show direct \tcbvignette usage without a tcolorboxÕ P. 12 .

\begin{tikzpicture}
\tcbvignette{}
\end{tikzpicture}

\begin{tikzpicture}
\node[draw,fill=blue!15!white] (A) {Test};
Test
\tcbvignette{outside node=A,raised color=blue}
\end{tikzpicture}

\begin{tikzpicture}
\node[draw,fill=blue!15!white] (A) {Another Test};
\tcbvignette{size=3mm,outside node=A,
Another Test
north style=red,east style=yellow,
south style=blue,west style=green}
\end{tikzpicture}

\begin{tikzpicture}
\node[inner sep=3mm,fill=red!75] (A) {Test};
Test
\tcbvignette{over node=A,fade in}
\end{tikzpicture}

\tcbvignette can be used directly inside appropriate options keys for tcolorboxÕ P. 12 .
Note that options like /tcb/underlayÕ P. 195 need /tcb/enhancedÕ P. 206 or similar settings.

265

Você também pode gostar