Variable: tex-dvi-view-command

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

Value

"dvi2tty * | cat -s"

Documentation

Command used by M-x tex-view (tex-view) to display a .dvi file.

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

For backwards-compatibility, the value can also be a form, in which case it is evaluated to get the command to use. This is now obsolete, and will lead to a warning. Set it to a string instead.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
;;;###autoload
(defcustom tex-dvi-view-command
  (cond ((eq window-system 'x) "xdvi")
        ((eq window-system 'w32) "yap")
        (t "dvi2tty * | cat -s"))
  "Command used by \\[tex-view] to display a `.dvi' file.
If this string contains an asterisk (`*'), that is replaced by the file name;
otherwise, the file name, preceded by a space, is added at the end.

For backwards-compatibility, the value can also be a form, in which case
it is evaluated to get the command to use.  This is now obsolete, and
will lead to a warning.  Set it to a string instead."
  :type '(choice (const nil) string)
  :risky t
  :group 'tex-view)