|
UNIX TeX Facilities
The primary editors available on most department UNIX systems
are xemacs, emacs and vi. If you are working on an
X-terminal or a stand alone, you may want to consider using xemacs.
After processing your TeX file, the file can then be viewed via
xdvi. Of course, you will have to be working in an
X environment to do so (OpenWindows, etc.).
Once you have the dvi file, you can print using dvips,
for example, to print the file joe.dvi to the printer hp7132mx,
issue the following command:
dvips -Php7132mx joe.dvi
For a list of printers, be sure to see our Department Printers Page.
Printing multiple pages on one side of a page (only for
dvi files) [available on any printer]:
There are two public aliases, "dvips-2" and "dvips-4".
dvips-2 will print 2 pages per one side, dvips-4 will print 4 pages
per one side. For example, to print the file joe.dvi with
two pages on one side, invoke as:
dvips-2 joe.dvi
Duplex printing (printing on both sides of a page). This
will only work on hp7132mx, since it is the only department
printer with a duplex unit installed.
Take any postscript or ASCII file, and print using the "lp"
command (not lpr) with the duplex option sent via -o.
For example, to print the file joe.ps in duplex, enter the following;
lp -d hp7132mx -o duplex joe.ps
{lpr will not work in this invocation}
With the lp command "-d" refers to destination, "-o"
refers to option. On a Solaris 2.5.x (actually any 2.x) system the actual
print command is "lp", lpr is really only
a compatibility structure to allow BSD users to feel comfortable.
You can also combine this with the commands from step 1.
Suppose you wanted to print a large dvi file, two pages
per side on both sides.
dvips-2 joe.dvi | lp -d hp7132mx -o duplex
This can come in quite handy when reviewing large documents.
This can be done as:
dvips-2 joe.dvi | lp -d hp7132mx -o duplex
This can come in quite handy when reviewing large documents.
If you have any difficulty please send us a note to mathhelp@math.ucsd.edu,
or call x44591.
|