cplager@b0dap30> prnt -h
Usage: nprnt -flags file1 file2...
Flags:
-Aname -> use options you set up in $PRNT_CMDS
-Cn -> print text in n columns
-COL -> print code (currently C++ & perl) text in color
-F[10] -> does (F1) or does not (F0) flip second side
(F1 default for 2 per page, otherwise F0 is default)
-FNn -> print text with font size n
-H -> this help screen
-Kn -> print n sides (1, 2 : 2 default)
-L -> prints in landscape mode
-Mn -> have margin of n points
-Nn -> print n pages per side (2 default)
-Pn -> prints on printer n
(must be separate from other options: 'B0TR165A_HP8000' default)
-Rname -> prints on printer name (name is setup using the $PRNT_NAMES
environment variable; must be separate from other options)
-Tn -> replace each tab by n spaces (text files only) (1..20 : 4 default)
-Un -> print text with (U1) or with out (U0) line numbers (1 default)
-W -> use alternative duplexing method for postscript
(not recommended EXCEPT for 'PAW' output, etc.)
Example: prnt -N1K2 -Pmwlw1 print.ps
- prints 'print.ps' 1 per side and 2 side per sheet on mwlw1
Notes:
- nprnt automatically unzips '.gz' files and prints them.
- nprnt automatically converts and prints '.pdf' files.
- nprnt uses the '$PRINTER' as default printer, if it is defined.
PRNT_DEFS = -m
PRNT_NAMES = simplex:B0TR165A_HP8000_S cpap:165A_TCOLOR ctran:165A_TCOLOR_TRANS b0col:B0CTL_TCOLOR b0:B0CONTROL_HP8000
PRNT_CMDS = 3col:-c3 -fn4.9 -l -n1 -f1,2col:-c2 -fn6.9 -l -n1 -f1,2colw:-c2 -fn4.9 -l -n1 -f1,large:-n1 -l -fn15,1colw:-fn4.9 -l -n1 -f1
To change any of these, you need to set an environment variable PRNT_DEFS
1) To change the default number of pages per side (lets say to 1 per
side), put in -N1 in the variable
2) To make single side your default, add -K.
3) To NOT flip the other side when doing 2 pages per side, add -F0.
4) To not print line numbers of a text file, add -U0.
If I wanted 1 page per size and no line numbers, I would add the following
line to my .cshrc file
SETENV PRNT_DEFS "-N1 -U0"
The following defaults are standard, but you can only change them from
the command line
1) 1 column per page
2) 10 pt font
3) portrait mode
You want to create an environment variable PRNT_CMDS
that has the name you want to you, a colon, and the list of options.
Separate different commands with a ','.
To set this up I put the following line in my .cshrc
SETENV PRNT_CMDS "3col:-n1 -l -c3 -fn4.9,large:-l -n1 -fn15"
and I can print 3 columns with the following command
unix> nprnt -A3col this.file
or large text with
unix> nprnt -Alarge this.file
To print with the nickname,
unix> nprnt -Rsimplex this.file
prints this.file to tlob_xrx_n32_simplex.