Function: TeX-command-region
TeX-command-region is an interactive and byte-compiled function
defined in tex.el.
Signature
(TeX-command-region &optional OVERRIDE-CONFIRM)
Documentation
Run TeX on the current region.
Query the user for a command to run on the temporary file specified by
the variable TeX-region. If there is an explicitly active region,
it is stored for later commands. If not, a previously stored region
(can be also be set with TeX-pin-region) overrides the current region,
if present.
If a prefix argument OVERRIDE-CONFIRM is given, prompting will
ignore the prompting flag from TeX-command-list and instead
will prompt only if the prefix is positive.
If the master file for the document has a header, it is written to the
temporary file before the region itself. The document's header is all
text before TeX-header-end.
If the master file for the document has a trailer, it is written to
the temporary file after the region itself. The document's trailer is
all text after TeX-trailer-start.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-command-region (&optional override-confirm)
"Run TeX on the current region.
Query the user for a command to run on the temporary file specified by
the variable `TeX-region'. If there is an explicitly active region,
it is stored for later commands. If not, a previously stored region
\(can be also be set with `TeX-pin-region') overrides the current region,
if present.
If a prefix argument OVERRIDE-CONFIRM is given, prompting will
ignore the prompting flag from `TeX-command-list' and instead
will prompt only if the prefix is positive.
If the master file for the document has a header, it is written to the
temporary file before the region itself. The document's header is all
text before `TeX-header-end'.
If the master file for the document has a trailer, it is written to
the temporary file after the region itself. The document's trailer is
all text after `TeX-trailer-start'."
(interactive "P")
(TeX-region-update)
;; In the next line, `TeX-region-file' should be called with nil
;; `nondirectory' argument, otherwise `TeX-command-default' called
;; within `TeX-command-query' won't work in included files not
;; placed in `TeX-master-directory'.
(TeX-command (TeX-command-query #'TeX-region-file) #'TeX-region-file
override-confirm))