e469cf433219b67246e43405caf9e9c1664d0c44
[platform/upstream/groff.git] / contrib / hdtbl / examples / color_nested_tables.roff
1 .\" -*- mode: nroff -*-
2 .ig
3
4 color_nested_tables.roff
5
6 This file is part of groff, the GNU roff type-setting system.
7
8 Copyright (C) 2005-2014  Free Software Foundation, Inc.
9 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
10
11 groff is free software; you can redistribute it and/or modify it under
12 the terms of the GNU General Public License as published by the Free
13 Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 groff is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19 for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
23
24 ..
25 .
26 .if !d sopath \
27 .  ds sopath
28 .
29 .so \*[sopath]examples/common.roff
30 .
31 .
32 .time start
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 .time
45 .
46 .bp
47 .
48 .time start
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 .time
61 .
62 .\"     466MHz Celeron CPU, 384MB RAM 
63 .\"     WindowsXP/cygwin groff18.1:      9/9s
64 .\"     WindowsXP/cygwin groff19.2:    14/14s
65 .\"     Suse Linux 9.3 groff19.2:        1/1s