[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] a LaTeX-env-usepackage environment

From: Carlos
Subject: Re: [AUCTeX-devel] a LaTeX-env-usepackage environment
Date: Sun, 09 Feb 2014 06:48:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>Sorry, I can't get what you mean by «document as an environment should
>not be changed to class».

Hello Mosè. 

My question is, is it feasible to have usepackage bound to `C-c

Normally, the default is documentclass, followed by
begindocument, since usepackage is optional. If a package needs to be
loaded, then by inserting usepackage should be the next step to follow. 

Something in these lines

(defun LaTeX-env-usepackage (&optional ignore)
  "Insert new LaTeX package."
  (TeX-insert-macro "usepackage")
  (end-of-line 0)
  (setq LaTeX-document-style-hook nil))

and of course,  '("usepackage" LaTeX-env-usepackage) in the list of 

What do you think Mosè? Tassilo?

Take care guys, have a good one. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]