comparison lisp/textmodes/tex-mode.el @ 10325:070c1f54707b

(tex-mode): Recognize \NeedsTeXFormat{LaTeX2e}.
author Richard M. Stallman <rms@gnu.org>
date Tue, 03 Jan 1995 22:28:50 +0000
parents b18a4ff30816
children f27bcd1faf07
comparison
equal deleted inserted replaced
10324:82efaa5a2567 10325:070c1f54707b
261 (setq comment (let ((search-end (point))) 261 (setq comment (let ((search-end (point)))
262 (save-excursion 262 (save-excursion
263 (beginning-of-line) 263 (beginning-of-line)
264 (search-forward "%" search-end t)))))) 264 (search-forward "%" search-end t))))))
265 (if (and slash (not comment)) 265 (if (and slash (not comment))
266 (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b") 266 (setq mode (if (looking-at "documentstyle\\|documentclass\\|begin\\b\\|NeedsTeXFormat{LaTeX")
267 (if (looking-at 267 (if (looking-at
268 "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}") 268 "document\\(style\\|class\\)\\(\\[.*\\]\\)?{slides}")
269 'slitex-mode 269 'slitex-mode
270 'latex-mode) 270 'latex-mode)
271 'plain-tex-mode)))) 271 'plain-tex-mode))))