Variable: tex-alt-dvi-print-command

tex-alt-dvi-print-command is a customizable variable defined in tex-mode.el.gz.

Value

"lpr -d"

Documentation

Command used by M-x tex-print (tex-print) with a prefix arg to print a .dvi file.

If this string contains an asterisk (*), that is replaced by the file name; otherwise, the file name, preceded by blank, is added at the end.

If two printers are not enough of a choice, you can set the variable tex-alt-dvi-print-command to an expression that asks what you want; for example,

    (setq tex-alt-dvi-print-command
         '(format "lpr -P%s" (read-string "Use printer: ")))

would tell M-x tex-print (tex-print) with a prefix argument to ask you which printer to use.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
;;;###autoload
(defcustom tex-alt-dvi-print-command (purecopy "lpr -d")
  "Command used by \\[tex-print] with a prefix arg to print a .dvi file.
If this string contains an asterisk (`*'), that is replaced by the file name;
otherwise, the file name, preceded by blank, is added at the end.

If two printers are not enough of a choice, you can set the variable
`tex-alt-dvi-print-command' to an expression that asks what you want;
for example,

    (setq tex-alt-dvi-print-command
         \\='(format \"lpr -P%s\" (read-string \"Use printer: \")))

would tell \\[tex-print] with a prefix argument to ask you which printer to
use."
  :type '(choice (string :tag "Command")
		 (sexp :tag "Expression"))
  :group 'tex-view)