Debian Codegraph @

texmf-dist/doc/latex/tcolorbox/tcolorbox.doc.quickref.tex

raw
1 % !TeX root = tcolorbox.tex
2 % include file of tcolorbox.tex (manual of the LaTeX package tcolorbox)
3 \clearpage
4 \section{Quick Reference}\label{sec:quickref}%
5 \tcbset{external/prefix=external/quickref_}%
6
7 \makeatletter
8 \begin{tcolorbox}[enhanced,title={tcolorbox},
9 enlarge top initially by=1cm,enlarge bottom finally by=1cm,left skip=1cm,right skip=1cm,
10 colframe=red!50!black!30!white,colback=red!10!white!40!white,
11 colbacktitle=red!30!white,colupper=black!20!white,
12 code={\appto\kvtcb@shadow{%
13 \path[fill=yellow!20!white,draw=yellow!50!black,dashed,line width=0.4pt]
14 ([xshift=-1cm,yshift=-1cm]frame.south west) rectangle
15 ([xshift=1cm,yshift=1cm]frame.north east);
16 }},
17 finish={
18 \draw[thick,<->] ([yshift=-1.3cm]frame.north west)-- node[below]{\refKey{/tcb/width}}
19 ([yshift=-1.3cm]frame.north east);
20 \draw[thick,<->] ([xshift=-15mm]frame.north east)-- node[left,pos=0.35]{\refKey{/tcb/height}}
21 ([xshift=-15mm]frame.south east);
22 \draw[thick,<->] (frame.north)-- node[right]{\refKey{/tcb/before}, \refKey{/tcb/before skip}} +(0,1);
23 \draw[thick,<->] (frame.south)-- node[right]{\refKey{/tcb/after}, \refKey{/tcb/after skip}} +(0,-1);
24 \draw[thick,<->] (frame.west)-- node[below right,align=center]{\refKey{/tcb/left skip}\\\refKey{/tcb/grow to left by}}+(-1,0);
25 \draw[thick,<->] (frame.east)-- node[below left,align=center]{\refKey{/tcb/right skip}\\\refKey{/tcb/grow to right by}}+(1,0);
26 }
27 ]
28 \lipsum[1]
29 \end{tcolorbox}
30 \makeatother
31
32 \bigskip
33 \bigskip
34
35 \begin{tcolorbox}[enhanced,title={tcolorbox},before skip=5mm,after skip=5mm,
36 colframe=red!50!black!30!white,colback=red!10!white!40!white,
37 colbacktitle=red!30!white,coltext=black!20!white,
38 toptitle=1mm,bottomtitle=1mm,
39 overlay={\begin{tcbclipinterior}%
40 \path[fill=red!10!white!40!yellow!20!white,draw=yellow!50!black,dotted]
41 ([xshift=1mm,yshift=1mm]interior.south west)
42 rectangle ([xshift=-1mm,yshift=-1mm]interior.north east);
43 \path[fill=red!10!white!40!white,draw=yellow!50!black,dotted] (
44 [xshift=5mm,yshift=3mm]interior.south west)
45 rectangle ([xshift=-5mm,yshift=-3mm]interior.north east);
46 \path[fill=red!10!white!40!yellow!20!white,draw=yellow!50!black,dotted]
47 ([xshift=5mm,yshift=-1mm]segmentation.south west)
48 rectangle ([xshift=-5mm,yshift=1mm]segmentation.north east);
49 \path[fill=red!10!white!40!white,draw=yellow!50!black,dotted]
50 ([xshift=5mm,yshift=1mm]segmentation.south west)
51 rectangle ([xshift=-5mm,yshift=-1mm]segmentation.north east);
52 \path[dashed,draw=red!50!black!30!white] (segmentation.west) -- (segmentation.east);
53 \end{tcbclipinterior}%
54 \begin{tcbcliptitle}
55 \path[fill=red!30!white!70!yellow,draw=yellow!50!black,dotted]
56 ([xshift=1mm,yshift=1mm]title.south west)
57 rectangle ([xshift=-1mm,yshift=-1mm]title.north east);
58 \path[fill=red!30!white,draw=yellow!50!black,dotted]
59 ([xshift=5mm,yshift=2mm]title.south west)
60 rectangle ([xshift=-5mm,yshift=-2mm]title.north east);
61 \end{tcbcliptitle}},
62 finish={
63 \coordinate (A) at ([yshift=-0.25mm]frame.north);
64 \draw[thick,<-] (A) -- +(-1,0.3) node[left]{\refKey{/tcb/toprule}};
65 \coordinate (A) at ([yshift=-0.75mm]A);
66 \draw[thick,<-] (A) -- +(1,0) node[right]{\refKey{/tcb/boxsep}};
67 \coordinate (A) at ([yshift=-1mm]A);
68 \draw[thick,<-] (A) -- +(-1,0) node[left]{\refKey{/tcb/toptitle}};
69 %
70 \coordinate (A) at ([yshift=1.00mm]interior.north);
71 \draw[thick,<-] (A) -- +(1,0) node[right]{\refKey{/tcb/boxsep}};
72 \coordinate (A) at ([yshift=1mm]A);
73 \draw[thick,<-] (A) -- +(-1,0) node[left]{\refKey{/tcb/bottomtitle}};
74 \coordinate (A) at ([yshift=0.25mm]interior.north);
75 \draw[thick,<-] (A) -- +(-1,-0.4) node[left]{\refKey{/tcb/titlerule}};
76 \coordinate (A) at ([yshift=-0.5mm]interior.north);
77 \draw[thick,<-] (A) -- +(1,-0.2) node[right]{\refKey{/tcb/boxsep}};
78 \coordinate (A) at ([yshift=-1.5mm]A);
79 \draw[thick,<-] (A) -- +(-1,-0.6) node[left]{\refKey{/tcb/top}};
80 %
81 \coordinate (A) at ([yshift=2.0mm]segmentation);
82 \draw[thick,<-] (A) -- +(-1,0) node[left]{\refKey{/tcb/middle}};
83 \coordinate (A) at ([yshift=0.5mm]segmentation);
84 \draw[thick,<-] (A) -- +(1,0.2) node[right]{\refKey{/tcb/boxsep}};
85 \coordinate (A) at ([yshift=-0.5mm]segmentation);
86 \draw[thick,<-] (A) -- +(1,-0.2) node[right]{\refKey{/tcb/boxsep}};
87 \coordinate (A) at ([yshift=-2.0mm]segmentation);
88 \draw[thick,<-] (A) -- +(-1,0) node[left]{\refKey{/tcb/middle}};
89 %
90 \coordinate (A) at ([yshift=0.25mm]frame.south);
91 \draw[thick,<-] (A) -- +(-1,-0.3) node[left]{\refKey{/tcb/bottomrule}};
92 \coordinate (A) at ([yshift=0.75mm]A);
93 \draw[thick,<-] (A) -- +(1,0) node[right]{\refKey{/tcb/boxsep}};
94 \coordinate (A) at ([yshift=1.5mm]A);
95 \draw[thick,<-] (A) -- +(-1,0) node[left]{\refKey{/tcb/bottom}};
96 %
97 \coordinate (A) at ([xshift=0.25mm]frame.west);
98 \draw[thick,<-] (A) -- +(-0.3,-1) node[below]{\refKey{/tcb/leftrule}};
99 \coordinate (A) at ([xshift=0.75mm]A);
100 \draw[thick,<-] (A) -- +(0,1) node[above]{\refKey{/tcb/boxsep}};
101 \coordinate (A) at ([xshift=2.5mm]A);
102 \draw[thick,<-] (A) -- +(0.7,0.5) node[above right]{\refKey{/tcb/left}};
103 %
104 \coordinate (A) at ([xshift=-0.25mm]frame.east);
105 \draw[thick,<-] (A) -- +(0.3,-1) node[below]{\refKey{/tcb/rightrule}};
106 \coordinate (A) at ([xshift=-0.75mm]A);
107 \draw[thick,<-] (A) -- +(0,1) node[above]{\refKey{/tcb/boxsep}};
108 \coordinate (A) at ([xshift=-2.5mm]A);
109 \draw[thick,<-] (A) -- +(-0.7,0.5) node[above left]{\refKey{/tcb/right}};
110 }
111 ]
112 \lipsum[1]
113 \tcblower
114 \lipsum[2]
115 \end{tcolorbox}
116
117
118