>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
C-e`?
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")
(LaTeX-newline)
(LaTeX-newline)
(end-of-line 0)
(setq LaTeX-document-style-hook nil))
and of course, '("usepackage" LaTeX-env-usepackage) in the list of
environments.
What do you think Mosè? Tassilo?
Take care guys, have a good one.
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel