LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 09-01-2004, 11:47 AM   #1
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Rep: Reputation: 30
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?

thanks very much for your help.
 
Old 09-01-2004, 12:40 PM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,

from the top of my head.. please check syntax..
in your .emacs file..

Code:
(global-set-key "\C-c\c-e" 'latex-inset-environment)
regards

slackie1000
 
Old 09-01-2004, 02:48 PM   #3
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
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.
 
Old 09-01-2004, 02:50 PM   #4
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
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.
 
Old 09-01-2004, 03:15 PM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
Quote:
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.

regards

slackie1000
 
Old 09-01-2004, 04:20 PM   #6
parv
Member
 
Registered: Jul 2004
Location: USA
Distribution: Mint, Scientifc Linux, Ubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
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
 
Old 09-02-2004, 01:19 AM   #7
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,

$EMACS_PATH sould not exist...
i just mean where emacs is installed.
sorry for the misunderstanding..

regards

slackie1000
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
text encoding, emacs and LaTeX. bnj Linux - Newbie 2 10-13-2005 07:56 AM
[LaTeX] Centreing a xymatrix in figure environment solarize Linux - Software 3 06-13-2005 01:44 AM
LaTeX commands: texi2pdf, latex, dvipdf kaon Linux - Software 7 01-23-2005 03:32 PM
how to make 'pdflatex' work in my emacs 'auctex-mode' HoreC Linux - Software 2 12-19-2004 02:33 PM
Environment Variables: xterm, ls, mc, and emacs colors kulitpuro Slackware 4 09-01-2003 01:06 AM


All times are GMT -5. The time now is 02:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration