diff options
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 |