library skin

Upload: jimusos

Post on 02-Mar-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/26/2019 Library Skin

    1/3

    10 Library LIB 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

    tikzinstead ofpgf.

    10.1 Style Option Keys

    The following style options are applicable for all skins which use engines of typepath,pathfirst,pathmiddle, or pathlast. Especially, the skin enhancedP. 195 supports all of them and

    standardP. 193 none.

    /tcb/frame style=tikz keys (style, no default)Thetikz keysare used inside the tikzpath command for drawing the frameof the box.This option is available if the /tcb/frame engineP. 126 is set to path, pathfirst,

    pathmiddle, or pathlast. It is notavailable 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=file name (no default, initially unset)Fills the frame with an external image referenced by file name. For advanced fea-tures like blending of a picture with the background, use /tcb/frame styletogether with/tikz/fill stretch imageP. 245.

    \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}

    My title

    This is a tcolorbox.

    This is the lower part.

    139

    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 Library Skin

    2/3

    /tcb/frame style tile={graphics options}{file name} (no default, initially unset)Fills the frame with a tile pattern based on an external image referenced byfile name. Thegraphics optionsare given to the underlying \includegraphicscommand. For advancedfeatures like blending of a picture with the background, use /tcb/frame styleP. 139 to-gether with /tikz/fill tile imageP. 249.

    \tcbset{colback=red!5!white,coltitle=red!30!black,

    opacityback=0.75,fonttitle=\bfseries}

    \begin{tcolorbox}[enhanced,title=My title,

    frame style tile={width=1cm}{pink_marble.png}]

    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 hidden (style, no value)This is a shortcut for frame style={draw=none,fill=none}. Depending on the skin, thisoption switches off the drawing of the frame. Alternatively, use /tcb/frame emptyP. 129.

    \tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries,coltitle=black}

    \begin{tcolorbox}[enhanced,title=My title,

    frame hidden]

    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/interior style=tikz keys (style, no default)The tikz keys are used inside the tikz path command for drawing the interior of thebox. They are used for the titled and for the untitled version as well.This option is available if the /tcb/interior titled engineP. 126 or /tcb/interiorengineP. 127 is set to path, pathfirst, pathmiddle, or pathlast. It is notavailable for

    standard.

    \tcbset{colframe=red!75!black,fonttitle=\bfseries}

    \begin{tcolorbox}[enhanced,title=My title,

    interior style={left color=red!20!white,

    right color=yellow!50!white}]

    This is a \textbf{tcolorbox}.

    \tcblower

    This is the lower part.

    \end{tcolorbox}

    My title

    This is a tcolorbox.

    This is the lower part.

    140

    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 Library Skin

    3/3

    /tcb/interior style image=file name (no default, initially unset)Fills the interior with an external image referenced by file name. For advanced featureslike blending of a picture with the background, use /tcb/interior styleP. 140 togetherwith /tikz/fill stretch imageP. 245.

    \tcbset{colframe=red!75!black,fonttitle=\bfseries}

    \begin{tcolorbox}[enhanced,title=My title,

    interior style image=goldshade.png]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/interior style tile={graphics options}{file name} (no default, initially unset)Fills the interior with a tile pattern based on an external image referenced by file name.The graphics options are given to the underlying \includegraphics command. Foradvanced features like blending of a picture with the background, use /tcb/interiorstyleP. 140 together with /tikz/fill tile imageP. 249.

    \tcbset{colframe=red!75!black,fonttitle=\bfseries}

    \begin{tcolorbox}[enhanced,title=My title,

    interior style tile={width=2cm}{crinklepaper.png}]

    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/interior hidden (style, no value)This is a shortcut for interior style={draw=none,fill=none}. Depending on the skin,this option switches off the drawing of the interior. Alternatively, use /tcb/interior

    emptyP. 130

    and/or /tcb/interior titled emptyP. 129

    .

    \tcbset{frame style={top color=red!20!white,

    bottom color=red!20!white!75!black},

    fonttitle=\bfseries,coltitle=black}

    \begin{tcolorbox}[enhanced,title=My title,

    interior hidden]

    This is a \textbf{tcolorbox}.

    \tcblower

    This is the lower part.

    \end{tcolorbox}

    My title

    This is a tcolorbox.

    This is the lower part.

    141

    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://-/?-