Imported Upstream version 1.22.4
[platform/upstream/groff.git] / contrib / hdtbl / examples / chess_board.roff
1 .ig
2 chess_board.roff
3
4 This file is part of groff, the GNU roff type-setting system.
5
6 Copyright (C) 2005-2018 Free Software Foundation, Inc.
7 written by Joachim Walsdorff <Joachim.Walsdorff@urz.uni-heidelberg.de>.
8
9 groff 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 3 of the License, or
12 (at your option) any later version.
13
14 groff 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.
18
19 You should have received a copy of the GNU General Public License
20 along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 ..
22 .
23 .if !d sopath \
24 .  ds sopath
25 .
26 .so \*[sopath]examples/common.roff
27 .
28 .
29 .nr *x 8
30 .de r1
31 .TR height=1.6c 
32 .TD hl= val=m hal=r \\\\n(*x
33 .PN 4 ".TD bgc=wheat" ".TD bgc=tan3"
34 .TD hl= val=m hal=l \\\\n(*x
35 .nr *x -1
36 ..
37 .de r2
38 .TR height=1.6c
39 .TD hl= val=m hal=r \\\\n(*x
40 .PN 4 ".TD bgc=tan3" ".TD bgc=wheat"
41 .TD hl= val=m hal=l \\\\n(*x
42 .nr *x -1
43 ..
44 .af *y a
45 .H Chessboard
46 .TBL border=0 csp=.05n bgc= cols=10 width=1.6c tal=c
47 .TR vl= hal=c\" height=1c
48 .TD hl=
49 .nr *y 0
50 .PN 8 .TD ".nr *y +1" \\\\n(*y
51 .TD hl=
52 .PN 4 .r1 .r2
53 .TR vl= hal=c
54 .TD 
55 .nr *y 0
56 .PN 8 .TD ".nr *y +1" \\\\n(*y
57 .TD
58 .ETB
59 .
60 .\" ====================================================================
61 .\" Editor settings
62 .\" ====================================================================
63 .
64 .\" Local Variables:
65 .\" mode: nroff
66 .\" fill-column: 72
67 .\" End:
68 .\" vim: set filetype=groff textwidth=72: