From mboxrd@z Thu Jan 1 00:00:00 1970 From: Riccardo Romoli Subject: Re: AUCTex within org-babel Date: Thu, 9 Feb 2012 15:07:44 +0100 Message-ID: References: <87ty31csgh.fsf@gmx.com> <874nv1gil3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=002354332aca46a0f504b88889e0 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvUf5-0000Iu-Th for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 09:07:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvUf4-0007GW-9V for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 09:07:47 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:36361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvUf4-0007GM-75 for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 09:07:46 -0500 Received: by qadz32 with SMTP id z32so4639581qad.0 for ; Thu, 09 Feb 2012 06:07:45 -0800 (PST) In-Reply-To: <874nv1gil3.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?Jonas_H=F6rsch?= Cc: emacs-orgmode@gnu.org --002354332aca46a0f504b88889e0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Jonas if you enter in the AUCTeX buffer (C-c') and than you use the AUCTeX C-c C-e, you can choose the environment you need in the emacs minibuffer such as in LaTeX. Best Riccardo 2012/2/8 Jonas H=F6rsch > Hi list, > > On Wed, Feb 08 2012, Riccardo Romoli wrote: > > > thanks a lot for your answer!! I completely ignore that C-c' lunch the > > small buffer for all the code within the src blocks. I belive it was us= ed > > only for ESS.... > > the only remaining problem is that the AUCTeX mode tries to be smart > about what environments it allows to insert. f.ex. inserting > > #+begin_src latex > > #+end_src > > then C-', brings one to a source buffer with AUCTeX-mode enabled. > > But a C-c C-e to insert an environment doesn't want to complete on > itemize or figure, but instead only allows to choose document (Which > would be perfectly sane under the assumption that the buffer contains > the whole tex-document). > > Does anybody know how to deactivate this "feature" of AUCTeX? Perhaps > setting TeX-master-file to something special? > > Thanks, > Jonas > > > > --002354332aca46a0f504b88889e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Jonas
if you enter in the AUCTeX buffer (C-c') and than you use = the AUCTeX C-c C-e, you can choose the environment you need in the emacs mi= nibuffer such as in LaTeX.

Best
Riccardo

2012/2/8 Jonas H=F6rsch <coroa@online.de>
Hi l= ist,

On Wed, Feb 08 2012, Riccardo Romoli wrote:

> thanks a lot for your answer!! I completely ignore that C-c' lunch= the
> small buffer for all the code within the src blocks. I belive it was u= sed
> only for ESS....

the only remaining problem is that the AUCTeX mode tries to be smart<= br> about what environments it allows to insert. f.ex. inserting

#+begin_src latex

#+end_src

then C-', brings one to a source buffer with AUCTeX-mode enabled.

But a C-c C-e to insert an environment doesn't want to complete on
itemize or figure, but instead only allows to choose document (Which
would be perfectly sane under the assumption that the buffer contains
the whole tex-document).

Does anybody know how to deactivate this "feature" of AUCTeX? Per= haps
setting TeX-master-file to something special?

Thanks,
Jonas




--002354332aca46a0f504b88889e0--