comparison yatexenv.el @ 234:b75390dd4260 dev

C-j can skip further parameter input for table/figure environment.
author yuuji@gentei.org
date Sat, 28 Jan 2012 11:16:11 +0900
parents 699f3c6c8b2c
children f70aae80489e
comparison
equal deleted inserted replaced
233:699f3c6c8b2c 234:b75390dd4260
1 ;;; -*- Emacs-Lisp -*- 1 ;;; -*- Emacs-Lisp -*-
2 ;;; YaTeX environment-specific functions. 2 ;;; YaTeX environment-specific functions.
3 ;;; yatexenv.el 3 ;;; yatexenv.el
4 ;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org] 4 ;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org]
5 ;;; Last modified Sat Jan 28 10:21:07 2012 on firestorm 5 ;;; Last modified Sat Jan 28 10:26:54 2012 on firestorm
6 ;;; $Id$ 6 ;;; $Id$
7 7
8 ;;; 8 ;;;
9 ;; Functions for tabular environment 9 ;; Functions for tabular environment
10 ;;; 10 ;;;
250 "Insert '\\bibitem '." 250 "Insert '\\bibitem '."
251 (YaTeX-indent-line) 251 (YaTeX-indent-line)
252 (YaTeX-make-section nil nil nil "bibitem") 252 (YaTeX-make-section nil nil nil "bibitem")
253 (YaTeX-indent-line)) 253 (YaTeX-indent-line))
254 254
255
256 ;;;
257 ;; Functions for math mode environments
258 ;;;
255 (defun YaTeX-intelligent-newline-equation () 259 (defun YaTeX-intelligent-newline-equation ()
256 "Warn equation can't have multiple lines." 260 "Warn equation can't have multiple lines."
257 (undo) 261 (undo)
258 (error "Equation environment can't have multiple lines.")) 262 (error "Equation environment can't have multiple lines."))
259 (fset 'YaTeX-intelligent-newline-equation* 'YaTeX-intelligent-newline-equation) 263 (fset 'YaTeX-intelligent-newline-equation* 'YaTeX-intelligent-newline-equation)
264
265 ;;;
266 ;; For document environment
267 ;;;
268 (defun YaTeX-intelligent-newline-document ()
269 "New paragraph."
270 (newline)) ;Do you prefer `\par'?
260 271
261 ;;; 272 ;;;
262 ;; Intelligent newline 273 ;; Intelligent newline
263 ;;; 274 ;;;
264 ;;;###autoload 275 ;;;###autoload

yatex.org