[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
slackbook:printing [2012/09/09 02:38 (UTC)] – [Printing from the Command Line] added original text mfillpot | slackbook:printing [2012/09/12 21:07 (UTC)] – updated code block to syntax highlighting mfillpot | ||
---|---|---|---|
Line 67: | Line 67: | ||
- | <code> | + | <file> |
<Printer r1060> | <Printer r1060> | ||
Line 89: | Line 89: | ||
ErrorPolicy stop-printer | ErrorPolicy stop-printer | ||
</ | </ | ||
- | </code> | + | </file> |
Line 104: | Line 104: | ||
| | ||
- | < | + | < |
darkstar:~# < | darkstar:~# < | ||
Line 114: | Line 114: | ||
- | <code> | + | <file> |
gutenprint.5.2:// | gutenprint.5.2:// | ||
gutenprint.5.2:// | gutenprint.5.2:// | ||
- | </code> | + | </file> |
Line 196: | Line 196: | ||
- | < | + | < |
# lpadmin -d r1060 | # lpadmin -d r1060 | ||
</ | </ | ||
Line 219: | Line 219: | ||
- | < | + | < |
$ lpr foo.txt | $ lpr foo.txt | ||
</ | </ | ||
==== Formatting for Print ==== | ==== Formatting for Print ==== | ||
+ | **// | ||
+ | applications, | ||
+ | doesn' | ||
+ | page. When printing large text files that have not been | ||
+ | formatted for print, use **// | ||
+ | |||
+ | |||
+ | **//pr//** is a simple text formatter that | ||
+ | takes any text document and makes sure that it contains line | ||
+ | breaks and page breaks, with an optional header and footer, page | ||
+ | numbering, and much more. It has many options, but the defaults | ||
+ | are usually good enough. **//pr//** outputs | ||
+ | the results of the formatting to standard out, meaning it simply | ||
+ | takes the text document, formats it, and displays the results in | ||
+ | the terminal. | ||
+ | to **// | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | darkstar:~$ < | ||
+ | </ | ||
+ | |||
+ | | ||
+ | This will format '' | ||
+ | formatted output to the default printer. | ||
+ | |||
+ | |||
+ | As usual, see the **//pr//** man page for a | ||
+ | list of the customizations you can make to the default formatting. | ||
====== Chapter Navigation ====== | ====== Chapter Navigation ====== | ||
Line 233: | Line 262: | ||
====== Sources ====== | ====== Sources ====== | ||
<!-- If you copy information from another source, then specify that source --> | <!-- If you copy information from another source, then specify that source --> | ||
- | * Original source: [[http:// | + | |
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> | ||
- | * Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson | + | |
<!-- * Contrbutions by [[wiki: | <!-- * Contrbutions by [[wiki: | ||