Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to print several man pages as several booklets. I need to tweak the output of the man -t command so the resulting PostScript file will have the brochurised page numbering, pages must be numerated on 'outer' edges, and 'inner' margin must be wider than 'outer'. How can I achieve this?

P.S. By "brochurised" ("booklet") numbering I mean such kind of numbering so if several printed pages are folded in half at once, the result will look like a book with proper sequental page numbering.

share|improve this question
There is template from which output PS file is generated. In my Gentoo it's /usr/share/groff/1.21/font/devps/prologue, so if you know postscript you could modify it. – pbm Jul 8 '11 at 15:16
That will require modification of that file every time I change my mind how to print. I am actually searching for some kind of parameters that would be propagated by man down to groff to control the output. – mbaitoff Jul 10 '11 at 6:02
up vote 2 down vote accepted

An awesome shell script written some time ago by a friend: livre.

You'll be interested in the --book and --inner options.

share|improve this answer

It may not be the perfect answer for your question. What I did is. man -t man > foo.ps . This created a Postscript file. Which I opened in Okular (Default PDF/PS Viewer with KDE). Okular rendered foo.ps just perfectly, with page numbering. So now I can print the doc.

share|improve this answer
How about page margins? Are they left-right or left only? – mbaitoff Sep 2 '11 at 16:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.