cannot insert latex environment using emacs (C-c C-e) with auctex
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cannot insert latex environment using emacs (C-c C-e) with auctex
recently, i reinstalled my system. i have auctex, preview-latex, etc. installed,
running xemacs-21.4.15 and emacs-21.3.
now, in latex mode, i could not insert environment using C-c C-e, it says:
couldn't find unended \begin
i was able to run this command previously, do i need to add anything to .emacs
or a particular .el file?
oh, i remembered i once used "latex-insert-environment"
but it seemed to be unavailable. i also tried "latex-insert-item"
but it only gave me "\begin item", which is not what i wanted.
Originally posted by parv have not tried your way yet, but i found another way which is to add:
(require 'tex-site') in .emacs
will try your way later.
i am not sure how the lisp code is built with autex but this line
should not be necessary. Do you have also the tex-site.elc in your $EMACS_PATH env?
if not, you can compile the lisp code and take out this line from .emacs
Adding "require" (not your case that it is just one) to your .emacs make the emacs load procedure slower...
My way is just to map the keywboard shortcut. If tex-site has it as bultin is not necessary.
i removed (require 'tex-site) from .emacs and C-c C-e still works for emacs.
i do not know why because it did not work before i added this line.
but it no longer works in xemacs without having this line in .xemacs/custom.el
and (global-set-key "\C-c\c-e" 'latex-inset-environment) does work for me in both cases.
by the way, $EMACS_PATH is not defined in my system
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.