Function: plain-TeX-common-initialization
plain-TeX-common-initialization is a byte-compiled function defined in
plain-tex.el.
Signature
(plain-TeX-common-initialization)
Documentation
Common initialization for plain TeX like modes.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/plain-tex.el
(defun plain-TeX-common-initialization ()
"Common initialization for plain TeX like modes."
(setq-local TeX-style-hook-dialect plain-TeX-dialect)
(setq TeX-sentinel-default-function #'TeX-TeX-sentinel)
(setq paragraph-start
(concat
"\\(?:[ \t]*$"
"\\|" (regexp-quote TeX-esc) "par\\|"
"[ \t]*"
(regexp-quote TeX-esc)
"\\(?:"
"begin\\|end\\|part\\|chapter\\|"
"section\\|subsection\\|subsubsection\\|"
"paragraph\\|include\\|includeonly\\|"
"tableofcontents\\|appendix\\|label\\|caption\\|\\(?:item\\)?item"
"\\)"
"\\|"
"[ \t]*\\$\\$" ; display math delimitor
"\\)" ))
(setq paragraph-separate
(concat
"[ \t]*"
"\\(?:"
(regexp-quote TeX-esc) "par\\|"
"%\\|"
"$\\|"
"\\$\\$\\|"
(regexp-quote TeX-esc)
"\\(?:"
"begin\\|end\\|label\\|caption\\|part\\|chapter\\|"
"section\\|subsection\\|subsubsection\\|"
"paragraph\\|include\\|includeonly\\|"
"tableofcontents\\|appendix\\|" (regexp-quote TeX-esc)
"\\)"
"\\)"))
(setq TeX-header-end (regexp-quote "%**end of header"))
(setq TeX-trailer-start (regexp-quote (concat TeX-esc "bye")))
(TeX-add-symbols
;; From the TeX Book, Appendix B
;;
;; XXX: This should be refined and extended by somebody who is
;; familiar with plain TeX.
"dag"
"ddag"
"copyright"
"TeX"
"dots"
"break"
"nobreak"
"allowbreak"
"hbox"
"slash"
"enskip"
"quad"
"qquad"
"enspace"
"thinspace"
"negthinspace"
"smallskip"
"medskip"
"bigskip"
"eject"
"supereject"
"goodbreak"
"filbreak"
"smallbreak"
"medbreak"
"bigbreak"
"hrulefill"
"dotfill"
"rightarrowfill"
"leftarrowfill"
"upbracefill"
"downbracefill"
"halign"
"valign"
"omit"
"span"
"multispan"
"centerline"
"rightline"
"leftline"
"line"
"par"
"noindent"
"frenchspacing"
"nonfrenchspacing"
"llap"
"rlap"
"raggedright"
"ttraggedright"
"raggedbottom"
"normalbottom"
"obeylines"
"obeyspaces"
"hsize"
"vsize"
"hoffset"
"voffset"
"tolerance"
"looseness"
"parindent"
"baselineskip"
"parskip")
(TeX-run-style-hooks "TEX"))