Debian Codegraph @

contrib/hdtbl/examples/color_nested_tables.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 .
35 .\" Seed the random number generator for reproducible builds.
36 .random-seed 131545532 19201711
37 .
38 .PN 15 Text before first table.
39 .nr # 0 1
40 *****
41 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
42 ".TBL csp=0 cpd=0 border=1n bc=c\\n[#]" \
43 ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Border" \
44 .TR .TD
45 .PN 39 .ETB
46 .PN 15 Text after first table.
47 .
48 .bp
49 .
50 .PN 15 Text before second table.
51 *****
52 .nr # 0 1
53 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
54 ".TBL csp=0 cpd=1n border= bgc=c\\n[#]" \
55 ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Background" \
56 .TR .TD
57 .PN 39 .ETB
58 .PN 25 Text after second table.
59 .
60 .\" Local Variables:
61 .\" mode: nroff
62 .\" fill-column: 72
63 .\" End:
64 .\" vim: set filetype=groff textwidth=72: