From mboxrd@z Thu Jan 1 00:00:00 1970 From: pmarin.mail@gmail.com (pmarin) Date: Tue, 22 Mar 2011 21:26:58 +0100 Subject: [9fans] troff macros for typesetting books/longer texts In-Reply-To: References: Message-ID: Topicbox-Message-UUID: bf0b7c20-ead6-11e9-9d60-3106f5b1d025 A very gentle introduction about Troff macros is "A TROFF Tutorial" by Kernighan. (http://www.kohala.com/start/troff/troff.html) A great and complete book with macros like you are looking for is "Unix Text Processing". You can download it from http://oreilly.com/openbook/utp/ On Tue, Mar 22, 2011 at 6:10 PM, Rudolf Sykora wrote: > Hello everyone, > > please, does somebody know of any troff macros that were used to typeset books? > Can one get hold of e.g. macros used to typeset e.g. "The AWK > Programming Language" by Aho, Kernighan and Weinberger, or ?The Unix > Programming Environment? by Kernighan and Pike? > > I want to particularly know how headings were programmed. I.e., how > the name of a chapter that is only to appear on a page gets to its > heading. I feel that either the file must be processed twice, or one > must write a heading of a page only when the page is about to be > completed (one would then back up to the heading position, write it, > and only then continue). > > Thanks > Ruda > >