groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / contrib / hdtbl / examples / color_nested_tables.roff
1 .\" -*- mode: roff -*-
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, 2006, 2009 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 .time start
27 .PN 15 Text before first table.
28 .nr # 0 1
29 *****
30 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
31 ".TBL csp=0 cpd=0 border=1n bc=c\\n[#]" \
32 ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Border" \
33 .TR .TD
34 .PN 39 .ETB
35 .PN 15 Text after first table.
36 .time
37 .time start
38 .PN 15 Text before second table.
39 *****
40 .nr # 0 1
41 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
42 ".TBL csp=0 cpd=1n border= bgc=c\\n[#]" \
43 ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Background" \
44 .TR .TD
45 .PN 39 .ETB
46 .PN 25 Text after second table.
47 .time
48 .\"     466MHz Celeron CPU, 384MB RAM 
49 .\"     WindowsXP/cygwin groff18.1:      9/9s
50 .\"     WindowsXP/cygwin groff19.2:    14/14s
51 .\"     Suse Linux 9.3 groff19.2:        1/1s