Function: tex-mode
tex-mode is an autoloaded, interactive and byte-compiled function
defined in tex-mode.el.gz.
Signature
(tex-mode)
Documentation
Major mode for editing files of input for TeX, LaTeX, or SliTeX.
This is the shared parent mode of several submodes.
Tries to determine (by looking at the beginning of the file) whether
this file is for plain TeX, LaTeX, or SliTeX and calls plain-tex-mode,
latex-mode, or slitex-mode, accordingly. If it cannot be determined,
such as if there are no commands in the file, the value of tex-default-mode
says which mode to use.
In addition to any hooks its parent mode text-mode might have run,
this mode runs the hook tex-mode-hook, as the final or penultimate
step during initialization.
" tex-insert-quote
C-<return> tex-feed-input
C-M-i ispell-complete-word
C-c / latex-close-block
C-c C-b tex-buffer
C-c C-c tex-compile
C-c C-e latex-close-block
C-c C-f tex-file
C-c C-k tex-kill-job
C-c C-l tex-recenter-output-buffer
C-c C-o latex-insert-block
C-c C-p tex-print
C-c C-q tex-show-print-queue
C-c C-r tex-region
C-c C-t latex-insert-block
C-c C-u tex-goto-last-unclosed-latex-block
C-c C-v tex-view
C-c RET tex-feed-input
C-c TAB tex-bibtex-file
C-c ] latex-close-block
C-c { tex-insert-braces
C-c } up-list
C-j tex-handle-newline
M-RET latex-insert-item
This function has :override advice: TeX-tex-mode.
This function has :around advice: tex--redirect-to-submode.
Probably introduced at or before Emacs version 18.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
;; `tex-mode' plays two roles: it's the parent of several sub-modes
;; but it's also the function that chooses between those submodes.
;; To tell the difference between those two cases where the function
;; might be called, we check `delay-mode-hooks'.
;;;###autoload
(define-derived-mode tex-mode text-mode "generic-TeX"
"Major mode for editing files of input for TeX, LaTeX, or SliTeX.
This is the shared parent mode of several submodes.
Tries to determine (by looking at the beginning of the file) whether
this file is for plain TeX, LaTeX, or SliTeX and calls `plain-tex-mode',
`latex-mode', or `slitex-mode', accordingly. If it cannot be determined,
such as if there are no commands in the file, the value of `tex-default-mode'
says which mode to use."
(tex-common-initialization))