Sync-to-go: contrib/hdtbl..
[s-roff.git] / contrib / hdtbl / examples / color_nested_tables.roff
blobc66728c7fdf93aab075ea95226de589d431810db
1 .ig
2 @ color_nested_tables.roff
4 Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
6 Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
7 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
9 This is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 2, or (at your option) any later
12 version.
14 This is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17 for more details.
19 You should have received a copy of the GNU General Public License
20 along with groff; see the file COPYING.  If not, write to the Free
21 Software Foundation, 51 Franklin St - Fifth Floor, Boston, MA
22 02110-1301, USA.
25 .time start
26 .PN 15 Text before first table.
27 .nr # 0 1
28 *****
29 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
30  ".TBL csp=0 cpd=0 border=1n bc=c\\n[#]" \
31  ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Border" \
32  .TR .TD
33 .PN 39 .ETB
34 .PN 15 Text after first table.
35 .time
37 .bp
39 .time start
40 .PN 15 Text before second table.
41 *****
42 .nr # 0 1
43 .PN 39 .random# ".defcolor c\\n[#] rgb \\\\*[#random] " \
44  ".TBL csp=0 cpd=1n border= bgc=c\\n[#]" \
45  ".if \\\\n+#=1 .CPTN val=b Nested Tables with Randomly Colored Background" \
46  .TR .TD
47 .PN 39 .ETB
48 .PN 25 Text after second table.
49 .time
50 .\"     466MHz Celeron CPU, 384MB RAM
51 .\"     WindowsXP/cygwin groff18.1:      9/9s
52 .\"     WindowsXP/cygwin groff19.2:    14/14s
53 .\"     Suse Linux 9.3 groff19.2:        1/1s
54 .\" s-tr-mode