http://www.cs.utexas.edu/users/pkn/tex.html
TeX & Friends FAQ
1. How do I get a .ps file?
2. What's a good LaTeX2e book?
3. I've made my own .fmt file, how do I get TeX to use it?
4. How do I get TeX to use the macros in /p/lib/tex/macros?
5. How do I get TeX and dvips to use my fonts?
6. How do I print a .dvi file?
The above will create a file named foo.ps
If you know a better one, let me know.
setenv TEXFORMATS /u/pkn/tex/lib/formats:That would search my directory first and the the default directory (/lusr/tex/lib/tex/formats)
setenv TEXINPUTS /p/lib/tex/macros:That will cause TeX to look in /p first, then the current directory, and finally in the default directory (/lusr/tex/lib/tex/macros). If you want TeX to look in /p last, put the colon before /p/lib/tex/macros
dvips filenameWhere filename is the name of the .dvi file. If you don't have PRINTER set, use the -P printername flag
dvips -P printername filename