Debian Codegraph @

texmf-dist/doc/latex/cals/examples/table2.tex

raw
1 \makeatletter
2 \newcommand\bbrow{\brow\setbox\cals@current@row=
3 \hbox{\vbox to 3cm{}}}
4
5 \newenvironment{decotable}{\begin{calstable}
6 \fontsize{15pt}{17pt}\selectfont
7 \cals@setpadding{Ag}\cals@setcellprevdepth{Al}
8 \cals@paddingL=0pt \relax
9 \cals@paddingR=0pt \relax
10 \def\cals@framecs@width{2pt}
11 \def\cals@rs@width{8pt}
12 \def\cals@cs@width{4pt}
13 }{\end{calstable}}
14
15 \begin{decotable}
16 \colwidths{{3cm}{3cm}{3cm}}
17 \bbrow
18 \cell{left,\\top}
19 \alignC \cell{center,\\top}
20 \def\cals@borderL{0pt}\def\cals@borderB{0pt}
21 \alignR \cell{right,\\top} \erow
22 \let\cals@borderL=\relax \let\cals@borderB=\relax
23 \bbrow
24 \alignL \cell{\vfil left,\\middle}
25 \alignC \cell{\vfil center,\\middle}
26 \alignR \cell{\vfil right,\\middle} \erow
27 \bbrow
28 \def\cals@bgcolor{green}
29 \alignL \cell{\vfill left,\\bottom}
30 \def\cals@bgcolor{}
31 \alignC \cell{\vfill center,\\bottom}
32 \alignR \cell{\vfill right,\\bottom} \erow
33 \end{decotable}