TeXing

From VMS to Linux HOWTO
Prev |  | Next

# 4. TeXing

TeX and LaTeX are identical to their VMS counterparts---only quicker :-), but the tools to handle the `.dvi` and `.ps` files are superior:

- to run a TeX file through TeX, do as usual: `tex file.tex`;

- to turn a `.dvi` file into a `.ps` file, type `dvips -o filename.ps filename.dvi`;

- to visualize a `.dvi` file, type within an X session: `xdvi filename.dvi &`. Click on the page to magnify. This program is smart: if you edit and run TeX producing newer versions of the `.dvi` file, `xdvi` will update it automatically;

- to visualize a `.ps` file, type within an X session: `ghostview filename.ps &`. Click on the page to magnify. The whole document or selected pages can be printed. A newer and better program is `gv`.

- to print the `.ps`: usually the command `lpr mypaper.ps` will do, but if the PostScript printer is called, say, `ps' (ask your sysadm) you'll do: `lpr -Pps mypaper.ps`. For more information about print queues, go to Section Section 8.4.

Prev | Home | Next
Editing Files |  | Programming