06.01.2015 Views

Manual for the tcolorbox package

Manual for the tcolorbox package

Manual for the tcolorbox package

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

tcb/tikz upper=〈options〉<br />

(style)<br />

This style adds a centered tikzpicture environment to <strong>the</strong> start and end of <strong>the</strong> upper<br />

part. The 〈options〉 may be given as TikZ picture options.<br />

% \use<strong>package</strong>{tikz}<br />

\begin{<strong>tcolorbox</strong>}[tikz upper,fonttitle=\bfseries,colback=white,colframe=black,<br />

title=\tikzname\ drawing]<br />

\path[fill=yellow,draw=yellow!75!red] (0,0) circle (1cm);<br />

\fill[red] (45:5mm) circle (1mm);<br />

\fill[red] (135:5mm) circle (1mm);<br />

\draw[line width=1mm,red] (215:5mm) arc (215:325:5mm);<br />

\end{<strong>tcolorbox</strong>}<br />

TikZ drawing<br />

/tcb/tikz lower=〈options〉<br />

(style)<br />

This style adds a centered tikzpicture environment to <strong>the</strong> start and end of <strong>the</strong> lower part.<br />

The 〈options〉 may be given as TikZ picture options.<br />

% \use<strong>package</strong>{tikz}<br />

% \usetikzlibrary{skins,listings}<br />

\tcbset{tikz lower,listing side text,fonttitle=\bfseries,<br />

bicolor,colback=LightBlue!50!white,colbacklower=white,colframe=black,<br />

righthand width=3cm}<br />

\begin{tcblisting}{title=\tikzname\ drawing}<br />

\path[fill=yellow,draw=yellow!75!red]<br />

(0,0) circle (1cm);<br />

\fill[red] (45:5mm) circle (1mm);<br />

\fill[red] (135:5mm) circle (1mm);<br />

\draw[line width=1mm,red]<br />

(215:5mm) arc (215:325:5mm);<br />

\end{tcblisting}<br />

TikZ drawing<br />

\path[fill=yellow,draw=yellow!75!red]<br />

(0,0) circle (1cm);<br />

\fill[red] (45:5mm) circle (1mm);<br />

\fill[red] (135:5mm) circle (1mm);<br />

\draw[line width=1mm,red]<br />

(215:5mm) arc (215:325:5mm);<br />

50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!