diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-23 22:09:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-23 22:09:19 +0000 |
commit | 0d7fc835562c9bb65c3ae6f64e46499031721fd2 (patch) | |
tree | 6274363ab768f87ac05850e5ebff084f66e7e507 /Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex | |
parent | 31a5d4cf45c66bd5927d6f405c2e2f7b8ec8dc5c (diff) |
tcolorbox (23apr13)
git-svn-id: svn://tug.org/texlive/trunk@30073 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 | 42 |
1 files changed, 40 insertions, 2 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 cb0feeb2f21..0bfdac01ef9 100644 --- a/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex +++ b/Master/texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.skins.tex @@ -971,13 +971,51 @@ Nevertheless, this skin can be applied independently. This styles relies on the skin \refSkin{enhancedmiddle}. It is intended to be used as an optical marker like a highlighter pen. \begin{dispExample} -\begin{marker} +\begin{tcolorbox}[marker] \lipsum[2] -\end{marker} +\end{tcolorbox} \end{dispExample} \end{docTcbKey} +\clearpage +\begin{dispListing*}{before upper={This examples demonstrates the creation of several + \emph{text marker} environments based on \refSkin{enhancedmiddle}.\par\medskip}} +\tcbset{textmarker/.style={% + skin=enhancedmiddle,breakable,parbox=false, + boxrule=0mm,leftrule=5mm,rightrule=5mm,boxsep=0mm,arc=0mm,outer arc=0mm, + left=3mm,right=3mm,top=1mm,bottom=1mm,enlarge left by=-8mm,enlarge right by=-8mm, + toptitle=1mm,bottomtitle=1mm,width=\the\dimexpr\linewidth+1.6cm\relax}} + +\newtcolorbox{yellow}{textmarker,colback=yellow!5!white,colframe=yellow} +\newtcolorbox{orange}{textmarker,colback=DarkOrange!5!white, + colframe=DarkOrange!75!yellow} +\newtcolorbox{red}{textmarker,colback=red!5!white,colframe=red} +\newtcolorbox{blue}{textmarker,colback=DeepSkyBlue!5!white,colframe=DeepSkyBlue} +\newtcolorbox{green}{textmarker,colback=Chartreuse!5!white,colframe=Chartreuse} + +\begin{yellow} + \lipsum[1] +\end{yellow} + +\begin{orange} + \lipsum[2] +\end{orange} + +\begin{red} + \lipsum[3] +\end{red} + +\begin{green} + \lipsum[4] +\end{green} + +\begin{blue} + \lipsum[5] +\end{blue} +\lipsum[6]% following text +\end{dispListing*} +{\tcbusetemp} \clearpage |