Debian Codegraph @

contrib/hdtbl/examples/chess_board.roff

raw
1 .ig
2 Copyright 2005-2006 Free Software Foundation, Inc.
3
4 Written by Joachim Walsdorff <[email protected]>
5
6 This file is part of hdtbl.
7
8 hdtbl is distributed with groff, the GNU roff typesetting system.
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 .ds lib examples/common.roff
28 .soquiet \*[sopath]\*[lib]
29 .if !d common \{\
30 . tmc \n[.F]: cannot find "\*[lib]"; specify its location
31 . tm1 " with groff '-I' or '-d sopath=' option
32 .\}
33 .
34 .
35 .nr *x 8
36 .de r1
37 .TR height=1.6c
38 .TD hl= val=m hal=r \\\\n(*x
39 .PN 4 ".TD bgc=wheat" ".TD bgc=tan3"
40 .TD hl= val=m hal=l \\\\n(*x
41 .nr *x -1
42 ..
43 .de r2
44 .TR height=1.6c
45 .TD hl= val=m hal=r \\\\n(*x
46 .PN 4 ".TD bgc=tan3" ".TD bgc=wheat"
47 .TD hl= val=m hal=l \\\\n(*x
48 .nr *x -1
49 ..
50 .af *y a
51 .H Chessboard
52 .TBL border=0 csp=.05n bgc= cols=10 width=1.6c tal=c
53 .TR vl= hal=c\" height=1c
54 .TD hl=
55 .nr *y 0
56 .PN 8 .TD ".nr *y +1" \\\\n(*y
57 .TD hl=
58 .PN 4 .r1 .r2
59 .TR vl= hal=c
60 .TD
61 .nr *y 0
62 .PN 8 .TD ".nr *y +1" \\\\n(*y
63 .TD
64 .ETB
65 .
66 .\" Local Variables:
67 .\" mode: nroff
68 .\" fill-column: 72
69 .\" End:
70 .\" vim: set filetype=groff textwidth=72: