20 \begin{tikzpicture}[baseline=(current bounding box.north)]% |
20 \begin{tikzpicture}[baseline=(current bounding box.north)]% |
21 \draw (0,0) node[drop shadow,inner sep=2mm,fill=cream,ultra thick,draw=red,rounded corners=2mm]% |
21 \draw (0,0) node[drop shadow,inner sep=2mm,fill=cream,ultra thick,draw=red,rounded corners=2mm]% |
22 \bgroup\begin{minipage}{#1}\raggedright{}} |
22 \bgroup\begin{minipage}{#1}\raggedright{}} |
23 {\end{minipage}\egroup;% |
23 {\end{minipage}\egroup;% |
24 \end{tikzpicture}\bigskip} |
24 \end{tikzpicture}\bigskip} |
|
25 |
|
26 |
|
27 %%% for trees |
|
28 %% http://anorien.csc.warwick.ac.uk/mirrors/CTAN/graphics/pgf/contrib/forest/forest.pdf |
|
29 |
|
30 \newcommand\grid[1]{% |
|
31 \begin{tikzpicture}[baseline=(char.base)] |
|
32 \path[use as bounding box] |
|
33 (0,0) rectangle (1em,1em); |
|
34 \draw[red!50, fill=red!20] |
|
35 (0,0) rectangle (1em,1em); |
|
36 \node[inner sep=1pt,anchor=base west] |
|
37 (char) at (0em,\gridraiseamount) {#1}; |
|
38 \end{tikzpicture}} |
|
39 \newcommand\gridraiseamount{0.12em} |
|
40 |
|
41 \makeatletter |
|
42 \newcommand\Grid[1]{% |
|
43 \@tfor\z:=#1\do{\grid{\z}}} |
|
44 \makeatother |
|
45 |
|
46 \newcommand\Vspace[1][.3em]{% |
|
47 \mbox{\kern.06em\vrule height.3ex}% |
|
48 \vbox{\hrule width#1}% |
|
49 \hbox{\vrule height.3ex}} |
|
50 |
|
51 \def\VS{\Vspace[0.6em]} |