Function: tex-view

tex-view is an interactive and byte-compiled function defined in tex-mode.el.gz.

Signature

(tex-view)

Documentation

Preview the last .dvi file made by running TeX under Emacs.

This means, made using M-x tex-region (tex-region), M-x tex-buffer (tex-buffer) or M-x tex-file (tex-file). The variable tex-dvi-view-command specifies the shell command for preview. You must set that variable yourself before using this command, because there is no standard value that would generally work.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defun tex-view ()
  "Preview the last `.dvi' file made by running TeX under Emacs.
This means, made using \\[tex-region], \\[tex-buffer] or \\[tex-file].
The variable `tex-dvi-view-command' specifies the shell command for preview.
You must set that variable yourself before using this command,
because there is no standard value that would generally work."
  (interactive)
  (or tex-dvi-view-command
      (error "You must set `tex-dvi-view-command'"))
  ;; Restart the TeX shell if necessary.
  (or (tex-shell-running)
      (tex-start-shell))
  (let ((tex-dvi-print-command (eval tex-dvi-view-command t)))
    (tex-print)))