diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-17 23:17:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-17 23:17:32 +0000 |
commit | 0c5f06400403c02946d916560fc5cea65e1abe4b (patch) | |
tree | 97a362e2e8566cd3ff4c84970d383ab4db17d2c9 /Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex | |
parent | 349bac64b70fa1b4e88f05d28d2373e43e601c6a (diff) |
tcolorbox (17apr13)
git-svn-id: svn://tug.org/texlive/trunk@30004 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex | 122 |
1 files changed, 101 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex index 6b331cc9413..cb0feeb2f21 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex @@ -207,16 +207,35 @@ and \refSkin{standard} \emph{none}. |path|, |pathfirst|, |pathmiddle|, or |pathlast|. It is \emph{not} available for |standard| and it \emph{may} be applicable for |freelance|. -\begin{dispExample} +\begin{dispExample*}{sbs,lefthand ratio=0.66} \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}] + 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} -\end{dispExample} +\end{dispExample*} +\end{docTcbKey} + + +\begin{docTcbKey}{frame hidden}{}{style, no value} + This is a shortcut for |frame style={draw=none,fill=none}|. + Depending on the skin, this option switches off the drawing of the + frame. +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\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} +\end{dispExample*} \end{docTcbKey} @@ -229,19 +248,40 @@ This is the lower part. |path|, |pathfirst|, |pathmiddle|, or |pathlast|. It is \emph{not} available for |standard| and it \emph{may} be applicable for |freelance|. -\begin{dispExample} +\begin{dispExample*}{sbs,lefthand ratio=0.66} \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}] + 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} -\end{dispExample} +\end{dispExample*} \end{docTcbKey} \clearpage + +\begin{docTcbKey}{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. +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\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} +\end{dispExample*} +\end{docTcbKey} + + \begin{docTcbKey}{segmentation style}{=\meta{\texttt{\upshape tikz} keys}}{style, no default} The \meta{\texttt{\upshape tikz} keys} are used inside the |tikz| path command for drawing the \emph{segmentation} line of the box.\\ @@ -249,19 +289,40 @@ This is the lower part. is set to |path|. It is \emph{not} available for |standard| and it \emph{may} be applicable for |freelance|. -\begin{dispExample} -\tcbset{colback=red!5!white,colframe=red!75!black,fonttitle=\bfseries} +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\tcbset{colback=red!5!white,colframe=red!75!black, + fonttitle=\bfseries} \begin{tcolorbox}[enhanced,title=My title, - segmentation style={double=white,draw=blue,double distance=1pt,solid}] + segmentation style={double=white,draw=blue, + double distance=1pt,solid}] This is a \textbf{tcolorbox}. \tcblower This is the lower part. \end{tcolorbox} -\end{dispExample} +\end{dispExample*} \end{docTcbKey} +\begin{docTcbKey}{segmentation hidden}{}{style, no value} + This is a shortcut for |segmentation style={draw=none,fill=none}|. + Depending on the skin, this option switches off the drawing of the + segmentation line. +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\tcbset{colback=red!5!white,colframe=red!75!black, + fonttitle=\bfseries} + +\begin{tcolorbox}[title=My title, + enhanced,segmentation hidden] +This is a \textbf{tcolorbox}. +\tcblower +This is the lower part. +\end{tcolorbox} +\end{dispExample*} +\end{docTcbKey} + + +\clearpage \begin{docTcbKey}{title style}{=\meta{\texttt{\upshape tikz} keys}}{style, no default} The \meta{\texttt{\upshape tikz} keys} are used inside the |tikz| path command for drawing the \emph{title area} of the box.\\ @@ -269,21 +330,21 @@ This is the lower part. |path|, |pathfirst|, |pathmiddle|, or |pathlast|. It is \emph{not} available for |standard| and it \emph{may} be applicable for |freelance|. -\begin{dispExample} -\tcbset{colback=red!5!white,colframe=red!75!black,coltitle=blue!50!black, - fonttitle=\bfseries} +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\tcbset{colback=red!5!white,colframe=red!75!black, + coltitle=blue!50!black,fonttitle=\bfseries} \begin{tcolorbox}[enhanced,title=My title, - title style={left color=blue!15!yellow,right color=red!85!black}] + title style={left color=blue!15!yellow, + right color=red!85!black}] This is a \textbf{tcolorbox}. \tcblower This is the lower part. \end{tcolorbox} -\end{dispExample} +\end{dispExample*} \end{docTcbKey} -\clearpage \begin{docTcbKey}{colbacktitle}{=\meta{color}}{style, no default, initially unset} Abbreviation for setting \refKey{/tcb/title style} to |fill=|\meta{color}. This fills the background of the title area with the given \meta{color}.\\ @@ -291,19 +352,38 @@ This is the lower part. |path|, |pathfirst|, |pathmiddle|, or |pathlast|. It is \emph{not} available for |standard| and it \emph{may} be applicable for |freelance|. -\begin{dispExample} -\tcbset{colback=red!5!white,colframe=red!75!black,coltitle=blue!50!black, - fonttitle=\bfseries} +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\tcbset{colback=red!5!white,colframe=red!75!black, + coltitle=blue!50!black,fonttitle=\bfseries} -\begin{tcolorbox}[enhanced,title=My title,colbacktitle=yellow!50!white] +\begin{tcolorbox}[enhanced,title=My title, + colbacktitle=yellow!50!white] This is a \textbf{tcolorbox}. \tcblower This is the lower part. \end{tcolorbox} -\end{dispExample} +\end{dispExample*} \end{docTcbKey} +\begin{docTcbKey}{title hidden}{}{style, no value} + This is a shortcut for |title style={draw=none,fill=none}|. + Depending on the skin, this option switches off the drawing of the + title background. This is the default behavior for \refSkin{standard} and + \refSkin{enhanced}. +\begin{dispExample*}{sbs,lefthand ratio=0.66} +\tcbset{colback=red!5!white,colframe=red!75!black, + fonttitle=\bfseries} + +\begin{tcolorbox}[title=My title, + enhanced,title hidden] +This is a \textbf{tcolorbox}. +\tcblower +This is the lower part. +\end{tcolorbox} +\end{dispExample*} +\end{docTcbKey} + \clearpage \subsection{Code Option Keys}\label{subsec:addcodeoptions} |