steve has a fold program which he used combined with pr to generate http://plan9.bell-labs.com/sources/contrib/steve/doc/kernel-june2k-a4.ps
/n/sources/contrib/steve/rc/kernel.print /n/sources/contrib/steve/fold.tbz On Wed, Sep 8, 2010 at 8:45 AM, roger peppe <[email protected]> wrote: > i've always used an ancient version of a2ps for this, > ported to plan 9 by [email protected]. this does almost > everything i want (in particular two-column landscape mode) > with the exception that it doesn't > grok utf-8. i'm sure charles will send you a copy > if you wish. > > the current gnu version is likely to be a little harder > to port :-) > > > On 7 September 2010 22:00, Rudolf Sykora <[email protected]> wrote: >> Hello, >> >> I want to 'print' the 'page' program, i.e. put /sys/src/cmd/page/* on paper. >> I want different files start on new pages, with the header of every >> page being the file name and the page. >> For this the command >> a=`{ls} pr $a | lp -dstdout > toprint.ps >> is almost ok. >> That 'almost' is in the fact that long lines get truncated, which is >> highly undesirable. >> fmt -j >> could help, but it also replaces spaces and tabs by a single space, again >> bad. >> (btw. why >> fmt <>afile >> doesn't work?) >> >> So how? >> Can anybody help? (I mean, is there a one-liner?) >> Thank you! >> Ruda >> >> > > -- Federico G. Benavento
