Environmental variable, File – Dell 5110cn Color Laser Printer User Manual

Page 387

Advertising
background image

To convert the program list of the file.txt file into the PostScript language program that sets the paper to
the landscape orientation and prints in the 2-column mode, type as follows:

% txt2ps2 -r -2 file.txt | lpr

(for Linux)

% txt2ps2 -r -2 file.txt | lp

(for Solaris/HP-UX)

To convert file.txt to the PostScript language program and output it to the file.ps file, type as follows:

% txt2ps2 file.txt > file.ps

% lpr file.ps

(for Linux)

% lp file.ps

(for Solaris/HP-UX)

To convert the output result of the command into the PostScript language program using txt2ps2 and print it
to the printer, type as follows:

% ls -alF | txt2ps2 | lpr

(for Linux)

% ls -alF | txt2ps2 | lp

(for Solaris/HP-UX)

Environmental Variable

TXT2PS2OPTION

Optional settings based on the environmental variable. To output in the 2-column mode, 8 points and the
landscape orientation, type as follows:

% setenv TXT2PS2OPTION "-2 -s8 -r"

To use the same options as those of the dellpsif filter specified by printcap, type as follows:

% setenv TXT2PS2OPTION "<dellpsif>"

File

/usr/local/dellbin5110/.dellpsdefault5110
This is the default command option setting file for individual users.

Important

When the same option is specified twice, the later setting will prevail. As TXT2PS2OPTION is analyzed
before the option of the command line, it is possible to temporarily modify the options already set in
TXT2PS2OPTION

by typing at the command line.

The comment description (%%page:m n) of the page number cannot be output to the PostScript
program file which is output by the default option of txt2ps2. Thus, when the output of txt2ps2 is to be
taken as the output of another application (psrev of TRANSCRIPT, etc.), add the page number
description by inserting the line command (-Ilines).

If a BS code is found at the beginning of a line, the print position of the next character will be located
at the left of the beginning of the line.

When there are multiple tab codes in one line, the tab position may be off as a result of automatic line

Advertising