/[slime]/slime/doc/texinfo-tabulate.awk
ViewVC logotype

Contents of /slime/doc/texinfo-tabulate.awk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Aug 29 20:02:57 2005 UTC (8 years, 7 months ago) by lgorrie
Branch: MAIN
CVS Tags: SLIME-2-3, SLIME-2-1, SLIME-2-0, SLIME-1-3, FAIRLY-STABLE, byte-stream, HEAD
Branch point for: contrib
Changes since 1.1: +3 -0 lines
Added public domain dedication.
1 #!/usr/bin/env awk -f
2 #
3 # Format input lines into a multi-column texinfo table.
4 # Note: does not do texinfo-escaping of the input.
5
6 # This code has been placed in the Public Domain. All warranties
7 # are disclaimed.
8
9 BEGIN {
10 columns = 3;
11 printf("@multitable @columnfractions");
12 for (i = 0; i < columns; i++)
13 printf(" %f", 1.0/columns);
14 print
15 }
16
17 { if (NR % columns == 1) printf("\n@item %s", $0);
18 else printf(" @tab %s", $0); }
19
20 END { printf("\n@end multitable\n"); }
21

  ViewVC Help
Powered by ViewVC 1.1.5