UPRC

Section: File Formats (5)
Updated: 24 August 1989
Index Return to Main Contents
 

NAME

uprc - layout configuration file for "up"  

DESCRIPTION

The uprc file contains all of the information necessary to describe a page layout for the up utility. The format is simple, but capable of some impressively twisted output. A sample configuration is given below, followed by a complete explanation. Records in a file begin with a line containing either "name=something" or "prolog=", and end with a line containing just a period.

 prolog=
 /inch {72 mul} def
 /moveU {0 11 inch translate} def
 /moveR {8.5 inch 0 translate} def
 /moveD {0 -11 inch translate} def
 /moveL {-8.5 inch 0 translate} def
 /rotR {-90 rotate} def
 /rotL {90 rotate} def
 .


 name=4up
 modulus=4
 scale=0.2125 inch 0.275 inch translate 0.475 dup scale
 1=moveU
 2=moveR
 3=moveL moveD
 4=moveR
 .

The prolog record contains an arbitrary number of lines of PostScript code to be placed right before the "%%EndProlog" comment in the header. These commands must not effect the graphics state, and should only be used to define functions for use at page breaks. The default header (shown above) defines functions to move the page origin (in terms of pages), and rotate the co-ordinate space 90 degrees left and right. More than one header can be present in a file; the last one found before the desired layout record will be used.

Layout records contain five types of fields. name, modulus, even/odd, <number>, and scale. The name field may contain any number of alphanumeric characters, and is what determines the logical record name. The modulus field must contain a decimal number indicating the number of pages to be placed on a sheet. There should be fields numbered from 1 through modulus, containing the PostScript commands to move the origin to the correct place for that page (relative to the location of the previously printed page). The scale field contains PostScript commands that set up the scaling at the beginning of each sheet. Despite the name, rotations and translations also belong here. The even/odd fields are used to make even and odd sheets print differently. They're not often useful, but they're handy for preparing double-sided output.

Blank lines and lines beginning with a "#" character are ignored.  

FILES

/usr/local/lib/up.rc, ~/.uprc, ./up.rc  

SEE ALSO

up(1), PostScript Language Reference Manual  

AUTHOR

J Greely (jgreely@cis.ohio-state.edu)


 

Index

NAME
DESCRIPTION
FILES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 07:18:14 GMT, May 19, 2025