|
From: | Larry Kollar |
Subject: | Re: [Groff] grog misidentifies -ms document |
Date: | Fri, 9 Jan 2004 23:29:35 -0500 |
Robert Goulding wrote:
If an -ms document contains a .SH heading and a table with a header (and hence a .TH request), grog identifies the document as -man rather than -ms. For the following -ms document, grog guesses groff -man -t > :.SH Price Table .LP The following table gives some prices: .TS H allbox, tab(&); lb lb l n. Item&Price .TH Strawberries&$1.43 Apples&$1.00 .TE
While the SH, LP, and TS/TE macros are common between -ms and -man, and indeed mean the same thing, the TH macro would be the first called in a manpage... so a TH *outside* a TS/TE pair would indicate a manpage. TH inside that pair should basically be ignored.
-- Larry Kollar k o l l a r @ a l l t e l . n e t Unix Text Processing: "UTP Revival" http://home.alltel.net/kollar/utp/
[Prev in Thread] | Current Thread | [Next in Thread] |