diff options
author | Norbert Preining <norbert@preining.info> | 2021-05-24 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-05-24 03:01:24 +0000 |
commit | 5f0d648973cab5784f4bdb361bbe261b60493432 (patch) | |
tree | 8d52d91ad042d654b138e7ce1b7b87b85b837b11 /macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex | |
parent | f1261b349e875b842745b63258c3e338cb1fe3bf (diff) |
CTAN sync 202105240301
Diffstat (limited to 'macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex')
-rw-r--r-- | macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex b/macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex index ebf9f137d5..733c356d8e 100644 --- a/macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex +++ b/macros/latex/contrib/tcolorbox/tcolorbox.doc.vignette.tex @@ -533,7 +533,42 @@ These fadings are much \emph{weaker} than the normal fadings. \end{dispExample*} \end{vigTcbKey} +\clearpage +It is possible to assign different fadings for each side of the vignette, +if needed. Therefore, the fadings have to be applied individually with +the four style options + \refKey{/tcb/vig/north style}, + \refKey{/tcb/vig/south style}, + \refKey{/tcb/vig/east style}, and + \refKey{/tcb/vig/west style}. +\begin{dispExample*}{sbs,righthand width=3cm,center lower} +\begin{tikzpicture} + \fill [black!20] (-0.5,-0.5) rectangle (1.5,1.5); + \path [pattern=checkerboard,pattern color=black!30] + (-0.5,-0.5) rectangle (1.5,1.5); + \tcbvignette{ + north style={blue,path fading=south}, + east style ={blue,path fading=semi west}, + south style={blue,path fading=semi north}, + west style ={blue,path fading=east} + } +\end{tikzpicture} +\end{dispExample*} + +\begin{dispExample*}{sbs,righthand width=3cm,center lower} +\begin{tikzpicture} + \fill [black!20] (-0.5,-0.5) rectangle (1.5,1.5); + \path [pattern=checkerboard,pattern color=black!30] + (-0.5,-0.5) rectangle (1.5,1.5); + \tcbvignette{ + north style={blue,path fading=west}, + east style ={blue,path fading=south}, + south style={red,path fading=east}, + west style ={red,path fading=north} + } +\end{tikzpicture} +\end{dispExample*} \clearpage |