skins and drawing

Upload: jimusos

Post on 02-Mar-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/26/2019 Skins and Drawing

    1/2

    9 Technical Overview and Customization

    This section provides a technical overview of the skin concept oftcolorbox. For most appli-cations of tcolorbox, one will not need to know the bells and whistles described herein. Youmay proceed to Section 10 on page 139 where the customization options for most users aredocumented.

    The following explanations also cover options and settings from the LIB skins library, see Sec-

    tion10on page139.

    9.1 Skins and Drawing Engines

    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 calledstandardP. 193 andstandard jigsawP. 194. The

    LIB skins library adds several more skins. To

    change to a skin, only one option from the core package has to be set.

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

    Sets the current skin to name. 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

    This is my content.

    My title

    This is my content.

    /tcb/skin first=name (style, no default, initially standard)If the box is set to be /tcb/breakableP. 351 and isbroken actually, then the skin for thefirstpart of the break sequence is set toname, see Subsection17.7on page362. Typically,this key is set by a /tcb/skin.

    /tcb/skin middle=name (style, no default, initially standard)If the box is set to be /tcb/breakableP. 351 and isbroken actually, then the skin for the

    middleparts (if any) of the break sequence is set to name, see Subsection 17.7on page362. Typically, this key is set by a /tcb/skin.

    /tcb/skin last=name (style, no default, initially standard)If the box is set to be /tcb/breakableP. 351 and isbroken actually, then the skin for thelastpart of the break sequence is set toname, see Subsection17.7on page362. Typically,this key is set by a /tcb/skin.

    /tcb/graphical environment=name (no default, initially pgfpicture)Sets the graphical environment for the tcolorbox to name. Feasible values are

    pgfpicture and tikzpicture or environments which inherit from one of these two. Thiskey is set by a /tcb/skin and may seldom be used directly.

    125

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-
  • 7/26/2019 Skins and Drawing

    2/2

    The skin of a tcolorboxis drawn by up to four engines. Afterwards, the text content is drawnwhich is not part of a skin. The four steps are:

    1. The frameof the box, drawn by /tcb/frame engine.

    2. The interiorof the box. The interior of a box with title is drawn differently from a boxwithout title. /tcb/interior titled engine or /tcb/interior engineP. 127 is usedto draw the interior.

    3. Thesegmentation(line) of the box, if there is a lower part; drawn by /tcb/segmentationengineP. 127.

    4. The title areaof the box, if there is a title and /tcb/title filledP. 27 is set to true;drawn by /tcb/title engineP. 127.

    /tcb/frame engine=name (no default, initially standard)Sets the frame drawing engine for a box to name. Typically, this key is set by a

    /tcb/skinP. 125. Feasible values for name are: standard: the original code from the core package, path: a tikz path which is controlled by /tcb/frame styleP. 139, pathjigsaw: a tikz path which is controlled by /tcb/frame styleP. 139,

    pathfirst: a tikz path which is controlled by /tcb/frame styleP. 139, pathfirstjigsaw: a tikz path which is controlled by /tcb/frame styleP. 139, pathmiddle: a tikz path which is controlled by /tcb/frame styleP. 139, pathmiddlejigsaw: a tikzpath which is controlled by /tcb/frame styleP. 139, pathlast: a tikz path which is controlled by /tcb/frame styleP. 139, pathlastjigsaw: a tikz path which is controlled by /tcb/frame styleP. 139, freelance: deprecated. spartan: a quite spartan code. empty: draw nothing.

    /tcb/interior titled engine=name (no default, initially standard)

    Sets the interiordrawing engine for a titled box to name. Typically, this key is set by a/tcb/skinP. 125. Feasible values for name are:

    standard: the original code from the core package, path: a tikz path which is controlled by /tcb/interior styleP. 140, pathfirst: a tikz path which is controlled by /tcb/interior styleP. 140, pathmiddle: a tikz path which is controlled by /tcb/interior styleP. 140, pathlast: a tikz path which is controlled by /tcb/interior styleP. 140, freelance: deprecated. spartan: a quite spartan code. empty: draw nothing.

    126

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-