564 Part (Web server logs) IV . Running Applications To create
564 Part IV . Running Applications To create a table in a Groff document, use the .TS and .TE macros of the tbl preprocessor. The following is an example of the markup used to produce a simple table: .TS center, box, tab(:); c s s c | c | c l | l | l. Mergers and Acquisitions Team = Employee:Title:Location =_ Jones, James:Marketing Manager:New York Office Smith, Charles:Sales Manager:Los Angeles Office Taylor, Sarah:R&D Manager:New York Office Walters, Mark:Information Systems Manager:Salt Lake City Office Zur, Mike:Distribution Manager:Portland Office .TE The .TS macro starts the table, and the next line indicates that the table should be centered on the page (center) and surrounded by a line box and that a colon will be used to separate the data into cells (tab(:)). The third line shows that the heading should be centered in the box (c) and should span across the next two cells (s s). The fourth line says that the heading of each cell should be centered (c | c | c) and the fifth line indicates that the data cells that follow should be left justified (l | l | l). There must be a period at the end of the table definition line. In this example, it is after the l | l | l. line. If the period is not there, tbl tries to interpret the text as part of the table definition, fails, and stops processing the table; the table does not print. The rest of the information in the table is the data. Note that the tab separators are colon characters (:). End the table with a .TE macro. If the table were in a memo called memotbl.mm, tbl could preprocess the memo and then send it to the printer using the following command: $ groff -Tps -l -mm -t memotbl.mm Data between .TS and .TE macros are interpreted as tables. Figure 21-8 displays the output from this example. Figure 21-8: Set how text is justified and put in columns with the use of the tbl command s .TS and .TE macros. Jones, James Smith, Charles Taylor, Sarah Walters, Mark Zur, Mike Employee Marketing Manager Sales Manager R&D Manager Information Systems Manager Distribution Manager Title Jones, James Smith, Charles Taylor, Sarah Walters, Mark Zur, Mike Location Caution
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision ecommerce web hosting services