[ Pobierz całość w formacie PDF ]
.=Double horizontal line in place of column entry.|Between column entries, draws a vertical line between columns.Before the first keyletters,draws a line to the left of the table.After the last keyletters, draws a line tothe right of the table.||Between column entries, draws a double vertical line.e/ESets equal width columns.All columns that have a keyletter followed by eor E are set to the same width.f/FFollowed by a font name or number, changes the entry to the font specified.nAny number following a keyletter.Indicates the amount of separation between columns.p/PFollowed by a number, changes the point size of the entry to the specified number.Increments acceptable.t/TVertically spanned items begin at the top line.Normally, vertically spanning items(more than one line in the table) are centered in the vertical range.v/VFollowed by a number, gives vertical line spacing.w/WFollowed by a number, sets the width.The order of these characters on the format line is not important, although the spacingbetween each format identifier must still be respected.Multiple letters can be used.The entrynp14w(2.5i)fisets the numeric entry (n) in italics (fi), with a point sizeof 14 (p14) and a minimum column width of 2.5 inches (w(2.5i)).You may need to change the format of a table midway through--for example, to presentsummaries.If you must change the format, use the.T& (table continue)command.DataData for the table is entered after all the format specifications have been completed.Data for columns is separated by tabs or any other character indicated in the tabsoption.Each line of data is one line of the table.Long lines of data can be brokenover several lines of source by using the backslash character as the last characterin a line.Any line starting with a period and followed by anything other than a number isassumed to be a groff command and is ignored by the preprocessor.If a singleline of the data consists of only underscore or equal sign characters (single anddouble lines), it is treated as extending the entire width of the table.You can embed a block of text within a table by using the text commands of T{(start of text) and }T (end of text).This lets you enter something thatcan't be easily entered as a string separated by tabs.ExamplesThe best way to understand how to use gtbl is to look at some simpleexamples.Here's a basic table command:.TSdoublebox;c c c, l l n.Name Dept PhoneJoe 8A 7263Mike 9F 2635Peter 2R 2152Yvonne 2B 2524.TEAll of the entries in the data section are separated by tabs.This produces atable with three columns, the first line of which is centered text.The rest of thetable has the first and second column left-justified, and the last column alignedby decimal point (there are none in this case).The entire table is surrounded bytwo boxes.A slightly more complex example uses a table title, followed by a row of columnheadings, and then the data.Separate each element in the table by a box in thiscase:.TSallbox;c s sc c cn n n.Division ResultsEast West North15 12 1412 12 1836 15 24.TETry typing in these examples, or create your own, to see what effect the differentcommands have.When you've started using gtbl, it isn't that difficult.SummaryAlthough word processors have made utilities such as geqn and gtblless popular than they used to be, some diehard UNIX people still like to use them.There are times when you might not be able to produce an equation the way you wantwith your favorite word processor, so you might have to return to the basics.Also,because word processors capable of fancy formulas tend to be expensive, utilitiessuch as geqn and gtbl are ideal for the occasional user who doesn'twant to spend a lot of money on a seldom-used tool
[ Pobierz całość w formacie PDF ]