Table of Contents
file names give on the commnad line can't have index
mpage `lf` | lp -w & # all files mpage `findh fnew . 60 | cut -d'/' -f 2 | sort` | lp -w & # new files
mpage -x # usage display
MPAGE="-o2fX -bLetter -m50t" # noframe, 2col, wordwrap, Pagehead (simplex) mpage *.C | lpr -C"letter hduplex"
MPAGE="-tTo2fX -bLetter -m50t40b" # hduplex, noframe, 2col, wordwrap, Pagehead mpage -c -s3 -o # concat pages, tabstop width (3), show frame
MPAGE="-l1fX -bLetter" # landscape 1 column, wordwrap, Pagehead
mpage file...
-1, -2, -4, -8 Pages per sheet (4) -v Toggle verbose output, (on) -a Toggle across/updown layout (u) -l Toggle portrait/landscape (p) -f Toggle folding long lines (off) -o Toggle printing outlines (on) -E Print every second and third page -O Print every first and fourth page -s Define tabstop width (8) -k kill on %TRailer is PS file -b papersize (A4), use l of ? to get a list of sizes -R Switch to across mode, with first page at lower left corner -H Create page header for each page for text files -X Print physical page header (filename + physical pagenumber) -c Toggle concat pages of different files on same sheet (off) -B Specify textbox margin/thickness (no space): [<num>[lrtb]*]* -m Specify sheetmargin (no space): [<num>[lrtb]*]* -M Specify pagemargins (no space): [<num>[lrtb]*]* -z Specify print command (lpr). -j Print specified sheets: first[-last][%interval] -j 1-10 does first 10 sheets, -j 1%2 prints odd ones, -j 2%2 even ones. -t Toggle printing both sides of the paper (Duplex mode, off) -T Toggle tumble of every second pages when printing in duplex mode (off)
-bpapertype Prepare output for selected paper type. Papersize can be A3 for European A3, A4 for European A4, Letter for US Letter or Legal for Legal sized paper. For default see 'mpage -x'. To see the list of currently available types, just give the 'mpage -bl' or 'mpage -b?' command (Note: mpage exits after finding such option use.)
-m[<num>[lrtb]*] Specify sheet margin. The default margin is 20 points. Only specifying -m sets left margin to 40 points. l, r, t or b set left, right, top or bottom margin respec- tively to <num> points. Not specifying any of the sides will set all sides when <num> is given. <num> defaults to 40 points. For example -m10 sets all mar- gins to 10 points. -ml50tb sets left margin to default 40 and top and bottom margin to 50 points. -m50l25bt30r set bottom and top margin to 25, left mar- gin to 50 and right margin to 30 points. Margins can have negative numbers. Very large values have funny
-M[<num>[lrtb]*] Specify logical page margins. For syntax, see -m option. Defaults are 4 for -M solely, and 8 for <num>. Margins can be negative. This way large white borders in your (postscript) documents can be reduced.
-o Toggle printing of outlines around each reduced page (default on).
-t Toggle printing on both sides of the paper. This will toggle duplex mode of the printer. Use this option only if your printer is capable of printing in duplex mode. (default off).
-v Toggle printing a count of the number of sheets pro- duced for printing (default off.)
-x Force usage display, which also shows current defaults.
mpage also examines the MPAGE environment variable for default option settings. Any option or combination of options can be specified in the MPAGE environment variable.
-2fzXc -bLetter (doesn't work, 04-10-99) -2fX -bLetter (works, 04-10-99, *N*: nothing should follow -X)
Any command line options will toggle from MPAGE environment variables setting.
set environment var MAPGE & LPDEST properly,
normal:
mpage | lp -m -o hd
advanced:
mpage | lp -m -o hd -q 0 -n 2 -o topaz ^1^ ^2^
The usage of -q to set priority can not move you to the top. :-)
24-Jan-2002
All you should need to do is run make.
This will create the programs mpage and msample. Mpage is the program to print n-up pages. Msample prints a sample outline. I used it for debugging the placement of the layout. It is also handy for other layout purposes. It accepts all the arguments that mpage does, but does not print files.