Imported Upstream version 1.22.4
[platform/upstream/groff.git] / contrib / hdtbl / examples / color_nested_tables.roff
1 .ig
2
3 color_nested_tables.roff
4
5 This file is part of groff, the GNU roff type-setting system.
6
7 Copyright (C) 2005-2018 Free Software Foundation, Inc.
8 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
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 .
25 .if !d sopath \
26 .  ds sopath
27 .
28 .so \*[sopath]examples/common.roff
29 .
30 .
31 .\" Seed the random number generator for reproducible builds.
32 .random-seed 131545532 19201711
33 .
34 .PN 15 Text before first table.
35 .nr # 0 1
36 *****
37 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
38   ".TBL csp=0 cpd=0 border=1n bc=c\\n[#]" \
39   ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Border" \
40   .TR .TD
41 .PN 39 .ETB
42 .PN 15 Text after first table.
43 .
44 .bp
45 .
46 .PN 15 Text before second table.
47 *****
48 .nr # 0 1
49 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
50   ".TBL csp=0 cpd=1n border= bgc=c\\n[#]" \
51   ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Background" \
52   .TR .TD
53 .PN 39 .ETB
54 .PN 25 Text after second table.
55 .
56 .\" ====================================================================
57 .\" Editor settings
58 .\" ====================================================================
59 .
60 .\" Local Variables:
61 .\" mode: nroff
62 .\" fill-column: 72
63 .\" End:
64 .\" vim: set filetype=groff textwidth=72: