Variable: tex-dvi-view-command
tex-dvi-view-command is a customizable variable defined in
tex-mode.el.gz.
Value
(cond ((eq window-system 'x) "xdvi") ((eq window-system 'w32) "yap")
(t "dvi2tty * | cat -s"))
Documentation
Command used by M-x tex-view (tex-view) to display a .dvi file.
If it is a string, that specifies the command directly.
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.
If the value is a form, it is evaluated to get the command to use.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
;;;###autoload
(defcustom tex-dvi-view-command
`(cond
((eq window-system 'x) ,(purecopy "xdvi"))
((eq window-system 'w32) ,(purecopy "yap"))
(t ,(purecopy "dvi2tty * | cat -s")))
"Command used by \\[tex-view] to display a `.dvi' file.
If it is a string, that specifies the command directly.
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.
If the value is a form, it is evaluated to get the command to use."
:type '(choice (const nil) string sexp)
:group 'tex-view)