;; formats for; it should contain one of the symbols ps-letter,
;; ps-legal, or ps-a4. The default is ps-letter.
;;
-;;
-;; Installing ps-print
-;; -------------------
-;;
-;; 1. Place ps-print.el somewhere in your load-path and byte-compile
-;; it. You can ignore all byte-compiler warnings; they are the
-;; result of multi-Emacs support. This step is necessary only if
-;; you're installing your own ps-print; if ps-print came with your
-;; copy of Emacs, this been done already.
-;;
-;; 2. Place in your .emacs file the line
;;
-;; (require 'ps-print)
+;; Make sure that the variables ps-lpr-command and ps-lpr-switches
+;; contain appropriate values for your system; see the usage notes
+;; below and the documentation of these variables.
;;
-;; to load ps-print. Or you may cause any of the ps-print commands
-;; to be autoloaded with an autoload command such as:
-;;
-;; (autoload 'ps-print-buffer "ps-print"
-;; "Generate and print a PostScript image of the buffer..." t)
-;;
-;; 3. Make sure that the variables ps-lpr-command and ps-lpr-switches
-;; contain appropriate values for your system; see the usage notes
-;; below and the documentation of these variables.
;;
;; New since version 1.5
;; ---------------------
;;;###autoload
(defun ps-print-buffer-with-faces (&optional filename)
"Generate and print a PostScript image of the buffer.
-
Like `ps-print-buffer', but includes font, color, and underline
-information in the generated image."
+information in the generated image. This command works only if you
+are using a window system, so it has a way to determine color values."
(interactive (list (ps-print-preprint current-prefix-arg)))
(ps-generate (current-buffer) (point-min) (point-max)
'ps-generate-postscript-with-faces)
;;;###autoload
(defun ps-print-region (from to &optional filename)
"Generate and print a PostScript image of the region.
-
Like `ps-print-buffer', but prints just the current region."
(interactive (list (point) (mark) (ps-print-preprint current-prefix-arg)))
;;;###autoload
(defun ps-print-region-with-faces (from to &optional filename)
"Generate and print a PostScript image of the region.
-
Like `ps-print-region', but includes font, color, and underline
-information in the generated image."
+information in the generated image. This command works only if you
+are using a window system, so it has a way to determine color values."
(interactive (list (point) (mark) (ps-print-preprint current-prefix-arg)))
(ps-generate (current-buffer) from to
;;;###autoload
(defun ps-spool-buffer ()
"Generate and spool a PostScript image of the buffer.
-
Like `ps-print-buffer' except that the PostScript image is saved in a
local buffer to be sent to the printer later.
;;;###autoload
(defun ps-spool-buffer-with-faces ()
"Generate and spool a PostScript image of the buffer.
-
Like `ps-spool-buffer', but includes font, color, and underline
-information in the generated image.
+information in the generated image. This command works only if you
+are using a window system, so it has a way to determine color values."
Use the command `ps-despool' to send the spooled images to the printer."
;;;###autoload
(defun ps-spool-region (from to)
"Generate a PostScript image of the region and spool locally.
-
Like `ps-spool-buffer', but spools just the current region.
Use the command `ps-despool' to send the spooled images to the printer."
;;;###autoload
(defun ps-spool-region-with-faces (from to)
"Generate a PostScript image of the region and spool locally.
-
Like `ps-spool-region', but includes font, color, and underline
-information in the generated image.
+information in the generated image. This command works only if you
+are using a window system, so it has a way to determine color values."
Use the command `ps-despool' to send the spooled images to the printer."
(interactive "r")