Function: texinfo-tex-region

texinfo-tex-region is an interactive and byte-compiled function defined in texinfo.el.gz.

Signature

(texinfo-tex-region BEG END)

Documentation

Run TeX on the current region.

This works by writing a temporary file (tex-zap-file) in the directory that is the value of tex-directory, then running TeX on that file.

The first line of the buffer is copied to the temporary file; and if the buffer has a header, it is written to the temporary file before the region itself. The buffer's header is all lines between the strings defined by tex-start-of-header and tex-end-of-header inclusive. The header must start in the first 100 lines.

The value of texinfo-tex-trailer is appended to the temporary file after the region.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/texinfo.el.gz
(defun texinfo-tex-region (beg end)
  "Run TeX on the current region.
This works by writing a temporary file (`tex-zap-file') in the directory
that is the value of `tex-directory', then running TeX on that file.

The first line of the buffer is copied to the
temporary file; and if the buffer has a header, it is written to the
temporary file before the region itself.  The buffer's header is all lines
between the strings defined by `tex-start-of-header' and `tex-end-of-header'
inclusive.  The header must start in the first 100 lines.

The value of `texinfo-tex-trailer' is appended to the temporary
file after the region."
  (interactive "r")
  (require 'tex-mode)
  (let ((tex-command texinfo-tex-command)
	(tex-trailer texinfo-tex-trailer))
    (tex-region beg end)))