| 1 |
.ig |
| 2 |
Copyright 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 |
.de ctab |
| 36 |
.nr #cc 0 |
| 37 |
.PN 21 ".nr #cc +.05f" \ |
| 38 |
".nr #cc (1f<?\En[#cc])" \ |
| 39 |
".defcolor \En[t*#] rgb \\$1 \\$2 \\$3" \ |
| 40 |
".TBL border= csp=0 cpd=.5n bgc=\\\\n[t*#] bc=" \ |
| 41 |
.TR \ |
| 42 |
.TD |
| 43 |
.PN 21 .ETB |
| 44 |
.. |
| 45 |
.PN 30 Before table. |
| 46 |
.TBL cols=3 width=33% border= csp=0 cpd=0 bgc= |
| 47 |
.CPTN val=b Color Transitions |
| 48 |
.TR |
| 49 |
.TD ".ctab 0+\En[#cc]u \En[#cc]u \En[#cc]u" \" black -> white |
| 50 |
.TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\" white -> black |
| 51 |
.TD ".ctab 1f \En[#cc]u \En[#cc]u" \" red -> white |
| 52 |
.TR |
| 53 |
.TD ".ctab 0 1f-\En[#cc]u \En[#cc]u" \" green -> blue |
| 54 |
.TD ".ctab 1f 1f-\En[#cc]u 1f" \" white -> magenta |
| 55 |
.TD ".ctab 1f \En[#cc]u 1f" \" magenta -> white |
| 56 |
.TR |
| 57 |
.TD ".ctab 0+\En[#cc]u \En[#cc]u 1f-\En[#cc]u" \" blue -> yellow |
| 58 |
.TD ".ctab 1f-\En[#cc]u 1f-\En[#cc]u \En[#cc]u" \" yellow -> blue |
| 59 |
.TD ".ctab 1f 0+\En[#cc]u 0" \" red -> yellow |
| 60 |
.xTD ".ctab 0+\En[#cc]u 1f-\En[#cc]u 1f-\En[#cc]u"\" cyan -> red |
| 61 |
.ETB |
| 62 |
.PN 30 After table. |
| 63 |
. |
| 64 |
.\" Local Variables: |
| 65 |
.\" mode: nroff |
| 66 |
.\" fill-column: 72 |
| 67 |
.\" End: |
| 68 |
.\" vim: set filetype=groff textwidth=72: |