|
|
|
||||||
|
How to Print Various Types of FilesThere are man pages available for nearly all these commands Printers Available in the DepartmentThere are many printers in the department. Each is named by prefixing the room it is in by 'lw', for example lw341 is the printer in room 341. Setting a Default PrinterTo set a default printer add the following line: setenv LPDEST lw341 to your .cshrc.more file in your home directory. Replace lw341 with whichever printer is closest to you. By setting a default printer you no longer need to specify a particular destination with any of the following commands. Printing a Text or PostScript FileUsing the lp command, only text or PostScript (a special text language) files can be printed. To see if you have a printable file, use the command more filename if it looks like gibberish or more says: Not a text file, you cannot print the file with lp. Generally, text files are what you create, or can edit, with an editor, like emacs or vi. The syntax for lp is as follows: lp -dlw341 filename The -d gives the destination where to print the file, in this case lw341. filename is simply the file you want to print. Note: On a workstation, you can view a PostScript file before printing it with the gv command. Printing a .dvi FileTo print a dvi file (created from LaTeX), the command to use is dvips. Its syntax is as follows: dvips -Plw341 filename.dvi The -P gives the destination where to print the file, in this case lw341. filename.dvi is the dvi file you want to print. Printing in 132 ColumnsTo print wide text documents use the enscript command, for example: enscript -dlw341 -B -r filename The -d gives the destination where to print the file, in this case lw341, -B omits page headings, -r prints in landscape mode and filename is simply the file you want to print. (Enscript has many more options, including selecting the font, multiple columns, and heading styles.) Printing from SThe following describes how to create postscript files in S, and then print them.
Other Printing CommmandsThe command lpstat is used to check on the status of a print queue. lpstat lw341 will list all the jobs in the 341 printer's queue. If you want to stop a job, once you have its job name from lpstat, you can use the cancel command to remove it from the queue. For example, cancel lw341-43 will remove that particular job from the queue. Sometimes, though, once a job has already started printing, cancel will not stop it. Then you must hit the reset button on the printer. The command up can also be quite useful, plus enscript has may more options. See their man pages more information. Many useful examples below.Examples of Printing Files:
Examples of Adjusting Print Quality:
Examples of Printing Text Files:
Examples of Printing Images:
Examples for Amusement:
|
|
If you have trouble accessing this page, or need an alternate format contact webmaster@stat.osu.edu. |