Debian Codegraph @

contrib/hdtbl/examples/color_boxes.roff

raw
1 .ig
2 Copyright 2006 Free Software Foundation, Inc.
3
4 Written by Joachim Walsdorff <[email protected]>
5
6 This file is part of hdtbl.
7
8 hdtbl is distributed with groff, the GNU roff typesetting system.
9
10 groff is free software; you can redistribute it and/or modify it under
11 the terms of the GNU General Public License as published by the Free
12 Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 groff is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 ..
23 .
24 .if !d sopath \
25 . ds sopath
26 .
27 .ds lib examples/common.roff
28 .soquiet \*[sopath]\*[lib]
29 .if !d common \{\
30 . tmc \n[.F]: cannot find "\*[lib]"; specify its location
31 . tm1 " with groff '-I' or '-d sopath=' option
32 .\}
33 .
34 .\" Seed the random number generator for reproducible builds.
35 .random-seed 131545532 19201711
36 .
37 .H Horizontal Rules and Boxes .br with Randomly Colored Border and Background
38 .PN 25 Text before horizontal rule.
39 .TBL border=.5n bc=green bgc=red width=7c tal=c csp=.2n cpd=.3n .TR .TD .ETB
40 .PN 10 Text after horizontal rule and before table.
41 .de ctab
42 .nr ? 0 1
43 .PN 5 .random# ".defcolor color\En+? rgb \E*[#random]"
44 .TD ".TBL border=1c bc=color1 csp=0 cpd=0 height=3c bgc=color2" .TR .TD .ETB
45 ..
46 .
47 .TBL tal=c border= csp=0 cpd=0 cols=5 width=3c
48 .PN 2 .TR ".PN 5 .ctab"
49 .ETB
50 .PN 15 Text after table.
51 .TBL border=.5n bc=color1 bgc=color2 width=15c tal=c csp=.2n cpd=.3n .TR .TD .ETB
52 .PN 25 Text after horizontal rule.
53 .
54 .\" Local Variables:
55 .\" mode: nroff
56 .\" fill-column: 72
57 .\" End:
58 .\" vim: set filetype=groff textwidth=72: