cca1c35cb59b8f04598cc9f7327cbdcf5fe963a2
[platform/upstream/groff.git] / contrib / hdtbl / examples / chess_board.roff
1 .\" -*- mode: nroff -*-
2 .ig
3 chess_board.roff
4
5 This file is part of groff, the GNU roff type-setting system.
6
7 Copyright (C) 2005-2014  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 .if !d sopath \
25 .  ds sopath
26 .
27 .so \*[sopath]examples/common.roff
28 .
29 .
30 .time start
31 .
32 .nr *x 8
33 .de r1
34 .TR height=1.6c 
35 .TD hl= val=m hal=r \\\\n(*x
36 .PN 4 ".TD bgc=wheat" ".TD bgc=tan3"
37 .TD hl= val=m hal=l \\\\n(*x
38 .nr *x -1
39 ..
40 .de r2
41 .TR height=1.6c
42 .TD hl= val=m hal=r \\\\n(*x
43 .PN 4 ".TD bgc=tan3" ".TD bgc=wheat"
44 .TD hl= val=m hal=l \\\\n(*x
45 .nr *x -1
46 ..
47 .af *y a
48 .H Chessboard
49 .TBL border=0 csp=.05n bgc= cols=10 width=1.6c tal=c
50 .TR vl= hal=c\" height=1c
51 .TD hl=
52 .nr *y 0
53 .PN 8 .TD ".nr *y +1" \\\\n(*y
54 .TD hl=
55 .PN 4 .r1 .r2
56 .TR vl= hal=c
57 .TD 
58 .nr *y 0
59 .PN 8 .TD ".nr *y +1" \\\\n(*y
60 .TD
61 .ETB
62 .time
63 .\"     466MHz Celeron CPU, 384MB RAM 
64 .\"     WindowsXP/cygwin groff18.1:       1s
65 .\"     WindowsXP/cygwin groff19.2:       4s
66 .\"     Suse Linux 9.3 groff19.2:         1s