yatex

diff yatexprc.el @ 73:f41b01fef5d6

Stable version(hope to be)
author yuuji
date Wed, 22 May 2002 04:57:42 +0000
parents 0aaebd07dad0
children 1b172d26b55e
line diff
     1.1 --- a/yatexprc.el	Mon Dec 25 10:19:28 2000 +0000
     1.2 +++ b/yatexprc.el	Wed May 22 04:57:42 2002 +0000
     1.3 @@ -2,7 +2,7 @@
     1.4  ;;; YaTeX process handler.
     1.5  ;;; yatexprc.el
     1.6  ;;; (c )1993-2000 by HIROSE Yuuji.[yuuji@yatex.org]
     1.7 -;;; Last modified Mon Dec 25 19:18:19 2000 on firestorm
     1.8 +;;; Last modified Sun Dec 31 21:57:44 2000 on firestorm
     1.9  ;;; $Id$
    1.10  
    1.11  ;(require 'yatex)
    1.12 @@ -221,8 +221,10 @@
    1.13         preamble
    1.14         (if (re-search-forward "^[ 	]*\\\\begin.*{document}" nil t)
    1.15  	   (buffer-substring (point-min) (match-end 0))
    1.16 -	 (concat "\\documentstyle{" YaTeX-default-document-style "}\n"
    1.17 -		 "\\begin{document}")))
    1.18 +	 (concat
    1.19 +	  (if YaTeX-use-LaTeX2e "\\documentclass{" "\\documentstyle{")
    1.20 +	  YaTeX-default-document-style "}\n"
    1.21 +	  "\\begin{document}")))
    1.22        (goto-char opoint)
    1.23        ;;(set-buffer buffer)		;for clarity
    1.24        (let ((hilit-auto-highlight nil))